16 lines
699 B
Diff
16 lines
699 B
Diff
--- a/build/mac/find_sdk.py
|
|
+++ b/build/mac/find_sdk.py
|
|
@@ -1,3 +1,12 @@
|
|
+import os,sys,json
|
|
+if sys.platform == 'linux' and os.environ.get('STATICLINK_MACOS_SDK'):
|
|
+ sdk=os.environ['STATICLINK_MACOS_SDK']
|
|
+ if '--print_sdk_path' in sys.argv:print('//'+str(__import__('pathlib').Path.cwd().relative_to(__import__('pathlib').Path(__file__).resolve().parents[2]))+'/sdk/xcode_links/MacOSX15.5.sdk')
|
|
+ if '--print_bin_path' in sys.argv:print(os.environ['STATICLINK_DARWIN_TOOLS'])
|
|
+ if '--print_sdk_build' in sys.argv:print('24F74')
|
|
+ print('15.5')
|
|
+ sys.exit(0)
|
|
+
|
|
#!/usr/bin/env python3
|
|
# Copyright 2012 The Chromium Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|