-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nodejs v22 and v23 to build matrix (#89)
* add nodejs v22 and v23 to build matrix * Update c-sdk to latest commit
- Loading branch information
1 parent
d88eb31
commit 822b24a
Showing
29 changed files
with
290 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
[submodule "deps/ziti-sdk-c"] | ||
path = deps/ziti-sdk-c | ||
url = https://github.com/openziti/ziti-sdk-c | ||
branch = main | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
include(FetchContent) | ||
|
||
if (WIN32) | ||
# nodejs contains all needed libuv stuff | ||
# trick TLSUV to link against it | ||
add_library(libuv::uv SHARED IMPORTED) | ||
set_target_properties(libuv::uv PROPERTIES | ||
IMPORTED_LOCATION ${CMAKE_JS_LIB} | ||
IMPORTED_IMPLIB ${CMAKE_JS_LIB} | ||
) | ||
set(TLSUV_LIBUV_LIB libuv::uv) | ||
|
||
# make sure on WIN32 tlsuv uses our definition for libuv | ||
FetchContent_Declare(tlsuv | ||
GIT_REPOSITORY https://github.com/openziti/tlsuv.git | ||
GIT_TAG v0.33.1 | ||
PATCH_COMMAND git apply ${CMAKE_CURRENT_SOURCE_DIR}/tlsuv-libuv.patch | ||
) | ||
FetchContent_MakeAvailable(tlsuv) | ||
endif (WIN32) | ||
|
||
FetchContent_Declare(ziti | ||
GIT_REPOSITORY https://github.com/openziti/ziti-sdk-c.git | ||
GIT_TAG 1.3.5 | ||
) | ||
FetchContent_MakeAvailable(ziti) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f8a0c2f..a07ee13 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -84,21 +84,25 @@ endif() | ||
include(FindPkgConfig) | ||
find_package(PkgConfig) | ||
|
||
-find_package(libuv CONFIG QUIET) | ||
-if (libuv_FOUND) | ||
- # newer libuv versions (via VCPKG) have proper namespacing | ||
- if (TARGET libuv::uv_a) | ||
- set(TLSUV_LIBUV_LIB libuv::uv_a) | ||
- elseif (TARGET uv_a) | ||
- set(TLSUV_LIBUV_LIB uv_a) | ||
- elseif (TARGET libuv::uv) | ||
- set(TLSUV_LIBUV_LIB libuv::uv) | ||
+if (TARGET libuv::uv) | ||
+ set(TLSUV_LIBUV_LIB libuv::uv) | ||
+else () | ||
+ find_package(libuv CONFIG QUIET) | ||
+ if (libuv_FOUND) | ||
+ # newer libuv versions (via VCPKG) have proper namespacing | ||
+ if (TARGET libuv::uv_a) | ||
+ set(TLSUV_LIBUV_LIB libuv::uv_a) | ||
+ elseif (TARGET uv_a) | ||
+ set(TLSUV_LIBUV_LIB uv_a) | ||
+ elseif (TARGET libuv::uv) | ||
+ set(TLSUV_LIBUV_LIB libuv::uv) | ||
+ else() | ||
+ set(TLSUV_LIBUV_LIB uv) | ||
+ endif() | ||
else() | ||
- set(TLSUV_LIBUV_LIB uv) | ||
+ pkg_check_modules(libuv REQUIRED IMPORTED_TARGET libuv) | ||
+ set(TLSUV_LIBUV_LIB PkgConfig::libuv) | ||
endif() | ||
-else() | ||
- pkg_check_modules(libuv REQUIRED IMPORTED_TARGET libuv) | ||
- set(TLSUV_LIBUV_LIB PkgConfig::libuv) | ||
endif() | ||
|
||
add_library(tlsuv STATIC |
Submodule ziti-sdk-c
deleted from
d33672
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#define ZITI_VERSION @ZITI_VERSION@ | ||
#define ZITI_COMMIT @ZITI_COMMIT@ | ||
#define ZITI_BRANCH @ZITI_BRANCH@ | ||
#define ZITI_NODEJS_VERSION @ZITI_VERSION@ | ||
#define ZITI_NODEJS_COMMIT @ZITI_COMMIT@ | ||
#define ZITI_NODEJS_BRANCH @ZITI_BRANCH@ | ||
#define ZITI_OS @CMAKE_SYSTEM_NAME@ | ||
#define ZITI_ARCH @CMAKE_SYSTEM_PROCESSOR@ | ||
#define BUILD_DATE @BUILD_DATE@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.