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
|
2019-10-25 06:47:53 +08:00
|
|
|
REF 42574842914591aadc77701aac72f18cc72319ad
|
|
|
|
SHA512 dfe6ccede4bebdb3a39fbfea1dc55ddca57cced0d2656ee4bed1a5e5c9c434e1f2d892eb4e29bbb424cb9a02f2374a95fb9a020442bea580d39c242efad1b789
|
2019-02-02 04:06:23 +08:00
|
|
|
HEAD_REF master
|
2021-09-11 04:57:06 +08:00
|
|
|
PATCHES
|
2022-03-04 04:24:47 +08:00
|
|
|
fix-install-location-preview.patch
|
2020-02-03 12:26:38 +08:00
|
|
|
fix-utilityFunctions-conditions-preview.patch
|
2021-03-30 01:17:50 +08:00
|
|
|
disable-error.patch
|
2022-03-04 04:24:47 +08:00
|
|
|
improve-dependencies-preview.patch
|
2019-01-18 05:37:44 +08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-c-shared-utility
|
2022-09-23 05:32:34 +08:00
|
|
|
REF 9e4322c9d88095ed276bf7e4b31b87b82b1c4d86
|
|
|
|
SHA512 0ede2a30ed787028a48602111be7cebc65593a84a8b3dc94ed34917f44355a180d8b8acf2b6404e47428fe8f761c11485199e9bd2e9aa6628548c585357f63e8
|
2019-01-18 05:37:44 +08:00
|
|
|
HEAD_REF master
|
2021-09-11 04:57:06 +08:00
|
|
|
PATCHES
|
2022-01-27 04:06:01 +08:00
|
|
|
fix-install-location.patch
|
2020-02-01 03:42:32 +08:00
|
|
|
fix-utilityFunctions-conditions.patch
|
2021-03-30 01:17:50 +08:00
|
|
|
disable-error.patch
|
2022-02-02 03:54:22 +08:00
|
|
|
improve-dependencies.patch
|
2019-01-18 05:37:44 +08:00
|
|
|
)
|
|
|
|
endif()
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-02-02 03:54:22 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-03-24 06:04:01 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dskip_samples=ON
|
|
|
|
-Duse_installed_dependencies=ON
|
|
|
|
-Duse_default_uuid=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-02-02 03:54:22 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-02-02 03:54:22 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME azure_c_shared_utility CONFIG_PATH lib/cmake/azure_c_shared_utility)
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-02-02 03:54:22 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-02-02 03:54:22 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/configs/azure_iot_build_rules.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-02-02 03:54:22 +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()
|