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-01-27 04:06:01 +08:00
|
|
|
REF 1a27846886a74702d409a8f0e2d77a38163cefc7
|
|
|
|
SHA512 c30cba73692691fe1310b6180e3aeaf4d86b6276981c680cac31d605634e5dedbce3f823142dfebba4ae2f76ccead965a527d95df0e52af638a30ddec9818fbd
|
2019-01-18 05:37:44 +08:00
|
|
|
HEAD_REF master
|
2021-09-11 04:57:06 +08:00
|
|
|
PATCHES
|
2022-04-07 02:04:46 +08:00
|
|
|
openssl.patch
|
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()
|