diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-20 14:20:27 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-25 16:18:12 +0100 |
| commit | d50ea7f0e6fd2b0631abb61d213a396e3df32d7e (patch) | |
| tree | 586c0e43f161d43994f2b5a97ebc9f09348c88d9 /hw/display | |
| parent | ae3a420fea8bfc545a4ca4b899d2fe6a3031aefa (diff) | |
| download | focaccia-qemu-d50ea7f0e6fd2b0631abb61d213a396e3df32d7e.tar.gz focaccia-qemu-d50ea7f0e6fd2b0631abb61d213a396e3df32d7e.zip | |
pvg: add option to configure it out
... and also to require it (--enable-pvg). While at it, unify the dependency() call for pvg and metal, which simplifies the logic a bit. Note that all other Apple frameworks are either required or always-present, therefore do not add them to the summary in the same way as PVG. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/display')
| -rw-r--r-- | hw/display/meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/display/meson.build b/hw/display/meson.build index b9bdf21910..90e6c041bd 100644 --- a/hw/display/meson.build +++ b/hw/display/meson.build @@ -61,10 +61,8 @@ system_ss.add(when: 'CONFIG_ARTIST', if_true: files('artist.c')) system_ss.add(when: 'CONFIG_ATI_VGA', if_true: [files('ati.c', 'ati_2d.c', 'ati_dbg.c'), pixman]) -if pvg.found() - system_ss.add(when: 'CONFIG_MAC_PVG_PCI', if_true: [files('apple-gfx.m', 'apple-gfx-pci.m'), pvg, metal]) - system_ss.add(when: 'CONFIG_MAC_PVG_MMIO', if_true: [files('apple-gfx.m', 'apple-gfx-mmio.m'), pvg, metal]) -endif +system_ss.add(when: [pvg, 'CONFIG_MAC_PVG_PCI'], if_true: [files('apple-gfx.m', 'apple-gfx-pci.m')]) +system_ss.add(when: [pvg, 'CONFIG_MAC_PVG_MMIO'], if_true: [files('apple-gfx.m', 'apple-gfx-mmio.m')]) if config_all_devices.has_key('CONFIG_VIRTIO_GPU') virtio_gpu_ss = ss.source_set() |