-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88931dc
commit 5442d35
Showing
3 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Source: caf | ||
Version: 0.15.6 | ||
Build-Depends: openssl | ||
Description: an open source C++11 actor model implementation featuring lightweight & fast actor implementations, pattern matching for messages, network transparent messaging, and more. |
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,14 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a7b75f7..794af1d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -545,6 +545,9 @@ if(NOT CAF_NO_OPENSSL) | ||
message(STATUS | ||
"Disable OpenSSL. Required >= 1.0.1 due to TLSv1.2 support.") | ||
set(CAF_NO_OPENSSL yes) | ||
+ elseif(CAF_OPENSSL_VERSION_OVERRIDE) | ||
+ include_directories(BEFORE ${OPENSSL_INCLUDE_DIR}) | ||
+ add_optional_caf_lib(openssl) | ||
else() | ||
# Check if openssl headers and library versions match | ||
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES}) |
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,48 @@ | ||
include(vcpkg_common_functions) | ||
|
||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") | ||
set(VCPKG_LIBRARY_LINKAGE "static") | ||
message("CAF only supports static library linkage") | ||
endif() | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO actor-framework/actor-framework | ||
REF 0.15.6 | ||
SHA512 180ef1149fcbbe4532452cbe4509c177ecc3ae3971453505f6600b715be38b3c891ae7f83b8d368fcb20af037e4d6e94f7f750f477bd499d48316fe33fca511e | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_apply_patches( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/openssl-version-override.patch | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS | ||
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON | ||
-DCAF_BUILD_STATIC=ON | ||
-DCAF_BUILD_STATIC_ONLY=ON | ||
-DCAF_NO_TOOLS=ON | ||
-DCAF_NO_EXAMPLES=ON | ||
-DCAF_NO_BENCHMARKS=ON | ||
-DCAF_NO_UNIT_TESTS=ON | ||
-DCAF_NO_PROTOBUF_EXAMPLES=ON | ||
-DCAF_NO_QT_EXAMPLES=ON | ||
-DCAF_NO_OPENCL=ON | ||
-DCAF_NO_OPENSSL=OFF | ||
-DCAF_NO_CURL_EXAMPLES=ON | ||
-DCAF_OPENSSL_VERSION_OVERRIDE=ON | ||
) | ||
|
||
vcpkg_install_cmake() | ||
|
||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) | ||
|
||
file(INSTALL | ||
${SOURCE_PATH}/LICENSE | ||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/caf RENAME copyright) | ||
|
||
vcpkg_copy_pdbs() |