diff --git a/ports/azure-template-cpp/portfile.cmake b/ports/azure-template-cpp/portfile.cmake new file mode 100644 index 00000000000000..76ca5f642effe5 --- /dev/null +++ b/ports/azure-template-cpp/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Azure/azure-sdk-for-cpp + REF 830a60e6c65b8618163ccbcf2f5bcbb55a6227af + SHA512 29256f5daedcc5e53ce874bc96ad8e517ce915add5dca85c2bed2d4b5b839b15eff64c8a4d6a59e6fb643f00ef43b079a3892ae16139df4eebdb65e7fc4eca5f +) + +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..f8d08a1cf89b7f --- /dev/null +++ b/ports/azure-template-cpp/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "azure-template-cpp", + "version-semver": "1.1.0-beta.3230180", + "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..70d7a4602e8143 --- /dev/null +++ b/versions/a-/azure-template-cpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "0af4a1d9980a3beb1bb23e116967630cd0df63f9", + "version-semver": "1.1.0-beta.3230180", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index cfc609f2a73c59..32f6c99d2d008d 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -496,6 +496,10 @@ "baseline": "12.2.0-beta.2", "port-version": 0 }, + "azure-template-cpp": { + "baseline": "1.1.0-beta.3230180", + "port-version": 0 + }, "azure-uamqp-c": { "baseline": "2023-08-07", "port-version": 0