node-sword-interface 1.0.76 → 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 CHANGED
@@ -4,13 +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}')\")",
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')\")"
7
+ "ios_ver%": "<!(python3 -c \"import os; print(os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '13.0'))\")"
14
8
  },
15
9
  "targets": [
16
10
  {
@@ -19,7 +13,7 @@
19
13
  'conditions': [
20
14
  ["is_ios==1", {
21
15
  "xcode_settings": {
22
- "SDKROOT": "<(ios_sdk)",
16
+ "SDKROOT": "iphoneos",
23
17
  "IPHONEOS_DEPLOYMENT_TARGET": "<(ios_ver)"
24
18
  },
25
19
  'actions': [
@@ -28,7 +22,7 @@
28
22
  'message': 'Building sword library for iOS...',
29
23
  'inputs': [],
30
24
  'outputs': ['sword_build/libsword.a'],
31
- 'action': ['./scripts/build_sword.sh', '--ios', '<(ios_target)', '<(ios_ver)'],
25
+ 'action': ['./scripts/build_sword.sh', '--ios', '${PLATFORM_NAME}', '<(ios_ver)'],
32
26
  }
33
27
  ]
34
28
  }],
@@ -120,19 +114,15 @@
120
114
  'sword'
121
115
  ],
122
116
  "xcode_settings": {
123
- "SDKROOT": "<(ios_sdk)",
117
+ "SDKROOT": "iphoneos",
124
118
  "IPHONEOS_DEPLOYMENT_TARGET": "<(ios_ver)",
125
119
  "ONLY_ACTIVE_ARCH": "YES",
126
- "OTHER_CFLAGS": [
127
- "-target <(ios_target)"
128
- ],
129
120
  "OTHER_LDFLAGS": [
130
121
  "-dynamiclib",
131
122
  "-install_name @rpath/node_sword_interface.framework/node_sword_interface",
132
123
  "-undefined dynamic_lookup",
133
124
  "-Wl,-bind_at_load",
134
- "-all_load",
135
- "-target <(ios_target)"
125
+ "-all_load"
136
126
  ],
137
127
  "MACH_O_TYPE": "mh_dylib",
138
128
  "PRODUCT_TYPE": "com.apple.product-type.framework"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -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