node-sword-interface 1.0.9 → 1.0.10
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/CMakeLists.txt +1 -6
- package/binding.gyp +1 -2
- package/package.json +1 -1
- package/scripts/build_sword.sh +3 -1
package/CMakeLists.txt
CHANGED
|
@@ -14,17 +14,12 @@ include_directories(${PROJECT_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/node_modules/no
|
|
|
14
14
|
|
|
15
15
|
link_directories(${CMAKE_SOURCE_DIR}/sword_build)
|
|
16
16
|
|
|
17
|
-
# ICU Components Reference:
|
|
18
|
-
# https://cmake.org/cmake/help/latest/module/FindICU.html
|
|
19
|
-
# ICU components = data, i18n, io, le, lx, test, tu and uc.
|
|
20
|
-
|
|
21
|
-
find_package(ICU COMPONENTS uc i18n data REQUIRED)
|
|
22
17
|
find_package(ZLIB REQUIRED)
|
|
23
18
|
find_package(CURL REQUIRED)
|
|
24
19
|
find_package(BZip2 REQUIRED)
|
|
25
20
|
|
|
26
21
|
set(SWORD_LIBRARY_NAME "libsword.a")
|
|
27
|
-
set(DEPENDENT_LIBS
|
|
22
|
+
set(DEPENDENT_LIBS ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${BZIP2_LIBRARIES})
|
|
28
23
|
|
|
29
24
|
if (UNIX)
|
|
30
25
|
set(DEPENDENT_LIBS ${DEPENDENT_LIBS} pthread)
|
package/binding.gyp
CHANGED
|
@@ -82,8 +82,7 @@
|
|
|
82
82
|
],
|
|
83
83
|
"libraries": [
|
|
84
84
|
'<!@(./scripts/get_sword_library.sh \"../sword_build/libsword.a\")',
|
|
85
|
-
'<!@(pkg-config --libs libcurl)'
|
|
86
|
-
'<!@(pkg-config --libs icu-uc icu-io)'
|
|
85
|
+
'<!@(pkg-config --libs libcurl)'
|
|
87
86
|
],
|
|
88
87
|
"dependencies": [
|
|
89
88
|
"<!(node -p \"require('node-addon-api').gyp\")",
|
package/package.json
CHANGED
package/scripts/build_sword.sh
CHANGED
|
@@ -75,7 +75,9 @@ else
|
|
|
75
75
|
# macOS & Linux
|
|
76
76
|
|
|
77
77
|
cd sword_build
|
|
78
|
-
cmake -DLIBSWORD_LIBRARY_TYPE=Static -DCMAKE_CXX_STANDARD=11 -DCMAKE_BUILD_TYPE=Release
|
|
78
|
+
cmake -DLIBSWORD_LIBRARY_TYPE=Static -DCMAKE_CXX_STANDARD=11 -DCMAKE_BUILD_TYPE=Release \
|
|
79
|
+
-DCMAKE_DISABLE_FIND_PACKAGE_ICU=TRUE \
|
|
80
|
+
../sword
|
|
79
81
|
fi
|
|
80
82
|
|
|
81
83
|
make -j4 sword_static
|