From 8bc9e1eb5f9ecb1abc0d98a5098faf2038fdd615 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 25 Sep 2024 22:11:22 +0000 Subject: [PATCH] Daily vcpkg ports for template --- ports/azure-template-cpp/portfile.cmake | 33 +++++++++++++++++++++++++ ports/azure-template-cpp/vcpkg.json | 30 ++++++++++++++++++++++ versions/a-/azure-template-cpp.json | 9 +++++++ versions/baseline.json | 4 +++ 4 files changed, 76 insertions(+) create mode 100644 ports/azure-template-cpp/portfile.cmake create mode 100644 ports/azure-template-cpp/vcpkg.json create mode 100644 versions/a-/azure-template-cpp.json diff --git a/ports/azure-template-cpp/portfile.cmake b/ports/azure-template-cpp/portfile.cmake new file mode 100644 index 00000000000000..6c3948fec2ec5e --- /dev/null +++ b/ports/azure-template-cpp/portfile.cmake @@ -0,0 +1,33 @@ +# NOTE: All changes made to this file will get overwritten by the next port release. +# Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp. + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Azure/azure-sdk-for-cpp + REF 022c0eb31ae06d171fca86c65acdbd56d8258450 + SHA512 35972d95c33e76244709091e9d60ec583b2b848b2830cf7d35f33ea491a48db35090e97a47c86b86e3208ad65fe052fb7a0461bc8b31b1beaf9cef0bc763278f + HEAD_REF main +) + +if(EXISTS "${SOURCE_PATH}/sdk/template/azure-template") + file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/template/_") + file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/_") + file(REMOVE_RECURSE "${SOURCE_PATH}/_") + + file(RENAME "${SOURCE_PATH}/sdk/template/azure-template" "${SOURCE_PATH}/sdk/template/_") + file(RENAME "${SOURCE_PATH}/sdk/template" "${SOURCE_PATH}/sdk/_") + file(RENAME "${SOURCE_PATH}/sdk" "${SOURCE_PATH}/_") +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/_/_/_" + OPTIONS + -DWARNINGS_AS_ERRORS=OFF + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_cmake_config_fixup() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +vcpkg_copy_pdbs() diff --git a/ports/azure-template-cpp/vcpkg.json b/ports/azure-template-cpp/vcpkg.json new file mode 100644 index 00000000000000..a67f11b423badb --- /dev/null +++ b/ports/azure-template-cpp/vcpkg.json @@ -0,0 +1,30 @@ +{ + "$comment": [ + "NOTE: All changes made to this file will get overwritten by the next port release.", + "Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp." + ], + "name": "azure-template-cpp", + "version-semver": "1.1.0-beta.4172009", + "description": [ + "Microsoft Azure Template SDK for C++", + "This is a template library meant to illustrate initial client library development process for Azure SDK.", + "It is not meant to be published to vcpkg." + ], + "homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/template/azure-template", + "license": "MIT", + "dependencies": [ + { + "name": "azure-core-cpp", + "default-features": false, + "version>=": "1.3.1" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/a-/azure-template-cpp.json b/versions/a-/azure-template-cpp.json new file mode 100644 index 00000000000000..09cf1959aa7843 --- /dev/null +++ b/versions/a-/azure-template-cpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "b9a4149a6601b01b408995df724cb82b26f78763", + "version-semver": "1.1.0-beta.4172009", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index e07d1c8b6b367d..54e61e72df5c13 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -532,6 +532,10 @@ "baseline": "12.5.0-beta.1", "port-version": 0 }, + "azure-template-cpp": { + "baseline": "1.1.0-beta.4172009", + "port-version": 0 + }, "azure-uamqp-c": { "baseline": "2024-08-12", "port-version": 0