2019-01-25 07:53:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO awslabs/aws-c-event-stream
|
2021-09-15 10:06:34 +08:00
|
|
|
REF e87537be561d753ec82e783bc0929b1979c585f8 # v0.2.7
|
|
|
|
SHA512 651b05ba6d87ad8f65f6cf7e8940b7ea500722848f3e65c2de0bf84d2e6321d0aa1631d4f64a78cf5ed5ed5adac6805a4e91e5c31b3ae86e8c37afb38da4c786
|
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
|
|
|
)
|
|
|
|
|
2021-09-15 10:06:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-11-23 06:18:07 +08:00
|
|
|
OPTIONS
|
|
|
|
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common"
|
|
|
|
-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-event-stream/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-event-stream"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/aws-c-event-stream"
|
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)
|