From 5f6519aaad1642c9a8d09178e417a5a6f5331d72 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Mon, 8 Feb 2021 20:55:26 -0500 Subject: [functions-framework-cpp] add new port with version 0.3.0 (#15989) * [functions-framework-cpp] add new port with version 0.3.0 * Address review comments * Too much cleanup in the CI baseline * Update version file --- ports/functions-framework-cpp/portfile.cmake | 31 ++++++++++++++++++++++++++++ ports/functions-framework-cpp/vcpkg.json | 13 ++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 ports/functions-framework-cpp/portfile.cmake create mode 100644 ports/functions-framework-cpp/vcpkg.json (limited to 'ports/functions-framework-cpp') diff --git a/ports/functions-framework-cpp/portfile.cmake b/ports/functions-framework-cpp/portfile.cmake new file mode 100644 index 000000000..78c6ea647 --- /dev/null +++ b/ports/functions-framework-cpp/portfile.cmake @@ -0,0 +1,31 @@ +# 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 v0.3.0 + SHA512 28594c275b7ac85ccbdcd9a1ab8e3a7c26932006f0da6ede4aab29f303305536b111cbcf99e9f8558f71f56876bc3e3b790f0627bd708ec9b09999f27ef37f3b + HEAD_REF main +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + DISABLE_PARALLEL_CONFIGURE + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_install_cmake(ADD_BIN_TO_PATH) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) +file( + INSTALL ${SOURCE_PATH}/LICENSE + DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} + RENAME copyright) + +vcpkg_copy_pdbs() diff --git a/ports/functions-framework-cpp/vcpkg.json b/ports/functions-framework-cpp/vcpkg.json new file mode 100644 index 000000000..74bcf523c --- /dev/null +++ b/ports/functions-framework-cpp/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "functions-framework-cpp", + "version-string": "0.3.0", + "description": "Functions Framework for C++.", + "homepage": "https://github.com/GoogleCloudPlatform/functions-framework-cpp/", + "dependencies": [ + "abseil", + "boost-beast", + "boost-program-options", + "boost-serialization", + "nlohmann-json" + ] +} -- cgit v1.2.3