2018-11-17 07:45:32 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2019-01-18 05:37:44 +08:00
|
|
|
if("public-preview" IN_LIST FEATURES)
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-umqtt-c
|
2019-10-25 06:47:53 +08:00
|
|
|
REF 7557db6de094b67818d3c410dc95a3cf07cd86a6
|
|
|
|
SHA512 f2577379f711e2576fdd6dfecbc4d8a0b26c7670a77bc468238e8dd5fa43f208db85eddd06dd570fde4219ba19304338c712f671c059c6cc10abb4892d58ae40
|
2019-02-02 04:06:23 +08:00
|
|
|
HEAD_REF master
|
2022-01-27 04:06:01 +08:00
|
|
|
PATCHES
|
2022-03-04 04:24:47 +08:00
|
|
|
package-location-fix-preview.patch
|
2019-01-18 05:37:44 +08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-umqtt-c
|
2022-09-23 05:32:34 +08:00
|
|
|
REF 566127ad605172735b9ac5cc6797261f3dd6c45c
|
|
|
|
SHA512 19e997e1dd7ecfbf5e8f11f44daa89cee7aa793f95aaed4bdaf792f5443173e0ca434d69f68a6633ee7cdc504d03a42f4b4e8aeec549c7ffdbd5e03db8cce6b5
|
2019-01-18 05:37:44 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
endif()
|
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()
|