Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade openssl to 3.2.0, httplib to 0.15.0 #112

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ project(zswag)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(ZSWAG_VERSION 1.6.3)
set(ZSWAG_VERSION 1.6.4)

option(ZSWAG_BUILD_WHEELS "Enable zswag whl-output to WHEEL_DEPLOY_DIRECTORY." ON)
option(ZSWAG_KEYCHAIN_SUPPORT "Enable zswag keychain support." ON)
Expand Down Expand Up @@ -104,7 +104,7 @@ endif()
if (NOT TARGET httplib)
FetchContent_Declare(httplib
GIT_REPOSITORY "https://github.com/yhirose/cpp-httplib.git"
GIT_TAG "v0.13.1"
GIT_TAG "v0.15.0"
GIT_SHALLOW ON)
FetchContent_MakeAvailable(httplib)
target_compile_definitions(httplib
Expand Down Expand Up @@ -165,20 +165,20 @@ message(STATUS "OpenSSL include dir: ${OPENSSL_INCLUDE_DIR}")
if(APPLE)
set(OPENSSL_LIB_DIR "${OPENSSL_INCLUDE_DIR}/../lib")
set(OPENSSL_LIBS
"${OPENSSL_LIB_DIR}/libcrypto.1.1.dylib"
"${OPENSSL_LIB_DIR}/libssl.1.1.dylib"
"${OPENSSL_LIB_DIR}/libcrypto.3.dylib"
"${OPENSSL_LIB_DIR}/libssl.3.dylib"
)
elseif(MSVC)
set(OPENSSL_LIB_DIR "${OPENSSL_INCLUDE_DIR}/../bin")
set(OPENSSL_LIBS
"${OPENSSL_LIB_DIR}/libcrypto-1_1-x64.dll"
"${OPENSSL_LIB_DIR}/libssl-1_1-x64.dll"
"${OPENSSL_LIB_DIR}/libcrypto-3-x64.dll"
"${OPENSSL_LIB_DIR}/libssl-3-x64.dll"
)
elseif(UNIX AND NOT APPLE)
set(OPENSSL_LIB_DIR "${OPENSSL_INCLUDE_DIR}/../lib")
set(OPENSSL_LIBS
"${OPENSSL_LIB_DIR}/libcrypto.so.1.1"
"${OPENSSL_LIB_DIR}/libssl.so.1.1"
"${OPENSSL_LIB_DIR}/libcrypto.so.3"
"${OPENSSL_LIB_DIR}/libssl.so.3"
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion conanfile.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[requires]
openssl/1.1.1t
openssl/3.2.0
keychain/1.2.1
spdlog/1.11.0
pybind11/2.10.4
Expand Down
8 changes: 4 additions & 4 deletions libs/pyzswagcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ target_compile_features(pyzswagcl
if (MSVC)
# Required because cpp-httplib speaks https via OpenSSL
set (DEPLOY_FILES
"${OPENSSL_INCLUDE_DIR}/../bin/libcrypto-1_1-x64.dll"
"${OPENSSL_INCLUDE_DIR}/../bin/libssl-1_1-x64.dll")
"${OPENSSL_INCLUDE_DIR}/../bin/libcrypto-3-x64.dll"
"${OPENSSL_INCLUDE_DIR}/../bin/libssl-3-x64.dll")
endif()

if (APPLE)
# Required because cpp-httplib speaks https via OpenSSL
set (DEPLOY_FILES
"${OPENSSL_INCLUDE_DIR}/../lib/libcrypto.1.1.dylib"
"${OPENSSL_INCLUDE_DIR}/../lib/libssl.1.1.dylib")
"${OPENSSL_INCLUDE_DIR}/../lib/libcrypto.3.dylib"
"${OPENSSL_INCLUDE_DIR}/../lib/libssl.3.dylib")
endif()

add_wheel(pyzswagcl
Expand Down
Loading