mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[nng] Add mbedtls feature
This commit is contained in:
parent
33286f9004
commit
fce90776f9
@ -1,3 +1,7 @@
|
|||||||
Source: nng
|
Source: nng
|
||||||
Version: 1.0.1
|
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.
|
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
|
||||||
|
@ -11,6 +11,12 @@ vcpkg_from_github(
|
|||||||
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" NNG_STATIC_LIB)
|
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(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA
|
PREFER_NINJA
|
||||||
@ -19,6 +25,7 @@ vcpkg_configure_cmake(
|
|||||||
-DNNG_STATIC_LIB=${NNG_STATIC_LIB}
|
-DNNG_STATIC_LIB=${NNG_STATIC_LIB}
|
||||||
-DNNG_TESTS=OFF
|
-DNNG_TESTS=OFF
|
||||||
-DNNG_ENABLE_NNGCAT=OFF
|
-DNNG_ENABLE_NNGCAT=OFF
|
||||||
|
-DNNG_ENABLE_TLS=${NNG_ENABLE_TLS}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user