summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2020-11-25 16:52:44 +0000
committerTim-Philipp Müller <tim@centricular.com>2021-01-13 01:06:51 +0000
commitd4d936ac6f94ed789815af89770a9162063fead0 (patch)
tree14c07f6e17e1131bb20ce6a83e72565120f320e0
parent41d6a4b1ffcb1e7e5ebde9b7ed4e0475947446b1 (diff)
macos: disable vulkan for ARM64
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/661>
-rw-r--r--packages/gstreamer-1.0-system.package4
-rw-r--r--recipes/gst-plugins-bad-1.0.recipe7
2 files changed, 9 insertions, 2 deletions
diff --git a/packages/gstreamer-1.0-system.package b/packages/gstreamer-1.0-system.package
index 23b2ac83..ba28517d 100644
--- a/packages/gstreamer-1.0-system.package
+++ b/packages/gstreamer-1.0-system.package
@@ -19,7 +19,6 @@ class Package(custom.GStreamer, package.Package):
'gst-plugins-bad-1.0:plugins_sys_devel']
platform_files = {
- Platform.DARWIN : ['moltenvk:libs'],
Platform.IOS : ['moltenvk:libs'],
}
@@ -32,3 +31,6 @@ class Package(custom.GStreamer, package.Package):
if self.config.target_arch in (Architecture.X86, Architecture.X86_64, Architecture.ARM64, Architecture.UNIVERSAL):
self.files.append('angle-uwp:libs')
self.files_devel.append('angle-uwp:headers')
+ if self.config.target_platform == Platform.DARWIN and \
+ self.config.target_arch == Architecture.X86_64:
+ self.platform_files[Platform.DARWIN] = ['moltenvk:libs']
diff --git a/recipes/gst-plugins-bad-1.0.recipe b/recipes/gst-plugins-bad-1.0.recipe
index 1310af35..b085b687 100644
--- a/recipes/gst-plugins-bad-1.0.recipe
+++ b/recipes/gst-plugins-bad-1.0.recipe
@@ -493,7 +493,12 @@ class Recipe(custom.GStreamer):
if self.config.target_platform in (Platform.DARWIN, Platform.IOS):
self.meson_options['applemedia'] = 'enabled'
- self.deps += ['moltenvk']
+ # No Vulkan SDK for macOS ARM664 yet
+ if self.config.target_platform == Platform.DARWIN and \
+ self.config.target_arch == Architecture.ARM64:
+ self.disable_plugin('vulkan', 'vulkan', library_name='vulkan')
+ else:
+ self.deps += ['moltenvk']
if self.config.target_platform in (Platform.ANDROID):
self.deps += ['vulkan-android']