Skip to content

Commit

Permalink
[libssh] Add support for Android (#15687)
Browse files Browse the repository at this point in the history
* Fix Mbed TLS build for Android

* Fix Mbed TLS build for Android
Add better Windows checks

* Fix libssh build for Android

* Fix libssh build for Android

* Fix versioning

* update baseline

* Update ports/libssh/portfile.cmake

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update port_versions/l-/libssh.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update port_versions/baseline.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update ports/libssh/CONTROL

* Update port_versions

* Revert version changes to master

* Update CONTROL version

* Update libssh versions

* Remove redundant parameter

* Remove redundant parameter

* Fix version

* Fix version

* Fix paramters

* Fix version

* Fix dependencies

* Fix versions

* Better Android support

* Fix version

* Simpler Android support

* Fix versions

* Disable warnings as errors for Mbed TLS

* Restore formatting

* Update ports/libssh/CONTROL

Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>

* Remove redundant paramter

* Fix version files

* Fix version files

* Fix libssh build for Android

* Fix versioning

* Update ports/libssh/portfile.cmake

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update port_versions/l-/libssh.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update port_versions/baseline.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update ports/libssh/CONTROL

* Update port_versions

* Revert version changes to master

* Update CONTROL version

* Update libssh versions

* Remove redundant parameter

* Fix dependencies

* Fix versions

* Simpler Android support

* Fix versions

* Update ports/libssh/CONTROL

Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>

* Remove redundant paramter

* Fix version files

Co-authored-by: Ahmed Yarub Hani Al Nuaimi <ahmed.alnuaimi@zwift.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
  • Loading branch information
7 people committed Jan 25, 2021
1 parent be2092a commit b7c8a30
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ports/libssh/CONTROL
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions ports/libssh/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3350,7 +3350,7 @@
},
"libssh": {
"baseline": "0.9.5",
"port-version": 0
"port-version": 1
},
"libssh2": {
"baseline": "1.9.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libssh.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "bf1fb5ae9324823a60784a5ed0ecbca8a3325214",
"version-string": "0.9.5",
"port-version": 1
},
{
"git-tree": "a9db7620dc774257483a98c9c5309dbb7eff8263",
"version-string": "0.9.5",
Expand Down

0 comments on commit b7c8a30

Please sign in to comment.