aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/azure-uhttp-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-uhttp-c
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/azure-uhttp-c')
-rw-r--r--vcpkg/ports/azure-uhttp-c/package-location-fix-preview.patch13
-rw-r--r--vcpkg/ports/azure-uhttp-c/portfile.cmake32
-rw-r--r--vcpkg/ports/azure-uhttp-c/vcpkg.json20
3 files changed, 65 insertions, 0 deletions
diff --git a/vcpkg/ports/azure-uhttp-c/package-location-fix-preview.patch b/vcpkg/ports/azure-uhttp-c/package-location-fix-preview.patch
new file mode 100644
index 0000000..8544ae6
--- /dev/null
+++ b/vcpkg/ports/azure-uhttp-c/package-location-fix-preview.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 27eae0b..ef87ec0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -138,7 +138,7 @@ if (NOT ${skip_samples})
+ endif()
+
+ # Install uhttp
+-set(package_location "cmake")
++set(package_location "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
+
+ if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
+ set(CMAKE_INSTALL_LIBDIR "lib")
diff --git a/vcpkg/ports/azure-uhttp-c/portfile.cmake b/vcpkg/ports/azure-uhttp-c/portfile.cmake
new file mode 100644
index 0000000..617ee90
--- /dev/null
+++ b/vcpkg/ports/azure-uhttp-c/portfile.cmake
@@ -0,0 +1,32 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Azure/azure-uhttp-c
+ REF 01dc7139d3da3141aa2017dff927db1dbbe86e49
+ SHA512 16ba75ced10efcea14073eb21d6dd46d1f00997b588aac64c1bcfd14c5176513a677d1adaa3c2ae6890f6d3576473ac9bc80eb32df551bd5cdf9345ed7e910be
+ HEAD_REF master
+)
+
+file(COPY ${CURRENT_INSTALLED_DIR}/share/azure-c-shared-utility/azure_iot_build_rules.cmake DESTINATION ${SOURCE_PATH}/deps/c-utility/configs/)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dskip_samples=ON
+ -Duse_installed_dependencies=ON
+ -Dbuild_as_dynamic=OFF
+ -DCMAKE_INSTALL_INCLUDEDIR=include
+ MAYBE_UNUSED_VARIABLES
+ build_as_dynamic
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME uhttp CONFIG_PATH "lib/cmake/uhttp")
+
+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-uhttp-c/vcpkg.json b/vcpkg/ports/azure-uhttp-c/vcpkg.json
new file mode 100644
index 0000000..ca6ca35
--- /dev/null
+++ b/vcpkg/ports/azure-uhttp-c/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "azure-uhttp-c",
+ "version-date": "2025-03-31",
+ "description": "Azure HTTP Library written in C",
+ "homepage": "https://github.com/Azure/azure-uhttp-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
+ }
+ ]
+}