diff --git a/ports/azure-template-cpp/portfile.cmake b/ports/azure-template-cpp/portfile.cmake new file mode 100644 index 00000000000000..b97c3f47a6ff18 --- /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 ebf958df2349afb82d32d4aff995f3736629af2f + SHA512 fa616916ea5758b143ae3a5219d1f5e43545b4137e2f8dcd4f67fec9523d4584a4b77d738846bd8b2e264d8608e6bc23335a3a963d1c01f9fb62950b0a52fe25 +) + +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..f7a9c7549a81bc --- /dev/null +++ b/ports/azure-template-cpp/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "azure-template-cpp", + "version-semver": "1.1.0-beta.3117641", + "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..58ce15ffa7b9aa --- /dev/null +++ b/versions/a-/azure-template-cpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "b06d8e894d57c0a57278ea813ef3f46b6ae1d364", + "version-semver": "1.1.0-beta.3117641", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index fbab5733be04b4..73efe90ccc362a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -484,6 +484,10 @@ "baseline": "12.2.0-beta.1", "port-version": 0 }, + "azure-template-cpp": { + "baseline": "1.1.0-beta.3117641", + "port-version": 0 + }, "azure-uamqp-c": { "baseline": "2023-08-07", "port-version": 0