2021-02-08 20:55:26 -05:00
|
|
|
# TODO(coryan) - fix support for DLLs
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO GoogleCloudPlatform/functions-framework-cpp
|
2023-10-03 10:59:01 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 3832e205a2505152ed6955d7cf5630b2045133221ddd96e2bef62e66cad58cea326f32428e2f494bbe1a10f5d66453d09ae46e6b972a7ed13f211efbb79527a8
|
2021-02-08 20:55:26 -05:00
|
|
|
HEAD_REF main
|
2023-10-03 10:59:01 +08:00
|
|
|
PATCHES fix-integral-include.patch
|
2021-02-08 20:55:26 -05:00
|
|
|
)
|
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-22 05:48:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-02-08 20:55:26 -05:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
)
|
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
2021-02-08 20:55:26 -05:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-05-01 19:10:56 -04:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME functions_framework_cpp CONFIG_PATH lib/cmake/functions_framework_cpp)
|
2021-02-08 20:55:26 -05:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-02-08 20:55:26 -05:00
|
|
|
file(
|
2023-04-22 05:48:12 +08:00
|
|
|
INSTALL "${SOURCE_PATH}/LICENSE"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
2021-02-08 20:55:26 -05:00
|
|
|
RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2021-10-28 00:19:28 +02:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|