aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2020-03-28 03:58:37 +0100
committerGitHub <noreply@github.com>2020-03-27 19:58:37 -0700
commitf3de074f9b9bc147e15422117f0df1fb4d319013 (patch)
tree417b07e260d0800790849874a59befca71524c3c
parent7b92363b8f6d7832b9691a983dac4e1de4e58cd8 (diff)
downloadvcpkg-f3de074f9b9bc147e15422117f0df1fb4d319013.tar.gz
vcpkg-f3de074f9b9bc147e15422117f0df1fb4d319013.zip
[civetweb] Add optional SSL support (#10431)
-rw-r--r--ports/civetweb/CONTROL8
-rw-r--r--ports/civetweb/portfile.cmake7
2 files changed, 12 insertions, 3 deletions
diff --git a/ports/civetweb/CONTROL b/ports/civetweb/CONTROL
index 07b7306f1..eb9ee3ed0 100644
--- a/ports/civetweb/CONTROL
+++ b/ports/civetweb/CONTROL
@@ -1,4 +1,8 @@
Source: civetweb
-Version: 2019-07-05
+Version: 2019-07-05-1
Description: Easy to use, powerful, C/C++ embeddable web server.
-Supports: !uwp \ No newline at end of file
+Supports: !uwp
+
+Feature: ssl
+Build-Depends: openssl
+Description: Enable SSL support \ No newline at end of file
diff --git a/ports/civetweb/portfile.cmake b/ports/civetweb/portfile.cmake
index 17a0d7f45..39c63309b 100644
--- a/ports/civetweb/portfile.cmake
+++ b/ports/civetweb/portfile.cmake
@@ -14,6 +14,10 @@ vcpkg_from_github(
HEAD_REF master
)
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ ssl CIVETWEB_ENABLE_SSL
+)
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -23,8 +27,9 @@ vcpkg_configure_cmake(
-DCIVETWEB_ENABLE_CXX=ON
-DCIVETWEB_ENABLE_IPV6=ON
-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF
- -DCIVETWEB_ENABLE_SSL=OFF
+ -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF
-DCIVETWEB_ENABLE_WEBSOCKETS=ON
+ ${FEATURE_OPTIONS}
)
vcpkg_install_cmake()