vcpkg/ports/aws-c-s3/portfile.cmake
Jia Yue Hua 1ec00d26ba
[aws-c-auth,aws-c-io,aws-c-s3,aws-c-sdkutils,aws-sdk-cpp] update to 0.7.14,0.14.3,0.5.0,0.1.14,1.11.255 (#36566)
* [aws-c-auth] update to 0.7.14

* [aws-c-auth] update to 0.7.14

* [aws-c-io] update to 0.14.3

* [aws-c-io] update to 0.14.3

* [aws-c-s3] update to 0.5.0

* [aws-c-s3] update to 0.5.0

* [aws-c-sdkutils] update to 0.1.14

* [aws-c-sdkutils] update to 0.1.14

* [aws-sdk-cpp] update to 1.11.255

* [aws-sdk-cpp] update to 1.11.255
2024-02-05 11:24:11 -08:00

33 lines
1.1 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO awslabs/aws-c-s3
REF "v${VERSION}"
SHA512 9c97327ce06e3977b7cce409a679c1f815fb6b315c61b2c2cb8912b76fc7a19e0bbe5d2733630fa7dccb76a9d8f61236d60191c57b896eb9bf6ae3961dda39d1
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
-DBUILD_TESTING=FALSE
)
vcpkg_cmake_install()
string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}")
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH)
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/")
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}"
"${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/lib/${PORT}"
)
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")