From 36f69420544d72c4a8ee0c72870315ba9ce01ef1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 3 Feb 2021 11:27:37 -0800 Subject: [azure-core-cpp] Add new port (#16013) * Update port for azure-core-cpp * Update port version SHA * Apply suggestions from code review Remove comment headers from port files Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update port version SHA once again Co-authored-by: Anton Kolesnyk Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> --- ports/azure-core-cpp/CONTROL | 18 ++++++++++++++++++ ports/azure-core-cpp/portfile.cmake | 27 +++++++++++++++++++++++++++ versions/a-/azure-core-cpp.json | 9 +++++++++ versions/baseline.json | 4 ++++ 4 files changed, 58 insertions(+) create mode 100644 ports/azure-core-cpp/CONTROL create mode 100644 ports/azure-core-cpp/portfile.cmake create mode 100644 versions/a-/azure-core-cpp.json diff --git a/ports/azure-core-cpp/CONTROL b/ports/azure-core-cpp/CONTROL new file mode 100644 index 000000000..67563e095 --- /dev/null +++ b/ports/azure-core-cpp/CONTROL @@ -0,0 +1,18 @@ +Source: azure-core-cpp +Version: 1.0.0-beta.5 +Description: Microsoft Azure Core SDK for C++ + This library provides shared primitives, abstractions, and helpers for modern Azure SDK client libraries written in the C++. +Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/core/azure-core +Default-Features: http + +Feature: http +Build-Depends: azure-core-cpp[core, curl], azure-core-cpp[core, curl, winhttp] (windows&!uwp) +Description: Build all HTTP transport implementations, depending on the platform + +Feature: curl +Build-Depends: azure-core-cpp[core], curl +Description: Build an HTTP transport implementation with LibCURL + +Feature: winhttp +Build-Depends: azure-core-cpp[core] +Description: Build an HTTP transport implementation with WinHTTP diff --git a/ports/azure-core-cpp/portfile.cmake b/ports/azure-core-cpp/portfile.cmake new file mode 100644 index 000000000..64501b42f --- /dev/null +++ b/ports/azure-core-cpp/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Azure/azure-sdk-for-cpp + REF azure-core_1.0.0-beta.5 + SHA512 e109ea215f3a2440d2b66cccfa6be9b4c143373105df962e47ddaf6668207171a1e8c9317a7799aa647b4669078871fde0c48e407c7966e377e7e6a9d8a67575 +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + curl BUILD_TRANSPORT_CURL + winhttp BUILD_TRANSPORT_WINHTTP +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH}/sdk/core/azure-core/ + PREFER_NINJA + OPTIONS + ${FEATURE_OPTIONS} + -DWARNINGS_AS_ERRORS=OFF +) + +vcpkg_install_cmake() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_fixup_cmake_targets() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +vcpkg_copy_pdbs() diff --git a/versions/a-/azure-core-cpp.json b/versions/a-/azure-core-cpp.json new file mode 100644 index 000000000..b6e0ab521 --- /dev/null +++ b/versions/a-/azure-core-cpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "d2c26dc5d0cba4af8359e6ed7d4820daf494ee2a", + "version-string": "1.0.0-beta.5", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index d62967e20..6e093f264 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -244,6 +244,10 @@ "baseline": "2020-12-09", "port-version": 0 }, + "azure-core-cpp": { + "baseline": "1.0.0-beta.5", + "port-version": 0 + }, "azure-iot-sdk-c": { "baseline": "2020-12-09", "port-version": 0 -- cgit v1.2.3