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