mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 05:11:49 +00:00
build script: use local macos sdk when found
This commit is contained in:
parent
446de1778e
commit
fb9a8b80be
2 changed files with 6 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
||||||
/.idea/
|
/.idea/
|
||||||
/build/
|
/build/
|
||||||
/prefix/
|
/prefix/
|
||||||
|
/sdk/
|
||||||
|
|
||||||
/deps/*/share
|
/deps/*/share
|
||||||
/deps/**/*.la
|
/deps/**/*.la
|
||||||
|
|
5
build.py
5
build.py
|
@ -799,6 +799,11 @@ class Builder(object):
|
||||||
self.jobs = arguments.jobs and arguments.jobs or \
|
self.jobs = arguments.jobs and arguments.jobs or \
|
||||||
subprocess.check_output(['sysctl', '-n', 'hw.ncpu']).decode('ascii').strip()
|
subprocess.check_output(['sysctl', '-n', 'hw.ncpu']).decode('ascii').strip()
|
||||||
|
|
||||||
|
if not self.sdk_path:
|
||||||
|
sdk_probe_path = f'{self.root_path}sdk{os.sep}MacOSX{self.os_version}.sdk'
|
||||||
|
if os.path.exists(sdk_probe_path):
|
||||||
|
self.sdk_path = sdk_probe_path
|
||||||
|
|
||||||
self.target.initialize(self)
|
self.target.initialize(self)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
Loading…
Reference in a new issue