Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions ports/nats-c/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: nats-c
Version: 2.1.0
Homepage: https://github.com/nats-io/nats.c
Description: A C client for NATS
Default-Features: full

Feature: tls
Build-Depends: openssl
Description: Build nats-c with TLS support

Feature: streaming
Build-Depends: protobuf-c
Description: Build nats-c with Streaming support

Feature: full
Build-Depends: nats-c[tls], nats-c[streaming]
Description: Build nats-c fully-featured
40 changes: 40 additions & 0 deletions ports/nats-c/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#if("streaming" IN_LIST FEATURES)
# vcpkg_fail_port_install(MESSAGE "${PORT}[streaming] currently only supports Unix" ON_TARGET "Windows")
#endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nats-io/nats.c
REF v2.1.0
SHA512 628e14d786e870c3c2de859d060cc035b57c75fa81e16e0eb2b88eb8e7d80762b650e733a45eeb6d4344e754f1440e260e81da91c2ad7ea586087d3647fcefdb
HEAD_REF master
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
tls NATS_BUILD_WITH_TLS
streaming NATS_BUILD_STREAMING
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
-DNATS_BUILD_TLS_USE_OPENSSL_1_1_API=ON
)

vcpkg_install_cmake()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug)
file(COPY ${CURRENT_PACKAGES_DIR}/debug/lib/nats.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/nats.dll)
endif()
if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL release)
file(COPY ${CURRENT_PACKAGES_DIR}/lib/nats.dll DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/nats.dll)
endif()
endif()

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
4 changes: 2 additions & 2 deletions ports/ppconsul/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: ppconsul
Version: 0.4
Version: 0.4-1
Homepage: https://github.com/oliora/ppconsul
Description: A C++ client library for Consul. Consul is a distributed tool for discovering and configuring services in your infrastructure.
Build-Depends: boost-core, boost-variant, curl[openssl], json11
Build-Depends: boost-core, boost-variant, boost-optional, boost-fusion, curl[openssl], json11
4 changes: 1 addition & 3 deletions ports/ppconsul/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO oliora/ppconsul
Expand All @@ -22,7 +20,7 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)


file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/ppconsul RENAME copyright)
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)


Expand Down
8 changes: 8 additions & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,14 @@ nanovg:x64-windows-static=ignore
nanovg:x86-windows=ignore
nativefiledialog:arm-uwp=fail
nativefiledialog:x64-uwp=fail
nats-c:arm64-windows=fail
nats-c:arm-uwp=fail
nats-c:x64-linux=fail
nats-c:x64-osx=fail
nats-c:x64-uwp=fail
nats-c:x64-windows=fail
nats-c:x64-windows-static=fail
nats-c:x86-windows=fail
netcdf-cxx4:x64-linux=ignore
nethost:x64-uwp=fail
nethost:arm-uwp=fail
Expand Down