aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/openssl/uwp/portfile.cmake15
-rw-r--r--ports/openssl/vcpkg.json1
2 files changed, 13 insertions, 3 deletions
diff --git a/ports/openssl/uwp/portfile.cmake b/ports/openssl/uwp/portfile.cmake
index 08a523cda..d474abe03 100644
--- a/ports/openssl/uwp/portfile.cmake
+++ b/ports/openssl/uwp/portfile.cmake
@@ -1,11 +1,14 @@
vcpkg_fail_port_install(MESSAGE "${PORT} is only for Windows Universal Platform" ON_TARGET "Linux" "OSX")
-vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
-
vcpkg_find_acquire_program(JOM)
get_filename_component(JOM_EXE_PATH ${JOM} DIRECTORY)
vcpkg_add_to_path("${PERL_EXE_PATH}")
+set(OPENSSL_SHARED no-shared)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ set(OPENSSL_SHARED shared)
+endif()
+
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
@@ -26,7 +29,7 @@ set(CONFIGURE_COMMAND ${PERL} Configure
no-uplink
no-tests
-utf-8
- shared
+ ${OPENSSL_SHARED}
)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
@@ -143,6 +146,12 @@ file(REMOVE
"${CURRENT_PACKAGES_DIR}/debug/openssl.cnf.dist"
)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ # They should be empty, only the exes deleted above were in these directories
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/")
+endif()
+
file(READ "${CURRENT_PACKAGES_DIR}/include/openssl/dtls1.h" _contents)
string(REPLACE "<winsock.h>" "<winsock2.h>" _contents "${_contents}")
file(WRITE "${CURRENT_PACKAGES_DIR}/include/openssl/dtls1.h" "${_contents}")
diff --git a/ports/openssl/vcpkg.json b/ports/openssl/vcpkg.json
index 96397867b..3a4a62dda 100644
--- a/ports/openssl/vcpkg.json
+++ b/ports/openssl/vcpkg.json
@@ -1,6 +1,7 @@
{
"name": "openssl",
"version-string": "1.1.1l",
+ "port-version": 1,
"description": "OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.",
"homepage": "https://www.openssl.org"
}