diff options
| author | myd7349 <myd7349@gmail.com> | 2020-09-25 03:25:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-24 12:25:36 -0700 |
| commit | c6fbdb0c5d03429e40b8990e1637b57290a283f3 (patch) | |
| tree | 3fc55ea5550f1a8b1a356f1b40c977d85f322ca9 | |
| parent | 9b1c8a776bc673bb2902f97037cd57c0c14b998e (diff) | |
| download | vcpkg-c6fbdb0c5d03429e40b8990e1637b57290a283f3.tar.gz vcpkg-c6fbdb0c5d03429e40b8990e1637b57290a283f3.zip | |
[nng] Update to 1.3.2 (#13545)
* [nng] Update to 1.3.2
[nng] Add tools feature
* [nng] Let's give ninja a second chance
* Update ports/nng/portfile.cmake
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
| -rw-r--r-- | ports/nng/CONTROL | 8 | ||||
| -rw-r--r-- | ports/nng/portfile.cmake | 24 | ||||
| -rw-r--r-- | ports/nng/vcpkg.json | 18 |
3 files changed, 30 insertions, 20 deletions
diff --git a/ports/nng/CONTROL b/ports/nng/CONTROL deleted file mode 100644 index 56efe9edc..000000000 --- a/ports/nng/CONTROL +++ /dev/null @@ -1,8 +0,0 @@ -Source: nng -Version: 1.3.0 -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. -Homepage: https://github.com/nanomsg/nng - -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 e6adad95d..cccd74a66 100644 --- a/ports/nng/portfile.cmake +++ b/ports/nng/portfile.cmake @@ -1,30 +1,27 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO nanomsg/nng - REF 6ec4107907552db927be8601aed97b5a4b83d33d#version 1.3.0 - SHA512 28b99d822d7be0348d4e367c2d92cd2bd4a5563806454388ad3c7d9817ef91fa7b4408d15ce4c77ac6a8ad2dd7db173899fdaf7881585282bf57f4c487909be6 + REF 32b12a311e1f490f0d5c629ce887edfbf18f2d2c # version 1.3.2 + SHA512 cd1b1906e5b99d9f04ce41d3d93c0841c45a571ed824c4d19428ce68fd53366e5ed90411d5958baaf9fa0ab412639dec7594a8ec1f64de4b41168932e3565125 HEAD_REF master ) -string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" NNG_STATIC_LIB) - -vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS mbedtls NNG_ENABLE_TLS + tools NNG_ENABLE_NNGCAT ) vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA - OPTIONS ${FEATURE_OPTIONS} - -DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE - -DNNG_STATIC_LIB=${NNG_STATIC_LIB} + OPTIONS -DNNG_TESTS=OFF - -DNNG_ENABLE_NNGCAT=OFF + ${FEATURE_OPTIONS} ) vcpkg_install_cmake() -# Move CMake config files to the right place vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nng) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) @@ -49,7 +46,10 @@ else() ) endif() -# Put the licence file where vcpkg expects it -configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) +if ("tools" IN_LIST FEATURES) + vcpkg_copy_tools(TOOL_NAMES nngcat AUTO_CLEAN) +endif() + +file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) vcpkg_copy_pdbs() diff --git a/ports/nng/vcpkg.json b/ports/nng/vcpkg.json new file mode 100644 index 000000000..6a0dd4ffb --- /dev/null +++ b/ports/nng/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "nng", + "version-string": "1.3.2", + "description": "nanomsg-next-gen, lightweight messaging library", + "homepage": "https://nng.nanomsg.org", + "license": "MIT", + "features": { + "mbedtls": { + "description": "nng TLS support", + "dependencies": [ + "mbedtls" + ] + }, + "tools": { + "description": "nng tools (nngcat, for example)" + } + } +} |
