summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorDuncan Hopkins <duncan@thefoundry.co.uk>2021-06-02 10:28:32 +0100
committerMarge Bot <eric+marge@anholt.net>2021-06-04 08:58:16 +0000
commita2d6a5f88528ea4cacb9fc981c060e4613089229 (patch)
tree7fdf184e7535431abbf1445940f2aff652270508 /meson_options.txt
parent3102892fb8f17527bdd7fbf74bb5a1d6c857facf (diff)
zink: Fix MacOS compiling issues
Add a moltenvk-dir build option to supply the MacOS Vulkan SDK MoltenVK location. Force compiler, for zink only, into object-c mode when MoltenVK is used to allow for the MacOS ioSurface and CAMetalLayer types that the headers expose. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11129>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index fa6a9809e11..11feb3f6763 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -224,6 +224,12 @@ option(
description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
)
option(
+ 'moltenvk-dir',
+ type : 'string',
+ value : '',
+ description : 'Location of the MoltenVk SDK. Default: '
+)
+option(
'vulkan-layers',
type : 'array',
value : [],