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