node-sword-interface 1.0.75 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +6 -3
- package/package.json +1 -1
package/binding.gyp
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
"ios_ver%": "<!(python3 -c \"import os; print(os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '13.0'))\")",
|
|
8
8
|
|
|
9
9
|
# 3. Construct the full target triple dynamically
|
|
10
|
-
"ios_target": "<!(python3 -c \"import os; ver = os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '13.0'); suffix = '-simulator' if 'iPhoneSimulator' in os.environ.get('SDKROOT', '') else ''; print(f'arm64-apple-ios{ver}{suffix}')\")"
|
|
10
|
+
"ios_target": "<!(python3 -c \"import os; ver = os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '13.0'); suffix = '-simulator' if 'iPhoneSimulator' in os.environ.get('SDKROOT', '') else ''; print(f'arm64-apple-ios{ver}{suffix}')\")",
|
|
11
|
+
|
|
12
|
+
# 4. Detect the SDK to use (iphoneos or iphonesimulator)
|
|
13
|
+
"ios_sdk": "<!(python3 -c \"import os; print('iphonesimulator' if 'iPhoneSimulator' in os.environ.get('SDKROOT', '') else 'iphoneos')\")"
|
|
11
14
|
},
|
|
12
15
|
"targets": [
|
|
13
16
|
{
|
|
@@ -16,7 +19,7 @@
|
|
|
16
19
|
'conditions': [
|
|
17
20
|
["is_ios==1", {
|
|
18
21
|
"xcode_settings": {
|
|
19
|
-
"SDKROOT": "
|
|
22
|
+
"SDKROOT": "<(ios_sdk)",
|
|
20
23
|
"IPHONEOS_DEPLOYMENT_TARGET": "<(ios_ver)"
|
|
21
24
|
},
|
|
22
25
|
'actions': [
|
|
@@ -117,7 +120,7 @@
|
|
|
117
120
|
'sword'
|
|
118
121
|
],
|
|
119
122
|
"xcode_settings": {
|
|
120
|
-
"SDKROOT": "
|
|
123
|
+
"SDKROOT": "<(ios_sdk)",
|
|
121
124
|
"IPHONEOS_DEPLOYMENT_TARGET": "<(ios_ver)",
|
|
122
125
|
"ONLY_ACTIVE_ARCH": "YES",
|
|
123
126
|
"OTHER_CFLAGS": [
|