mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-22 19:31:32 +00:00
build script: override platform for moltenvk target
This commit is contained in:
parent
5b6aaf81aa
commit
a22a30abc0
1 changed files with 7 additions and 0 deletions
7
build.py
7
build.py
|
@ -1109,6 +1109,13 @@ class MoltenVKTarget(MakeTarget):
|
||||||
def detect(self, builder: 'Builder') -> bool:
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
return os.path.exists(builder.source_path + 'MoltenVKPackaging.xcodeproj')
|
return os.path.exists(builder.source_path + 'MoltenVKPackaging.xcodeproj')
|
||||||
|
|
||||||
|
def configure(self, builder: 'Builder'):
|
||||||
|
# Unset platform to avoid using specified macOS deployment target and SDK
|
||||||
|
# MoltenVK defines minimal OS version itself, and usually, it requires the very recent SDK
|
||||||
|
builder.platform = None
|
||||||
|
|
||||||
|
super().configure(builder)
|
||||||
|
|
||||||
def build(self, builder: 'Builder'):
|
def build(self, builder: 'Builder'):
|
||||||
args = ('./fetchDependencies', '--macos', '-v')
|
args = ('./fetchDependencies', '--macos', '-v')
|
||||||
subprocess.check_call(args, cwd=builder.build_path)
|
subprocess.check_call(args, cwd=builder.build_path)
|
||||||
|
|
Loading…
Reference in a new issue