mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 21:39:01 +08:00
e33819fe06
* Release for 08-30-2021 * Update azure-iot-sdk-c vcpkg.json formatting * Update version database * Test commit. In progress. * bot actions * Update refs and hashes for main branch test * bot instructions * Add OpenSSL for uamqp, umqtt, uhttp * bot instructions * Update cmake build options 'warning_as_errors' to OFF; remove patch file * bot instructions * Update all REFs to current test commit in azure-iot-sdk-c momuno/curl-vcpkg-fix_20210831 * bot instructions * c-utility fix -- test * bot instructions * Update azure-iot-sdk-c REF and SHA512 for LTS release. Use version-date * Update version database * put back remove-werror.patch for LTS release. * Update versioning. bot instructions * bot instructions. * Adding back patch to portfile instructions. Removes warnings as errors * bot instructions Co-authored-by: Mollie Munoz <momuno@microsoft.com>
42 lines
1.4 KiB
CMake
42 lines
1.4 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
if("public-preview" IN_LIST FEATURES)
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Azure/azure-uhttp-c
|
|
REF d84a20609a2b5a555920389451fb3c9a2ed3656c
|
|
SHA512 4eadd7e120082cc3bcf696d6cd16bc7ee8e1082380dd7583fba7fad1bb95109f3456890495e25ae7675e656ef721fa12eff22eeb96d8a4cf359be5c96889cbd6
|
|
HEAD_REF master
|
|
)
|
|
else()
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Azure/azure-uhttp-c
|
|
REF db8ac9c1353fe05cf6917e8ec8bcb866bf4a6f11
|
|
SHA512 4c9b053bcdc1086dbba6883a887e5af1f6aa4572bfb1e36c3b07c9bb93c35b188cb31f510fca5c4b2a0557df446dd965eafda993eab7c04b4502ed07b269c148
|
|
HEAD_REF master
|
|
)
|
|
endif()
|
|
|
|
file(COPY ${CURRENT_INSTALLED_DIR}/share/azure-c-shared-utility/azure_iot_build_rules.cmake DESTINATION ${SOURCE_PATH}/deps/c-utility/configs/)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-Dskip_samples=ON
|
|
-Duse_installed_dependencies=ON
|
|
-Dbuild_as_dynamic=OFF
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/uhttp)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
|
|
|
vcpkg_copy_pdbs()
|