aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/azure-uamqp-c
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/azure-uamqp-c
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/azure-uamqp-c')
-rw-r--r--vcpkg/ports/azure-uamqp-c/portfile.cmake31
-rw-r--r--vcpkg/ports/azure-uamqp-c/vcpkg.json20
2 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/azure-uamqp-c/portfile.cmake b/vcpkg/ports/azure-uamqp-c/portfile.cmake
new file mode 100644
index 0000000..02d0fed
--- /dev/null
+++ b/vcpkg/ports/azure-uamqp-c/portfile.cmake
@@ -0,0 +1,31 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Azure/azure-uamqp-c
+ REF 6bb9accbbc036ed5ef1df7467760762c99a7094b
+ SHA512 99ed5fef76a0e0b2482862f46715431f98381923670be42edc8d4f7e066c0dcb9f397be73f96eccbbd697ae98f2604cb7b6f603f7c1d358ada50dc68349331ef
+ HEAD_REF master
+)
+
+file(COPY ${CURRENT_INSTALLED_DIR}/share/azure-c-shared-utility/azure_iot_build_rules.cmake DESTINATION ${SOURCE_PATH}/deps/azure-c-shared-utility/configs/)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dskip_samples=ON
+ -Duse_installed_dependencies=ON
+ -Dbuild_as_dynamic=OFF
+ MAYBE_UNUSED_VARIABLES
+ build_as_dynamic
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME uamqp CONFIG_PATH "cmake")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
+
+vcpkg_copy_pdbs()
diff --git a/vcpkg/ports/azure-uamqp-c/vcpkg.json b/vcpkg/ports/azure-uamqp-c/vcpkg.json
new file mode 100644
index 0000000..385ad79
--- /dev/null
+++ b/vcpkg/ports/azure-uamqp-c/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "azure-uamqp-c",
+ "version-date": "2025-03-31",
+ "description": "AMQP library for C",
+ "homepage": "https://github.com/Azure/azure-uamqp-c",
+ "license": "MIT",
+ "dependencies": [
+ "azure-c-shared-utility",
+ "azure-macro-utils-c",
+ "umock-c",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}