master
build 56 lines 1.28 KB
Raw
1 # Files needed by unit tests
2 migration_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
12 system_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 'cpr-exec.c',
20 'cpu-throttle.c',
21 'dirtyrate.c',
22 'exec.c',
23 'fd.c',
24 'file.c',
25 'global_state.c',
26 'migration.c',
27 'multifd.c',
28 'multifd-device-state.c',
29 'multifd-nocomp.c',
30 'multifd-zlib.c',
31 'multifd-zero-page.c',
32 'options.c',
33 'postcopy-ram.c',
34 'ram.c',
35 'savevm.c',
36 'socket.c',
37 'tls.c',
38 ), gnutls, zlib)
39 if have_hmp
40 system_ss.add([spice_headers, files('migration-hmp-cmds.c'), spice])
41 endif
42
43 if get_option('replication').allowed()
44 system_ss.add(files('colo-failover.c', 'colo.c', 'multifd-colo.c'))
45 else
46 system_ss.add(files('colo-stubs.c'))
47 endif
48
49 system_ss.add(when: rdma, if_true: files('rdma.c'))
50 system_ss.add(when: zstd, if_true: files('multifd-zstd.c'))
51 system_ss.add(when: qpl, if_true: files('multifd-qpl.c'))
52 system_ss.add(when: uadk, if_true: files('multifd-uadk.c'))
53 system_ss.add(when: qatzip, if_true: files('multifd-qatzip.c'))
54 system_ss.add(when: 'CONFIG_VFIO',
55 if_true: files('vfio.c'))
56 stub_ss.add(files('vfio-stub.c'))