diff options
| author | Carlos O'Ryan <coryan@users.noreply.github.com> | 2021-02-08 20:55:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-08 17:55:26 -0800 |
| commit | 5f6519aaad1642c9a8d09178e417a5a6f5331d72 (patch) | |
| tree | 7ca36d2f952413988a054ad78f696a8d2298be7e /ports/functions-framework-cpp | |
| parent | 8317bf972a8f48559cb96e8fbc2e43fbff978a82 (diff) | |
| download | vcpkg-5f6519aaad1642c9a8d09178e417a5a6f5331d72.tar.gz vcpkg-5f6519aaad1642c9a8d09178e417a5a6f5331d72.zip | |
[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
Diffstat (limited to 'ports/functions-framework-cpp')
| -rw-r--r-- | ports/functions-framework-cpp/portfile.cmake | 31 | ||||
| -rw-r--r-- | ports/functions-framework-cpp/vcpkg.json | 13 |
2 files changed, 44 insertions, 0 deletions
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" + ] +} |
