Merge remote-tracking branch 'qemu-project/master'
[qemu/ar7.git] / hw / mem / meson.build
blob1c1c6da24b5fe8af8d6c65d21b2ed65f257a70af
1 mem_ss = ss.source_set()
2 mem_ss.add(files('memory-device.c'))
3 mem_ss.add(when: 'CONFIG_DIMM', if_true: files('pc-dimm.c'))
4 mem_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_mc.c'))
5 mem_ss.add(when: 'CONFIG_NVDIMM', if_true: files('nvdimm.c'))
6 mem_ss.add(when: 'CONFIG_CXL_MEM_DEVICE', if_true: files('cxl_type3.c'))
7 system_ss.add(when: 'CONFIG_CXL_MEM_DEVICE', if_false: files('cxl_type3_stubs.c'))
9 system_ss.add(when: 'CONFIG_MEM_DEVICE', if_false: files('memory-device-stubs.c'))
10 system_ss.add_all(when: 'CONFIG_MEM_DEVICE', if_true: mem_ss)
12 system_ss.add(when: 'CONFIG_SPARSE_MEM', if_true: files('sparse-mem.c'))