2019-01-25 07:53:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO awslabs/aws-checksums
|
2021-09-15 10:06:34 +08:00
|
|
|
REF 99bb0ad4b89d335d638536694352c45e0d2188f5 # v0.1.11
|
|
|
|
SHA512 cb9c249496fd41fda1efb9330e823d8b965adca6c8f372a50fe97eda821e277780bf9af8f5977102c44121568993cca55edbb750967b41f323e07e06a93c50a8
|
2019-01-25 07:53:13 +08:00
|
|
|
HEAD_REF master
|
2020-01-31 06:43:34 +08:00
|
|
|
PATCHES fix-cmake-target-path.patch
|
2019-01-25 07:53:13 +08:00
|
|
|
)
|
|
|
|
|
2019-07-08 14:11:37 +08:00
|
|
|
if (VCPKG_CRT_LINKAGE STREQUAL static)
|
|
|
|
set(STATIC_CRT_LNK ON)
|
|
|
|
else()
|
|
|
|
set(STATIC_CRT_LNK OFF)
|
|
|
|
endif()
|
|
|
|
|
2021-09-15 10:06:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-28 09:26:08 +08:00
|
|
|
OPTIONS
|
2021-11-23 06:18:07 +08:00
|
|
|
-DSTATIC_CRT=${STATIC_CRT_LNK}
|
2021-09-15 10:06:34 +08:00
|
|
|
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
|
2021-11-23 06:18:07 +08:00
|
|
|
-DBUILD_TESTING=FALSE
|
2019-01-25 07:53:13 +08:00
|
|
|
)
|
|
|
|
|
2021-09-15 10:06:34 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-01-25 07:53:13 +08:00
|
|
|
|
2021-09-15 10:06:34 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-checksums/cmake)
|
2019-01-25 07:53:13 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-09-15 10:06:34 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/aws-checksums"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/aws-checksums"
|
2019-01-25 07:53:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-15 10:06:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-01-25 07:53:13 +08:00
|
|
|
|
2020-01-31 06:43:34 +08:00
|
|
|
# Handle copyright
|
2021-09-15 10:06:34 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|