2018-03-23 15:04:01 -07:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2018-11-16 15:45:32 -08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2018-03-23 15:04:01 -07:00
|
|
|
|
2019-01-17 13:37:44 -08:00
|
|
|
if("public-preview" IN_LIST FEATURES)
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-umqtt-c
|
2019-03-26 23:21:51 -07:00
|
|
|
REF ea9f6112d002bdff55c94df327bc7effc8393c78
|
|
|
|
SHA512 68fdc22eb07d32cb9cf489d878db3be8326225e3a067153af7b9e29eabc8ee25162507b7e8921b71b83d42703d5a3d8e040f4a9e61a19540789432e2cecb782f
|
2019-02-01 13:06:23 -07:00
|
|
|
HEAD_REF master
|
2019-01-17 13:37:44 -08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-umqtt-c
|
2019-05-20 10:27:45 -07:00
|
|
|
REF c37883fbb05218fd940b87899a116af240f90c40
|
|
|
|
SHA512 21bbe6dfafcc96d35775ab83a75334fbfd41a55a82a7da483d5ff179aa3792424851f250007c9603ef17c789d8b23b1a8b81580fc2cf793fd00b487c321fdba3
|
2019-01-17 13:37:44 -08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
endif()
|
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/c-utility/configs/)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-Dskip_samples=ON
|
|
|
|
-Duse_installed_dependencies=ON
|
2018-11-16 15:45:32 -08:00
|
|
|
-Dbuild_as_dynamic=OFF
|
2018-03-23 15:04:01 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/umqtt)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2018-11-16 15:45:32 -08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/azure-umqtt-c/copyright COPYONLY)
|
2018-03-23 15:04:01 -07:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2019-03-26 23:21:51 -07:00
|
|
|
|