xref: /qemu/hw/mem/meson.build (revision 2c888feb)
197813b94SMarc-André Lureaumem_ss = ss.source_set()
297813b94SMarc-André Lureaumem_ss.add(files('memory-device.c'))
397813b94SMarc-André Lureaumem_ss.add(when: 'CONFIG_DIMM', if_true: files('pc-dimm.c'))
41351f892SHavard Skinnemoenmem_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_mc.c'))
597813b94SMarc-André Lureaumem_ss.add(when: 'CONFIG_NVDIMM', if_true: files('nvdimm.c'))
6e1706ea8SBen Widawskymem_ss.add(when: 'CONFIG_CXL_MEM_DEVICE', if_true: files('cxl_type3.c'))
7de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_CXL_MEM_DEVICE', if_false: files('cxl_type3_stubs.c'))
897813b94SMarc-André Lureau
92c888febSPaolo Bonzinisystem_ss.add(when: 'CONFIG_MEM_DEVICE', if_false: files('memory-device-stubs.c'))
10de6cd759SPhilippe Mathieu-Daudésystem_ss.add_all(when: 'CONFIG_MEM_DEVICE', if_true: mem_ss)
11b51d4467SPhilippe Mathieu-Daudé
12de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SPARSE_MEM', if_true: files('sparse-mem.c'))
13