node-sword-interface 1.0.78 → 1.0.80
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 +16 -1
- package/package.json +1 -1
package/binding.gyp
CHANGED
|
@@ -4,7 +4,20 @@
|
|
|
4
4
|
"is_ios%": "<!(python3 -c \"import os; sdk = os.environ.get('SDKROOT', ''); print(1 if 'iPhone' in sdk or os.environ.get('PLATFORM') == 'ios' else 0)\")",
|
|
5
5
|
|
|
6
6
|
# 2. Get the deployment target (e.g., '15.0') from env, default to '13.0'
|
|
7
|
-
"ios_ver%": "<!(python3 -c \"import os; print(os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '13.0'))\")"
|
|
7
|
+
"ios_ver%": "<!(python3 -c \"import os; print(os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '13.0'))\")",
|
|
8
|
+
|
|
9
|
+
# 3. Detect the SDK to use (iphoneos or iphonesimulator)
|
|
10
|
+
"ios_sdk": "<!(python3 -c \"import os; print('iphonesimulator' if 'iPhoneSimulator' in os.environ.get('SDKROOT', '') else 'iphoneos')\")"
|
|
11
|
+
},
|
|
12
|
+
"target_defaults": {
|
|
13
|
+
"conditions": [
|
|
14
|
+
["is_ios==1", {
|
|
15
|
+
"xcode_settings": {
|
|
16
|
+
"SDKROOT": "<(ios_sdk)",
|
|
17
|
+
"IPHONEOS_DEPLOYMENT_TARGET": "<(ios_ver)"
|
|
18
|
+
}
|
|
19
|
+
}]
|
|
20
|
+
]
|
|
8
21
|
},
|
|
9
22
|
"targets": [
|
|
10
23
|
{
|
|
@@ -110,6 +123,8 @@
|
|
|
110
123
|
'sword'
|
|
111
124
|
],
|
|
112
125
|
"xcode_settings": {
|
|
126
|
+
"SDKROOT": "<(ios_sdk)",
|
|
127
|
+
"IPHONEOS_DEPLOYMENT_TARGET": "<(ios_ver)",
|
|
113
128
|
"ONLY_ACTIVE_ARCH": "YES",
|
|
114
129
|
"OTHER_LDFLAGS": [
|
|
115
130
|
"-dynamiclib",
|