node-sword-interface 1.0.75 → 1.0.77
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 +3 -10
- package/package.json +1 -1
- package/scripts/build_sword.sh +0 -2
package/binding.gyp
CHANGED
|
@@ -4,10 +4,7 @@
|
|
|
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'))\")"
|
|
8
|
-
|
|
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}')\")"
|
|
7
|
+
"ios_ver%": "<!(python3 -c \"import os; print(os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '13.0'))\")"
|
|
11
8
|
},
|
|
12
9
|
"targets": [
|
|
13
10
|
{
|
|
@@ -25,7 +22,7 @@
|
|
|
25
22
|
'message': 'Building sword library for iOS...',
|
|
26
23
|
'inputs': [],
|
|
27
24
|
'outputs': ['sword_build/libsword.a'],
|
|
28
|
-
'action': ['./scripts/build_sword.sh', '--ios', '
|
|
25
|
+
'action': ['./scripts/build_sword.sh', '--ios', '${PLATFORM_NAME}', '<(ios_ver)'],
|
|
29
26
|
}
|
|
30
27
|
]
|
|
31
28
|
}],
|
|
@@ -120,16 +117,12 @@
|
|
|
120
117
|
"SDKROOT": "iphoneos",
|
|
121
118
|
"IPHONEOS_DEPLOYMENT_TARGET": "<(ios_ver)",
|
|
122
119
|
"ONLY_ACTIVE_ARCH": "YES",
|
|
123
|
-
"OTHER_CFLAGS": [
|
|
124
|
-
"-target <(ios_target)"
|
|
125
|
-
],
|
|
126
120
|
"OTHER_LDFLAGS": [
|
|
127
121
|
"-dynamiclib",
|
|
128
122
|
"-install_name @rpath/node_sword_interface.framework/node_sword_interface",
|
|
129
123
|
"-undefined dynamic_lookup",
|
|
130
124
|
"-Wl,-bind_at_load",
|
|
131
|
-
"-all_load"
|
|
132
|
-
"-target <(ios_target)"
|
|
125
|
+
"-all_load"
|
|
133
126
|
],
|
|
134
127
|
"MACH_O_TYPE": "mh_dylib",
|
|
135
128
|
"PRODUCT_TYPE": "com.apple.product-type.framework"
|
package/package.json
CHANGED
package/scripts/build_sword.sh
CHANGED
|
@@ -104,8 +104,6 @@ elif [ "$1" = "--ios" ] ; then
|
|
|
104
104
|
-DCMAKE_OSX_SYSROOT=$SYSROOT \
|
|
105
105
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=$IOS_VER \
|
|
106
106
|
-DCMAKE_BUILD_TYPE=$SWORD_BUILD_TYPE \
|
|
107
|
-
-DNODYNCAST=1 \
|
|
108
|
-
-DCMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH=NO \
|
|
109
107
|
../sword
|
|
110
108
|
else
|
|
111
109
|
# macOS & Linux
|