diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/functions-framework-cpp/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/functions-framework-cpp/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/functions-framework-cpp/portfile.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/functions-framework-cpp/portfile.cmake b/vcpkg/ports/functions-framework-cpp/portfile.cmake new file mode 100644 index 0000000..8801311 --- /dev/null +++ b/vcpkg/ports/functions-framework-cpp/portfile.cmake @@ -0,0 +1,35 @@ +# 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 + REF "v${VERSION}" + SHA512 3832e205a2505152ed6955d7cf5630b2045133221ddd96e2bef62e66cad58cea326f32428e2f494bbe1a10f5d66453d09ae46e6b972a7ed13f211efbb79527a8 + HEAD_REF main + PATCHES + fix-integral-include.patch + fix-asio-error.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_PARALLEL_CONFIGURE + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install(ADD_BIN_TO_PATH) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_cmake_config_fixup(PACKAGE_NAME functions_framework_cpp CONFIG_PATH lib/cmake/functions_framework_cpp) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file( + INSTALL "${SOURCE_PATH}/LICENSE" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" + RENAME copyright) + +vcpkg_copy_pdbs() + +vcpkg_fixup_pkgconfig() |