aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos O'Ryan <coryan@users.noreply.github.com>2021-02-08 20:55:26 -0500
committerGitHub <noreply@github.com>2021-02-08 17:55:26 -0800
commit5f6519aaad1642c9a8d09178e417a5a6f5331d72 (patch)
tree7ca36d2f952413988a054ad78f696a8d2298be7e
parent8317bf972a8f48559cb96e8fbc2e43fbff978a82 (diff)
downloadvcpkg-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
-rw-r--r--ports/functions-framework-cpp/portfile.cmake31
-rw-r--r--ports/functions-framework-cpp/vcpkg.json13
-rw-r--r--scripts/ci.baseline.txt2
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/f-/functions-framework-cpp.json9
5 files changed, 59 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"
+ ]
+}
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index aaa4411bf..48951a085 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -336,6 +336,8 @@ fribidi:arm64-windows=fail
fribidi:arm-uwp=fail
fribidi:x64-uwp=fail
ftgl:x64-uwp=fail
+# https://github.com/GoogleCloudPlatform/functions-framework-cpp/issues/207
+functions-framework-cpp:x64-uwp=fail
fuzzylite:arm-uwp=fail
fuzzylite:x64-linux=fail
fuzzylite:x64-osx=fail
diff --git a/versions/baseline.json b/versions/baseline.json
index 7136d913d..a26c3fd73 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -2060,6 +2060,10 @@
"baseline": "4.1.0",
"port-version": 0
},
+ "functions-framework-cpp": {
+ "baseline": "0.3.0",
+ "port-version": 0
+ },
"fuzzylite": {
"baseline": "6.0",
"port-version": 3
diff --git a/versions/f-/functions-framework-cpp.json b/versions/f-/functions-framework-cpp.json
new file mode 100644
index 000000000..3a3ad4a35
--- /dev/null
+++ b/versions/f-/functions-framework-cpp.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "35de9501f7e2c91bb35da41cffac790008330a3c",
+ "version-string": "0.3.0",
+ "port-version": 0
+ }
+ ]
+}