2020-01-31 06:43:34 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "Windows" "OSX")
|
2019-04-27 03:45:43 +08:00
|
|
|
|
2018-12-07 09:47:30 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO awslabs/aws-lambda-cpp
|
2021-10-19 05:33:31 +08:00
|
|
|
REF 8bcd8a201f9da613581a2748ca737ab09adbdae5 # v0.2.7
|
|
|
|
SHA512 c59310dd839622cfc9ac2a1df5a492e9a6d629b671ed929813dbe51dfe76d4a4e381e78b11b206b66c2bee131a1544c3c8dfc4644981b708b589492763c7ed59
|
2018-12-07 09:47:30 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-19 05:33:31 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-12-07 09:47:30 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
)
|
|
|
|
|
2021-10-19 05:33:31 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-12-07 09:47:30 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-19 05:33:31 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME aws-lambda-runtime CONFIG_PATH lib/aws-lambda-runtime/cmake)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/aws-lambda-runtime")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/aws-lambda-runtime")
|
|
|
|
|
2018-12-07 09:47:30 +08:00
|
|
|
# Handle copyright
|
2020-01-31 06:43:34 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|