vcpkg/ports/azure-uamqp-c/portfile.cmake
Ewerton Scaboro da Silva 46385806b4
[azure-iot-sdk-c] LTS_03_2024 (#37201)
[azure-iot-sdk-c] LTS_03_2024
2024-03-07 22:38:40 -08:00

32 lines
1020 B
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-uamqp-c
REF 4971d3795f48290893f9155deef5a5ae9563bd57
SHA512 efb79c03b0ae63d065f36ff9dc763fc21b6e1b1bd2a474899576657ce1a75829e95e1ae3ab9a7dd64f84c4c8d9eab3c3b84bbda16aa184745503c43a62271b60
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()