aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorDengJun <65080805+dengjunplusplus@users.noreply.github.com>2021-08-28 03:50:41 +0800
committerGitHub <noreply@github.com>2021-08-27 12:50:41 -0700
commit646e573f8aaa9ca460632a8b7dfa271efe2df2d0 (patch)
treee51a74ea9d1d699423e3da7ec8dfe4cb151602b4 /ports
parentfefb2c12b66680c6a9b58822624ec60e95abc642 (diff)
downloadvcpkg-646e573f8aaa9ca460632a8b7dfa271efe2df2d0.tar.gz
vcpkg-646e573f8aaa9ca460632a8b7dfa271efe2df2d0.zip
[srpc] add port of sogou/srpc (#16295)
Diffstat (limited to 'ports')
-rw-r--r--ports/srpc/portfile.cmake24
-rw-r--r--ports/srpc/vcpkg.json22
2 files changed, 46 insertions, 0 deletions
diff --git a/ports/srpc/portfile.cmake b/ports/srpc/portfile.cmake
new file mode 100644
index 000000000..5b5dbc81a
--- /dev/null
+++ b/ports/srpc/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sogou/srpc
+ REF v0.9.3
+ SHA512 e64cfec279f833ad24b1942ef2b572fc4bd3bfc5f9d623cd5d25b3c869d2ff9b35250cc814e8aaeb919ebed0929c44407eb9abb2e6793cfdc967708210f5f7e3
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ DISABLE_PARALLEL_CONFIGURE
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/srpc)
+vcpkg_copy_pdbs()
+vcpkg_copy_tools(
+ TOOL_NAMES srpc_generator
+ AUTO_CLEAN
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/srpc/vcpkg.json b/ports/srpc/vcpkg.json
new file mode 100644
index 000000000..3b95d8da0
--- /dev/null
+++ b/ports/srpc/vcpkg.json
@@ -0,0 +1,22 @@
+{
+ "name": "srpc",
+ "version-semver": "0.9.3",
+ "description": "RPC based on Sogou C++ Workflow",
+ "homepage": "https://github.com/sogou/srpc",
+ "dependencies": [
+ "lz4",
+ "openssl",
+ "protobuf",
+ "snappy",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "workflow",
+ "zlib"
+ ]
+}