meson.build 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. system_ss.add(files(
  12. 'block-dirty-bitmap.c',
  13. 'channel.c',
  14. 'channel-block.c',
  15. 'dirtyrate.c',
  16. 'exec.c',
  17. 'fd.c',
  18. 'file.c',
  19. 'global_state.c',
  20. 'migration-hmp-cmds.c',
  21. 'migration.c',
  22. 'multifd.c',
  23. 'multifd-zlib.c',
  24. 'multifd-zero-page.c',
  25. 'ram-compress.c',
  26. 'options.c',
  27. 'postcopy-ram.c',
  28. 'savevm.c',
  29. 'socket.c',
  30. 'tls.c',
  31. 'threadinfo.c',
  32. ), gnutls)
  33. if get_option('replication').allowed()
  34. system_ss.add(files('colo-failover.c', 'colo.c'))
  35. else
  36. system_ss.add(files('colo-stubs.c'))
  37. endif
  38. system_ss.add(when: rdma, if_true: files('rdma.c'))
  39. if get_option('live_block_migration').allowed()
  40. system_ss.add(files('block.c'))
  41. endif
  42. system_ss.add(when: zstd, if_true: files('multifd-zstd.c'))
  43. specific_ss.add(when: 'CONFIG_SYSTEM_ONLY',
  44. if_true: files('ram.c',
  45. 'target.c'))