aboutsummaryrefslogtreecommitdiff
path: root/hw/display/meson.build
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-10-23 08:46:17 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-10-29 06:37:24 +0100
commit74acdf0af81f803e748523363abd3c145b9d25ad (patch)
tree28553a73ef646634013d8ef4baa9585bb1a2eaef /hw/display/meson.build
parentbbc48d2bcb9711614fbe751c2c5ae13e172fbca8 (diff)
downloadqemu-74acdf0af81f803e748523363abd3c145b9d25ad.zip
qemu-74acdf0af81f803e748523363abd3c145b9d25ad.tar.gz
qemu-74acdf0af81f803e748523363abd3c145b9d25ad.tar.bz2
virtio-gpu: add virtio-gpu-pci module
Build virtio-gpu pci devices modular. Must be a separate module because not all qemu softmmu variants come with PCI support. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20201023064618.21409-2-kraxel@redhat.com
Diffstat (limited to 'hw/display/meson.build')
-rw-r--r--hw/display/meson.build11
1 files changed, 9 insertions, 2 deletions
diff --git a/hw/display/meson.build b/hw/display/meson.build
index 0d5ddec..6699353 100644
--- a/hw/display/meson.build
+++ b/hw/display/meson.build
@@ -62,8 +62,15 @@ if config_all_devices.has_key('CONFIG_VIRTIO_GPU')
hw_display_modules += {'virtio-gpu': virtio_gpu_ss}
endif
-softmmu_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI'], if_true: files('virtio-gpu-pci.c'))
-softmmu_ss.add(when: ['CONFIG_VHOST_USER_GPU', 'CONFIG_VIRTIO_PCI'], if_true: files('vhost-user-gpu-pci.c'))
+if config_all_devices.has_key('CONFIG_VIRTIO_PCI')
+ virtio_gpu_pci_ss = ss.source_set()
+ virtio_gpu_pci_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI'],
+ if_true: [files('virtio-gpu-pci.c'), pixman])
+ virtio_gpu_pci_ss.add(when: ['CONFIG_VHOST_USER_GPU', 'CONFIG_VIRTIO_PCI'],
+ if_true: files('vhost-user-gpu-pci.c'))
+ hw_display_modules += {'virtio-gpu-pci': virtio_gpu_pci_ss}
+endif
+
softmmu_ss.add(when: 'CONFIG_VIRTIO_VGA', if_true: files('virtio-vga.c'))
softmmu_ss.add(when: 'CONFIG_VHOST_USER_VGA', if_true: files('vhost-user-vga.c'))