vcpkg/ports/aws-c-event-stream/portfile.cmake
bdonlan 7d5fa69b33 [aws-sdk-cpp] Update port to version 1.7.38 and add ports for its dependencies (#5214)
* [aws-c-common] Add new port

* [aws-checksums] Add new port

* [aws-c-event-stream] Add new port

* [aws-sdk-cpp] Update port to version 1.7.38

* [aws-sdk-cpp] Add dependencies on aws-c-event-stream, aws-checksums
2019-01-24 15:53:13 -08:00

35 lines
946 B
CMake

include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO awslabs/aws-c-event-stream
REF v0.1.1
SHA512 974311cdface59bb5a95c7c249ad31cf694ebefd5c7b25f280f6817c6dc8d9ab1fdc8f75030099efe573be41a93676f199fda797d2a7bb41533f7e15f05de120
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/cmake"
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/aws-c-event-stream/cmake)
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-event-stream
${CURRENT_PACKAGES_DIR}/lib/aws-c-event-stream
)
vcpkg_copy_pdbs()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/aws-c-event-stream RENAME copyright)
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/share
)