xref: /qemu/migration/meson.build (revision 513823e7521a09ed7ad1e32e6454bac3b2cbf52d)
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  'cpr.c',
18  'cpr-transfer.c',
19  'cpu-throttle.c',
20  'dirtyrate.c',
21  'exec.c',
22  'fd.c',
23  'file.c',
24  'global_state.c',
25  'migration-hmp-cmds.c',
26  'migration.c',
27  'multifd.c',
28  'multifd-nocomp.c',
29  'multifd-zlib.c',
30  'multifd-zero-page.c',
31  'options.c',
32  'postcopy-ram.c',
33  'savevm.c',
34  'socket.c',
35  'tls.c',
36  'threadinfo.c',
37), gnutls, zlib)
38
39if get_option('replication').allowed()
40  system_ss.add(files('colo-failover.c', 'colo.c'))
41else
42  system_ss.add(files('colo-stubs.c'))
43endif
44
45system_ss.add(when: rdma, if_true: files('rdma.c'))
46system_ss.add(when: zstd, if_true: files('multifd-zstd.c'))
47system_ss.add(when: qpl, if_true: files('multifd-qpl.c'))
48system_ss.add(when: uadk, if_true: files('multifd-uadk.c'))
49system_ss.add(when: qatzip, if_true: files('multifd-qatzip.c'))
50
51specific_ss.add(when: 'CONFIG_SYSTEM_ONLY',
52                if_true: files('ram.c',
53                               'target.c'))
54