aboutsummaryrefslogtreecommitdiff
path: root/ports/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libssh')
-rw-r--r--ports/libssh/CONTROL4
-rw-r--r--ports/libssh/portfile.cmake7
2 files changed, 10 insertions, 1 deletions
diff --git a/ports/libssh/CONTROL b/ports/libssh/CONTROL
index fbee566de..d1e607e8c 100644
--- a/ports/libssh/CONTROL
+++ b/ports/libssh/CONTROL
@@ -1,6 +1,8 @@
Source: libssh
Version: 0.9.5
+Port-Version: 1
Homepage: https://www.libssh.org/
+Build-Depends: libssh[core,mbedtls] (android)
Description: libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side
Default-Features: crypto
Supports: !uwp
@@ -10,7 +12,7 @@ Build-Depends: libssh[mbedtls]
Description: Default crypto backend
Feature: mbedtls
-Build-Depends: mbedtls[pthreads]
+Build-Depends: mbedtls[pthreads] (!android), mbedtls[core]
Description: Crypto support (mbedTLS)
Feature: openssl
diff --git a/ports/libssh/portfile.cmake b/ports/libssh/portfile.cmake
index 3874d1939..ee7f0ac8f 100644
--- a/ports/libssh/portfile.cmake
+++ b/ports/libssh/portfile.cmake
@@ -19,10 +19,17 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
zlib WITH_ZLIB
)
+if (VCPKG_TARGET_IS_ANDROID)
+ set(EXTRA_ARGS "-DWITH_SERVER=FALSE"
+ "-DWITH_PCAP=FALSE"
+ )
+endif ()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
+ ${EXTRA_ARGS}
${FEATURE_OPTIONS}
-DWITH_EXAMPLES=OFF
-DUNIT_TESTING=OFF