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-uhttp-c
|
2024-06-25 08:55:52 +08:00
|
|
|
REF 65449ac08044475f9a14d3667ae04064a8767d76
|
|
|
|
SHA512 ff55f3b81fbee4136af3172960c806811d7d9a49fd021c0e9dcf88fdc512b96a376711bbd6176880f9493d497b6a2f6782ad6ca6fb72687517e146eef780c86f
|
2023-02-04 04:14:45 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2018-03-24 06:04:01 +08:00
|
|
|
|
|
|
|
file(COPY ${CURRENT_INSTALLED_DIR}/share/azure-c-shared-utility/azure_iot_build_rules.cmake DESTINATION ${SOURCE_PATH}/deps/c-utility/configs/)
|
|
|
|
|
2022-03-04 04:24:47 +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
|
2018-11-17 07:45:32 +08:00
|
|
|
-Dbuild_as_dynamic=OFF
|
2018-03-24 06:04:01 +08:00
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include
|
2022-03-04 04:24:47 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
build_as_dynamic
|
2018-03-24 06:04:01 +08:00
|
|
|
)
|
|
|
|
|
2022-03-04 04:24:47 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-03-04 04:24:47 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME uhttp CONFIG_PATH "lib/cmake/uhttp")
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-03-04 04:24:47 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-03-24 06:04:01 +08:00
|
|
|
|
2022-03-04 04:24:47 +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()
|