diff options
Diffstat (limited to 'vcpkg/ports/azure-umqtt-c')
| -rw-r--r-- | vcpkg/ports/azure-umqtt-c/package-location-fix-preview.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/azure-umqtt-c/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/azure-umqtt-c/vcpkg.json | 20 |
3 files changed, 64 insertions, 0 deletions
diff --git a/vcpkg/ports/azure-umqtt-c/package-location-fix-preview.patch b/vcpkg/ports/azure-umqtt-c/package-location-fix-preview.patch new file mode 100644 index 0000000..ec837b7 --- /dev/null +++ b/vcpkg/ports/azure-umqtt-c/package-location-fix-preview.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8fd08f0..c228519 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -155,7 +155,7 @@ endif () + include(GNUInstallDirs)
+
+ # Install umqtt
+-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-umqtt-c/portfile.cmake b/vcpkg/ports/azure-umqtt-c/portfile.cmake new file mode 100644 index 0000000..13a1c05 --- /dev/null +++ b/vcpkg/ports/azure-umqtt-c/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Azure/azure-umqtt-c + REF d08d530fc3ae3f60d3f750fab6629a5b7839f754 + SHA512 b486bd04fc5669e16ec8d097efcdc98fb783634321fd76e607f2b1e67bac32a8f2a80634208a3ca55db56933562d1db1d779d9435f5ef397e44c2288f25f44ee + 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 + MAYBE_UNUSED_VARIABLES + build_as_dynamic +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME umqtt CONFIG_PATH "lib/cmake/umqtt") + +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-umqtt-c/vcpkg.json b/vcpkg/ports/azure-umqtt-c/vcpkg.json new file mode 100644 index 0000000..282d84e --- /dev/null +++ b/vcpkg/ports/azure-umqtt-c/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "azure-umqtt-c", + "version-date": "2025-03-31", + "description": "General purpose library for communication over the mqtt protocol", + "homepage": "https://github.com/Azure/azure-umqtt-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 + } + ] +} |