node-sword-interface 1.0.117 → 1.0.118
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 +0 -6
- package/package.json +1 -1
- package/scripts/build_sword.sh +9 -0
package/binding.gyp
CHANGED
|
@@ -100,12 +100,6 @@
|
|
|
100
100
|
"conditions":[
|
|
101
101
|
["is_ios==1", {
|
|
102
102
|
"type": "shared_library",
|
|
103
|
-
# Exclude unzip sources from iOS build, because these symbols otherwise
|
|
104
|
-
# get duplicated with the unzip symbols in the static libsword.a.
|
|
105
|
-
"sources!": [
|
|
106
|
-
"src/lib/unzip/unzip.c",
|
|
107
|
-
"src/lib/unzip/ioapi.c"
|
|
108
|
-
],
|
|
109
103
|
'include_dirs': [
|
|
110
104
|
"<(module_root_dir)/src/sword_backend",
|
|
111
105
|
"<(module_root_dir)/src/lib",
|
package/package.json
CHANGED
package/scripts/build_sword.sh
CHANGED
|
@@ -133,3 +133,12 @@ else
|
|
|
133
133
|
fi
|
|
134
134
|
|
|
135
135
|
make -j8 sword_static
|
|
136
|
+
|
|
137
|
+
# For iOS: remove SWORD's bundled minizip objects from libsword.a to avoid
|
|
138
|
+
# duplicate symbols when -all_load is used in the dylib link step.
|
|
139
|
+
if [ "$1" = "--ios" ] ; then
|
|
140
|
+
echo "-- Stripping SWORD's bundled minizip objects from libsword.a"
|
|
141
|
+
ar -t libsword.a | grep -iE 'unzip|ioapi' | while IFS= read -r obj; do
|
|
142
|
+
ar -d libsword.a "$obj"
|
|
143
|
+
done
|
|
144
|
+
fi
|