2018-11-17 07:45:32 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2023-02-04 04:14:45 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Azure/azure-c-shared-utility
|
2024-06-25 08:55:52 +08:00
|
|
|
REF 51d6f3f7246876051f713c7abed28f909bf604e3
|
|
|
|
SHA512 f0d88f10905739c30f43bf20861d99e7146d95ae80f1bd56979b22ef57fbbe9825bf3be9b937806e65c881ef1ba4932dc783fbabfa8ca80cc80329a409f8c20b
|
2023-02-04 04:14:45 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-install-location.patch
|
|
|
|
fix-utilityFunctions-conditions.patch
|
|
|
|
disable-error.patch
|
|
|
|
improve-dependencies.patch
|
2024-04-22 22:24:54 +08:00
|
|
|
modify-POSIX-c-version.patch
|
2023-02-04 04:14:45 +08:00
|
|
|
)
|
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
|
|
|
|
2024-04-22 22:24:54 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2018-03-24 06:04:01 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|