@openziti/ziti-sdk-nodejs 0.25.0 → 0.26.0
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openziti/ziti-sdk-nodejs",
|
|
3
3
|
"description": "A NodeJS-based SDK for delivering secure applications over a Ziti Network",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.26.0",
|
|
5
5
|
"main": "./lib/ziti",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run build:configure && npm run build:make",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
2
|
+
index bdef288..72555c6 100644
|
|
3
|
+
--- a/CMakeLists.txt
|
|
4
|
+
+++ b/CMakeLists.txt
|
|
5
|
+
@@ -77,6 +77,10 @@ function(config_library target)
|
|
6
|
+
NAMESPACE llhttp::
|
|
7
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/llhttp
|
|
8
|
+
)
|
|
9
|
+
+ target_include_directories(${target}
|
|
10
|
+
+ PRIVATE include ${CMAKE_CURRENT_BINARY_DIR}
|
|
11
|
+
+ INTERFACE $<INSTALL_INTERFACE:include>
|
|
12
|
+
+ )
|
|
13
|
+
endfunction(config_library target)
|
|
14
|
+
|
|
15
|
+
if(BUILD_SHARED_LIBS)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
2
|
+
|
|
3
|
+
vcpkg_from_github(
|
|
4
|
+
OUT_SOURCE_PATH SOURCE_PATH
|
|
5
|
+
REPO nodejs/llhttp
|
|
6
|
+
REF refs/tags/release/v${VERSION}
|
|
7
|
+
SHA512 6f659bbdc4e7efc431a506a1889d074cbde0c47dc5daca735f3ac4a31d670f62d29882575cabace832c9523c0dcf93192f8810b05f42ed00bd828bf709feee15
|
|
8
|
+
PATCHES
|
|
9
|
+
fix-usage.patch
|
|
10
|
+
)
|
|
11
|
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LLHTTP_BUILD_STATIC)
|
|
12
|
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LLHTTP_BUILD_SHARED)
|
|
13
|
+
|
|
14
|
+
vcpkg_cmake_configure(
|
|
15
|
+
SOURCE_PATH "${SOURCE_PATH}"
|
|
16
|
+
DISABLE_PARALLEL_CONFIGURE
|
|
17
|
+
OPTIONS
|
|
18
|
+
-DBUILD_SHARED_LIBS=${LLHTTP_BUILD_SHARED}
|
|
19
|
+
-DBUILD_STATIC_LIBS=${LLHTTP_BUILD_STATIC}
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
vcpkg_cmake_install()
|
|
23
|
+
vcpkg_copy_pdbs()
|
|
24
|
+
|
|
25
|
+
vcpkg_cmake_config_fixup(
|
|
26
|
+
CONFIG_PATH "/lib/cmake/${PORT}"
|
|
27
|
+
)
|
|
28
|
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
29
|
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-MIT")
|
|
30
|
+
|
|
31
|
+
vcpkg_fixup_pkgconfig()
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "llhttp",
|
|
3
|
+
"version": "9.3.0",
|
|
4
|
+
"description": "Port of http_parser to llparse.",
|
|
5
|
+
"homepage": "https://github.com/nodejs/llhttp",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"dependencies": [
|
|
8
|
+
{
|
|
9
|
+
"name": "vcpkg-cmake",
|
|
10
|
+
"host": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "vcpkg-cmake-config",
|
|
14
|
+
"host": true
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|