1 Star 0 Fork 8

ZoeDong/grpc

forked from OpenCloudOS Stream/grpc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
disable-to-download-external-proto-library.patch 4.57 KB
一键复制 编辑 原始数据 按行查看 历史
diff -Naur grpc-1.56.2.orig/CMakeLists.txt grpc-1.56.2/CMakeLists.txt
--- grpc-1.56.2.orig/CMakeLists.txt 2023-09-06 11:26:23.792351429 +0800
+++ grpc-1.56.2/CMakeLists.txt 2023-09-06 11:27:22.148347246 +0800
@@ -332,83 +332,6 @@
set(_gRPC_ALLTARGETS_LIBRARIES ${_gRPC_ALLTARGETS_LIBRARIES} ${_gRPC_SYSTEMD_LIBRARIES})
endif()
-# Setup external proto library at third_party/envoy-api with 2 download URLs
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/envoy-api.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api
- https://storage.googleapis.com/grpc-bazel-mirror/github.com/envoyproxy/data-plane-api/archive/68d4315167352ffac71f149a43b8088397d3f33d.tar.gz
- 3c7372b5cb33e5e5cc3afd82573fc6275f9a2cac8b1530e1af14f52f34047328
- data-plane-api-68d4315167352ffac71f149a43b8088397d3f33d
- )
-endif()
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/envoy-api.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api
- https://github.com/envoyproxy/data-plane-api/archive/68d4315167352ffac71f149a43b8088397d3f33d.tar.gz
- 3c7372b5cb33e5e5cc3afd82573fc6275f9a2cac8b1530e1af14f52f34047328
- data-plane-api-68d4315167352ffac71f149a43b8088397d3f33d
- )
-endif()
-# Setup external proto library at third_party/googleapis with 2 download URLs
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/googleapis)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/googleapis.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/googleapis
- https://storage.googleapis.com/grpc-bazel-mirror/github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz
- 5bb6b0253ccf64b53d6c7249625a7e3f6c3bc6402abd52d3778bfa48258703a0
- googleapis-2f9af297c84c55c8b871ba4495e01ade42476c92
- )
-endif()
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/googleapis)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/googleapis.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/googleapis
- https://github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz
- 5bb6b0253ccf64b53d6c7249625a7e3f6c3bc6402abd52d3778bfa48258703a0
- googleapis-2f9af297c84c55c8b871ba4495e01ade42476c92
- )
-endif()
-# Setup external proto library at third_party/opencensus-proto/src with 2 download URLs
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/opencensus-proto/src)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/opencensus-proto/src.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/opencensus-proto/src
- https://storage.googleapis.com/grpc-bazel-mirror/github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz
- b7e13f0b4259e80c3070b583c2f39e53153085a6918718b1c710caf7037572b0
- opencensus-proto-0.3.0/src
- )
-endif()
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/opencensus-proto/src)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/opencensus-proto/src.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/opencensus-proto/src
- https://github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz
- b7e13f0b4259e80c3070b583c2f39e53153085a6918718b1c710caf7037572b0
- opencensus-proto-0.3.0/src
- )
-endif()
-# Setup external proto library at third_party/xds with 2 download URLs
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/xds)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/xds.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/xds
- https://storage.googleapis.com/grpc-bazel-mirror/github.com/cncf/xds/archive/e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7.tar.gz
- 0d33b83f8c6368954e72e7785539f0d272a8aba2f6e2e336ed15fd1514bc9899
- xds-e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7
- )
-endif()
-if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/xds)
- # Download the archive via HTTP, validate the checksum, and extract to third_party/xds.
- download_archive(
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/xds
- https://github.com/cncf/xds/archive/e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7.tar.gz
- 0d33b83f8c6368954e72e7785539f0d272a8aba2f6e2e336ed15fd1514bc9899
- xds-e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7
- )
-endif()
-
if(WIN32)
set(_gRPC_BASELIB_LIBRARIES ws2_32 crypt32)
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ZoeDong/grpc.git
git@gitee.com:ZoeDong/grpc.git
ZoeDong
grpc
grpc
master

搜索帮助