build script: disable metal support in sdl2

it's impossible to have metal (and vulkan) support with 10.9 deployment target
This commit is contained in:
alexey.lysiuk 2020-12-30 11:13:54 +02:00
parent b37205e589
commit b08c779a2f

View file

@ -1338,6 +1338,13 @@ class Sdl2Target(CMakeStaticDependencyTarget):
def __init__(self, name='sdl2'): def __init__(self, name='sdl2'):
super().__init__(name) super().__init__(name)
# Need to have uniform settings for x86_64 and arm64 because of linking with Metal framework
# TODO: Remove this when default target for x64 will become 10.11+
opts = self.options
opts['VIDEO_VULKAN'] = 'NO'
opts['VIDEO_METAL'] = 'NO'
opts['RENDER_METAL'] = 'NO'
def prepare_source(self, builder: 'Builder'): def prepare_source(self, builder: 'Builder'):
builder.download_source( builder.download_source(
'https://libsdl.org/release/SDL2-2.0.14.tar.gz', 'https://libsdl.org/release/SDL2-2.0.14.tar.gz',