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 'qjson.c', 10) 11 12libmigration = static_library('migration', sources: migration_files + genh, 13 name_suffix: 'fa', 14 build_by_default: false) 15migration = declare_dependency(link_with: libmigration, 16 dependencies: [zlib, qom, io]) 17softmmu_ss.add(migration) 18 19softmmu_ss.add(files( 20 'block-dirty-bitmap.c', 21 'channel.c', 22 'colo-failover.c', 23 'colo.c', 24 'exec.c', 25 'fd.c', 26 'global_state.c', 27 'migration.c', 28 'multifd.c', 29 'multifd-zlib.c', 30 'postcopy-ram.c', 31 'savevm.c', 32 'socket.c', 33 'tls.c', 34)) 35 36softmmu_ss.add(when: ['CONFIG_RDMA', rdma], if_true: files('rdma.c')) 37softmmu_ss.add(when: 'CONFIG_LIVE_BLOCK_MIGRATION', if_true: files('block.c')) 38softmmu_ss.add(when: 'CONFIG_ZSTD', if_true: [files('multifd-zstd.c'), zstd]) 39 40specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files('dirtyrate.c', 'ram.c')) 41