2019-01-25 07:53:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO awslabs/aws-c-common
|
2022-08-10 04:34:13 +08:00
|
|
|
REF 68f28f8df258390744f3c5b460250f8809161041 # v0.6.20
|
|
|
|
SHA512 a8be405e0e1586a06db038a0068df2c9277772ff7b8df2c542d18d2aae4b2bc0fd89de668ab10d84476446834390e4e27383b68d86c7d9f0d0749b57802866f1
|
2019-01-25 07:53:13 +08:00
|
|
|
HEAD_REF master
|
2019-06-11 08:31:43 +08:00
|
|
|
PATCHES
|
|
|
|
disable-internal-crt-option.patch # Disable internal crt option because vcpkg contains crt processing flow
|
2020-01-31 06:43:34 +08:00
|
|
|
fix-cmake-target-path.patch # Shared libraries and static libraries are not built at the same time
|
2019-01-25 07:53:13 +08:00
|
|
|
)
|
|
|
|
|
2021-09-15 10:06:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-11-23 06:18:07 +08:00
|
|
|
OPTIONS
|
|
|
|
-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-c-common/cmake)
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/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-c-common"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/aws-c-common"
|
2021-06-08 03:05:29 +08:00
|
|
|
)
|
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)
|