vcpkg/ports/aws-c-auth/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-auth
REF "v${VERSION}"
SHA512 d062c22b718e35f5da843b4ae0071405a3627982c0ad55d4214920650086cd6da35f0c3b21d6360c4324dde3f647faa47e5c3331fd5a58930c6de31d27093321
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")