diff options
Diffstat (limited to 'vcpkg/ports/azure-core-amqp-cpp')
| -rw-r--r-- | vcpkg/ports/azure-core-amqp-cpp/portfile.cmake | 38 | ||||
| -rw-r--r-- | vcpkg/ports/azure-core-amqp-cpp/set_version.patch | 12 | ||||
| -rw-r--r-- | vcpkg/ports/azure-core-amqp-cpp/vcpkg.json | 34 |
3 files changed, 84 insertions, 0 deletions
diff --git a/vcpkg/ports/azure-core-amqp-cpp/portfile.cmake b/vcpkg/ports/azure-core-amqp-cpp/portfile.cmake new file mode 100644 index 0000000..fbb2cb7 --- /dev/null +++ b/vcpkg/ports/azure-core-amqp-cpp/portfile.cmake @@ -0,0 +1,38 @@ +# 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 "azure-core-amqp_${VERSION}"
+ SHA512 92d5648b832c38587c2ceccaf3293252a7f5b976df7f57fc475b8fcd396ba3bb7fd2c18e46b3b06f6c8776aed6df1c4a36ef2b8bc5f07f1f23c771ff476a7af7
+ HEAD_REF main
+ PATCHES
+ set_version.patch
+)
+
+file(GLOB_RECURSE unused "${SOURCE_PATH}/cgmanifest.json")
+file(REMOVE_RECURSE ${unused})
+
+if(EXISTS "${SOURCE_PATH}/sdk/core/azure-core-amqp")
+ file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/core/_")
+ file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/_")
+ file(REMOVE_RECURSE "${SOURCE_PATH}/_")
+
+ file(RENAME "${SOURCE_PATH}/sdk/core/azure-core-amqp" "${SOURCE_PATH}/sdk/core/_")
+ file(RENAME "${SOURCE_PATH}/sdk/core" "${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/vcpkg/ports/azure-core-amqp-cpp/set_version.patch b/vcpkg/ports/azure-core-amqp-cpp/set_version.patch new file mode 100644 index 0000000..89e1791 --- /dev/null +++ b/vcpkg/ports/azure-core-amqp-cpp/set_version.patch @@ -0,0 +1,12 @@ +diff --git a/sdk/core/azure-core-amqp/CMakeLists.txt b/sdk/core/azure-core-amqp/CMakeLists.txt +index 3ef7bf8d9..6d2829e84 100644 +--- a/sdk/core/azure-core-amqp/CMakeLists.txt ++++ b/sdk/core/azure-core-amqp/CMakeLists.txt +@@ -177,6 +177,7 @@ target_link_libraries(azure-core-amqp PRIVATE + PUBLIC Azure::azure-core) + + get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/src/private/package_version.hpp") ++set_target_properties(azure-core-amqp PROPERTIES VERSION ${AZ_LIBRARY_VERSION}) + generate_documentation(azure-core-amqp ${AZ_LIBRARY_VERSION}) + + az_vcpkg_export( diff --git a/vcpkg/ports/azure-core-amqp-cpp/vcpkg.json b/vcpkg/ports/azure-core-amqp-cpp/vcpkg.json new file mode 100644 index 0000000..43f6632 --- /dev/null +++ b/vcpkg/ports/azure-core-amqp-cpp/vcpkg.json @@ -0,0 +1,34 @@ +{ + "$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-core-amqp-cpp", + "version-semver": "1.0.0-beta.11", + "port-version": 2, + "description": [ + "Microsoft Azure AMQP SDK for C++", + "This library provides AMQP functionality to Azure SDK services." + ], + "homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/core/azure-core-amqp", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + "azure-c-shared-utility", + { + "name": "azure-core-cpp", + "default-features": false, + "version>=": "1.11.3" + }, + "azure-macro-utils-c", + "umock-c", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |