aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio/meson.build
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-08-15 17:31:07 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:26 -0400
commit4f780d5629e965e2c479f36adeed11dc6902306c (patch)
tree7438326a6786734998135fb39d0da1d2f89b4035 /hw/vfio/meson.build
parentbe786d2f4aa3f9f53141ddabb50247176c004506 (diff)
downloadqemu-4f780d5629e965e2c479f36adeed11dc6902306c.zip
qemu-4f780d5629e965e2c479f36adeed11dc6902306c.tar.gz
qemu-4f780d5629e965e2c479f36adeed11dc6902306c.tar.bz2
meson: convert hw/vfio
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/vfio/meson.build')
-rw-r--r--hw/vfio/meson.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/hw/vfio/meson.build b/hw/vfio/meson.build
new file mode 100644
index 0000000..37efa74
--- /dev/null
+++ b/hw/vfio/meson.build
@@ -0,0 +1,18 @@
+vfio_ss = ss.source_set()
+vfio_ss.add(files(
+ 'common.c',
+ 'spapr.c',
+))
+vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
+ 'display.c',
+ 'pci-quirks.c',
+ 'pci.c',
+))
+vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
+vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c'))
+vfio_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
+vfio_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
+vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c'))
+vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
+
+specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)