xref: /qemu/migration/meson.build (revision 68af4cc1)
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-channel.c',
8  'qemu-file.c',
9)
10softmmu_ss.add(migration_files)
11
12softmmu_ss.add(files(
13  'block-dirty-bitmap.c',
14  'channel.c',
15  'colo-failover.c',
16  'colo.c',
17  'exec.c',
18  'fd.c',
19  'global_state.c',
20  'migration.c',
21  'multifd.c',
22  'multifd-zlib.c',
23  'postcopy-ram.c',
24  'savevm.c',
25  'socket.c',
26  'tls.c',
27))
28
29softmmu_ss.add(when: ['CONFIG_RDMA', rdma], if_true: files('rdma.c'))
30softmmu_ss.add(when: 'CONFIG_LIVE_BLOCK_MIGRATION', if_true: files('block.c'))
31softmmu_ss.add(when: 'CONFIG_ZSTD', if_true: [files('multifd-zstd.c'), zstd])
32
33specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files('dirtyrate.c', 'ram.c'))
34