mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 06:51:18 +08:00
92af1ff59a
* [aws-c-common] Update to 0.6.9 * [aws-checksums] Update to 0.1.11 * [aws-c-event-stream] Upgrade to 0.2.7 * Add aws-c-cal port * Add s2n port * Add port aws-c-io * [aws-c-event-stream] Update port to 0.2.7 * Update aws-sdk-cpp port * Add aws-c-compression port * Add aws-c-auth port * Add aws-c-http port * Add aws-c-mqtt port * Add aws-c-s3 port * Add aws-crt-cpp port * [aws-sdk-cpp] Update port to 1.9.91 version * Fix port issues. * Upgrade aws-sdk-cpp to 1.9.96 Upgrade aws-crt-cpp to 0.15.1 * Support x64-windows * Fix format issues * Specify supported triplets for aws libs * Specify platforms for more aws libs * Support x64-windows-static triplet. * Fix format issue for aws-c-common * Update port versions file * Use new vcpkg cmake methods and format * Use new vcpkg cmake methods and format * update version * Fix s2n port typo * Fix s2n port typo Co-authored-by: Jonliu1993 <13720414433@163.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
45 lines
1.2 KiB
CMake
45 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO awslabs/aws-c-http
|
|
REF 6ff61d621c374ab763f94584d26b1d29baa81c2e # v0.6.5
|
|
SHA512 91a5f3c18e6c8d14368ad2b7275a1ebcc6398758f6b1f87ba6199998390a26e768e25c16b27f589e35371f7304b6784cfc21699ff724c811135f2f73732fe85b
|
|
HEAD_REF master
|
|
PATCHES fix-cmake-target-path.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-http/cmake)
|
|
|
|
vcpkg_copy_tools(
|
|
TOOL_NAMES elasticurl
|
|
AUTO_CLEAN
|
|
)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/bin"
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-http"
|
|
"${CURRENT_PACKAGES_DIR}/lib/aws-c-http"
|
|
)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|