2018-11-16 15:45:32 -08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2018-03-23 15:04:01 -07:00
|
|
|
|
2023-02-03 12:14:45 -08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-uamqp-c
|
2024-06-24 17:55:52 -07:00
|
|
|
REF 6a150b07352304acacdde2e446643f8f6de0ea3a
|
|
|
|
SHA512 eb2e70b75665886e3f27fb89fb23eb5b5a096066d7b27bcb3dc435fffd31363dd593d03aac31e983eee72484eb79411788cedcd444846c2a300ab1abdf416bd0
|
2023-02-03 12:14:45 -08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2018-03-23 15:04:01 -07:00
|
|
|
|
|
|
|
file(COPY ${CURRENT_INSTALLED_DIR}/share/azure-c-shared-utility/azure_iot_build_rules.cmake DESTINATION ${SOURCE_PATH}/deps/azure-c-shared-utility/configs/)
|
|
|
|
|
2022-09-22 14:32:34 -07:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-03-23 15:04:01 -07:00
|
|
|
OPTIONS
|
|
|
|
-Dskip_samples=ON
|
|
|
|
-Duse_installed_dependencies=ON
|
2018-11-16 15:45:32 -08:00
|
|
|
-Dbuild_as_dynamic=OFF
|
2022-03-03 12:24:47 -08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
build_as_dynamic
|
2018-03-23 15:04:01 -07:00
|
|
|
)
|
|
|
|
|
2022-09-22 14:32:34 -07:00
|
|
|
vcpkg_cmake_install()
|
2018-03-23 15:04:01 -07:00
|
|
|
|
2022-09-22 14:32:34 -07:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME uamqp CONFIG_PATH "cmake")
|
2018-03-23 15:04:01 -07:00
|
|
|
|
2022-09-22 14:32:34 -07:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-03-23 15:04:01 -07:00
|
|
|
|
2022-09-22 14:32:34 -07:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
2018-03-23 15:04:01 -07:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|