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