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