diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2018-09-04 18:47:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-04 18:47:24 -0700 |
| commit | 90bc8a98bb87ff05f57712e078df662eda432dd1 (patch) | |
| tree | b25329f267071d2e105c1232cd29b18a91d89515 | |
| parent | 06e85f063c696966a677f98e742d6263f61ded66 (diff) | |
| parent | fce90776f95c2192d31f9b60429a37fc8db7d6a5 (diff) | |
| download | vcpkg-90bc8a98bb87ff05f57712e078df662eda432dd1.tar.gz vcpkg-90bc8a98bb87ff05f57712e078df662eda432dd1.zip | |
Merge pull request #4198 from myd7349/prs/nng-tls-feature
[nng] Add mbedtls feature
| -rw-r--r-- | ports/nng/CONTROL | 4 | ||||
| -rw-r--r-- | ports/nng/portfile.cmake | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ports/nng/CONTROL b/ports/nng/CONTROL index 9db656338..b70aaa5b0 100644 --- a/ports/nng/CONTROL +++ b/ports/nng/CONTROL @@ -1,3 +1,7 @@ Source: nng Version: 1.0.1 Description: NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. + +Feature: mbedtls +Description: nng built with TLS support(needs mbedTLS) +Build-Depends: mbedtls diff --git a/ports/nng/portfile.cmake b/ports/nng/portfile.cmake index f0da2d5d2..d7465170a 100644 --- a/ports/nng/portfile.cmake +++ b/ports/nng/portfile.cmake @@ -11,6 +11,12 @@ vcpkg_from_github( string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" NNG_STATIC_LIB) +if("mbedtls" IN_LIST FEATURES) + set(NNG_ENABLE_TLS ON) +else() + set(NNG_ENABLE_TLS OFF) +endif() + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA @@ -19,6 +25,7 @@ vcpkg_configure_cmake( -DNNG_STATIC_LIB=${NNG_STATIC_LIB} -DNNG_TESTS=OFF -DNNG_ENABLE_NNGCAT=OFF + -DNNG_ENABLE_TLS=${NNG_ENABLE_TLS} ) vcpkg_install_cmake() |
