xref: /openbmc/qemu/migration/meson.build (revision 6c1e3906)
1# Files needed by unit tests
2migration_files = files(
3  'page_cache.c',
4  'xbzrle.c',
5  'vmstate-types.c',
6  'vmstate.c',
7  'qemu-file.c',
8  'yank_functions.c',
9)
10softmmu_ss.add(migration_files)
11
12softmmu_ss.add(files(
13  'block-dirty-bitmap.c',
14  'channel.c',
15  'channel-block.c',
16  'dirtyrate.c',
17  'exec.c',
18  'fd.c',
19  'global_state.c',
20  'migration-hmp-cmds.c',
21  'migration-stats.c',
22  'migration.c',
23  'multifd.c',
24  'multifd-zlib.c',
25  'multifd-zlib.c',
26  'ram-compress.c',
27  'options.c',
28  'postcopy-ram.c',
29  'savevm.c',
30  'socket.c',
31  'tls.c',
32  'threadinfo.c',
33), gnutls)
34
35if get_option('replication').allowed()
36  softmmu_ss.add(files('colo-failover.c', 'colo.c'))
37endif
38
39softmmu_ss.add(when: rdma, if_true: files('rdma.c'))
40if get_option('live_block_migration').allowed()
41  softmmu_ss.add(files('block.c'))
42endif
43softmmu_ss.add(when: zstd, if_true: files('multifd-zstd.c'))
44
45specific_ss.add(when: 'CONFIG_SOFTMMU',
46                if_true: files('ram.c',
47                               'target.c'))
48