2018-03-24 06:04:01 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
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-c-shared-utility
|
|
|
|
REF e885482ce32f1f77d29e85f7b8d35d74ffc69c74
|
|
|
|
SHA512 329101cb2ff499aa16e1df736285e2fdd8c34549d4790eaafa1df763950c2b4a5927f52e93dbf22192b240fe0445050ad99133df0405227ffe9857ff2b25014d
|
|
|
|
HEAD_REF public-preview
|
|
|
|
PATCHES no-double-expand-cmake.patch
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-c-shared-utility
|
|
|
|
REF 1d622902d7842f94193fc394987f2b4e978bb700
|
|
|
|
SHA512 e7b3671955aeefe8e748bc68dd9f914fbb86c9cf325606691efc332cffa0d80b61f87d5f5c1026676c35fd1c5e88f22ca60f2e811c351aeba659f810fdc52e84
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES no-double-expand-cmake.patch
|
|
|
|
)
|
|
|
|
endif()
|
2018-03-24 06:04:01 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-Dskip_samples=ON
|
|
|
|
-Duse_installed_dependencies=ON
|
|
|
|
-Duse_default_uuid=ON
|
2018-11-17 07:45:32 +08:00
|
|
|
-Dbuild_as_dynamic=OFF
|
2018-03-24 06:04:01 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/azure_c_shared_utility)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
|
|
|
file(COPY ${SOURCE_PATH}/configs/azure_iot_build_rules.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/azure-c-shared-utility)
|
|
|
|
|
2018-11-17 07:45:32 +08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/azure-c-shared-utility/copyright COPYONLY)
|
2018-03-24 06:04:01 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|