|
@@ -1,4 +1,4 @@
|
|
-From a1922eadfc87da3dd221ff631f94ddd4a8ee7049 Mon Sep 17 00:00:00 2001
|
|
|
|
|
|
+From 0f2c73b62bdc612f9d5cdd8e0c765995470d4f8b Mon Sep 17 00:00:00 2001
|
|
From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
|
From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
|
Date: Tue, 25 May 2021 14:55:23 +0200
|
|
Date: Tue, 25 May 2021 14:55:23 +0200
|
|
Subject: [PATCH] Add option to restrict building of (host-)grpc to
|
|
Subject: [PATCH] Add option to restrict building of (host-)grpc to
|
|
@@ -7,7 +7,7 @@ Subject: [PATCH] Add option to restrict building of (host-)grpc to
|
|
This avoids unnecessary dependencies on big packages like libabseil-cpp and
|
|
This avoids unnecessary dependencies on big packages like libabseil-cpp and
|
|
others.
|
|
others.
|
|
|
|
|
|
-Upstream-status: not accepted (see https://github.com/grpc/grpc/issues/25322)
|
|
|
|
|
|
+Upstream: not accepted (see https://github.com/grpc/grpc/issues/25322)
|
|
|
|
|
|
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
|
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
@@ -15,11 +15,11 @@ Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
Updated for 1.48.0:
|
|
Updated for 1.48.0:
|
|
Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
|
|
Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
|
|
---
|
|
---
|
|
- CMakeLists.txt | 43 +++++++++++++++++++++++++++++++++++--------
|
|
|
|
- 1 file changed, 35 insertions(+), 8 deletions(-)
|
|
|
|
|
|
+ CMakeLists.txt | 39 +++++++++++++++++++++++++++++++++++----
|
|
|
|
+ 1 file changed, 35 insertions(+), 4 deletions(-)
|
|
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
-index d3963b074b..51cef83141 100644
|
|
|
|
|
|
+index 0dcae6b1aee5..57b3963a43b0 100644
|
|
--- a/CMakeLists.txt
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -49,12 +49,16 @@ option(gRPC_BUILD_TESTS "Build tests" OFF)
|
|
@@ -49,12 +49,16 @@ option(gRPC_BUILD_TESTS "Build tests" OFF)
|
|
@@ -39,7 +39,7 @@ index d3963b074b..51cef83141 100644
|
|
set(gRPC_INSTALL ${gRPC_INSTALL_default} CACHE BOOL
|
|
set(gRPC_INSTALL ${gRPC_INSTALL_default} CACHE BOOL
|
|
"Generate installation target")
|
|
"Generate installation target")
|
|
|
|
|
|
-@@ -555,6 +559,8 @@ add_custom_target(plugins
|
|
|
|
|
|
+@@ -563,6 +567,8 @@ add_custom_target(plugins
|
|
DEPENDS ${_gRPC_PLUGIN_LIST}
|
|
DEPENDS ${_gRPC_PLUGIN_LIST}
|
|
)
|
|
)
|
|
|
|
|
|
@@ -48,7 +48,7 @@ index d3963b074b..51cef83141 100644
|
|
add_custom_target(tools_c
|
|
add_custom_target(tools_c
|
|
DEPENDS
|
|
DEPENDS
|
|
)
|
|
)
|
|
-@@ -567,6 +573,8 @@ add_custom_target(tools_cxx
|
|
|
|
|
|
+@@ -574,6 +580,8 @@ add_custom_target(tools_cxx
|
|
add_custom_target(tools
|
|
add_custom_target(tools
|
|
DEPENDS tools_c tools_cxx)
|
|
DEPENDS tools_c tools_cxx)
|
|
|
|
|
|
@@ -57,7 +57,7 @@ index d3963b074b..51cef83141 100644
|
|
protobuf_generate_grpc_cpp_with_import_path_correction(
|
|
protobuf_generate_grpc_cpp_with_import_path_correction(
|
|
src/proto/grpc/channelz/channelz.proto src/proto/grpc/channelz/channelz.proto
|
|
src/proto/grpc/channelz/channelz.proto src/proto/grpc/channelz/channelz.proto
|
|
)
|
|
)
|
|
-@@ -1228,6 +1236,7 @@ if(gRPC_BUILD_TESTS)
|
|
|
|
|
|
+@@ -1307,6 +1315,7 @@ if(gRPC_BUILD_TESTS)
|
|
DEPENDS buildtests_c buildtests_cxx)
|
|
DEPENDS buildtests_c buildtests_cxx)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -65,7 +65,7 @@ index d3963b074b..51cef83141 100644
|
|
|
|
|
|
add_library(address_sorting
|
|
add_library(address_sorting
|
|
third_party/address_sorting/address_sorting.c
|
|
third_party/address_sorting/address_sorting.c
|
|
-@@ -1280,6 +1289,8 @@ if(gRPC_INSTALL)
|
|
|
|
|
|
+@@ -1359,6 +1368,8 @@ if(gRPC_INSTALL)
|
|
)
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -74,16 +74,16 @@ index d3963b074b..51cef83141 100644
|
|
if(gRPC_BUILD_TESTS)
|
|
if(gRPC_BUILD_TESTS)
|
|
|
|
|
|
add_library(end2end_tests
|
|
add_library(end2end_tests
|
|
-@@ -1451,6 +1462,8 @@ endforeach()
|
|
|
|
|
|
+@@ -1512,6 +1523,8 @@ target_link_libraries(end2end_tests
|
|
|
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
+if(NOT gRPC_BUILD_PLUGIN_SUPPORT_ONLY)
|
|
+if(NOT gRPC_BUILD_PLUGIN_SUPPORT_ONLY)
|
|
+
|
|
+
|
|
add_library(gpr
|
|
add_library(gpr
|
|
- src/core/ext/upb-generated/google/protobuf/any.upb.c
|
|
|
|
- src/core/ext/upb-generated/google/rpc/status.upb.c
|
|
|
|
-@@ -2373,6 +2386,8 @@ if(gRPC_INSTALL)
|
|
|
|
|
|
+ src/core/lib/gpr/alloc.cc
|
|
|
|
+ src/core/lib/gpr/atm.cc
|
|
|
|
+@@ -2504,6 +2517,8 @@ if(gRPC_INSTALL)
|
|
)
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -92,7 +92,7 @@ index d3963b074b..51cef83141 100644
|
|
if(gRPC_BUILD_TESTS)
|
|
if(gRPC_BUILD_TESTS)
|
|
|
|
|
|
add_library(grpc_test_util
|
|
add_library(grpc_test_util
|
|
-@@ -2511,6 +2526,8 @@ endif()
|
|
|
|
|
|
+@@ -2618,6 +2633,8 @@ endif()
|
|
|
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -101,7 +101,7 @@ index d3963b074b..51cef83141 100644
|
|
add_library(grpc_unsecure
|
|
add_library(grpc_unsecure
|
|
src/core/ext/filters/census/grpc_context.cc
|
|
src/core/ext/filters/census/grpc_context.cc
|
|
src/core/ext/filters/channel_idle/channel_idle_filter.cc
|
|
src/core/ext/filters/channel_idle/channel_idle_filter.cc
|
|
-@@ -2916,6 +2933,8 @@ if(gRPC_INSTALL)
|
|
|
|
|
|
+@@ -3102,6 +3119,8 @@ if(gRPC_INSTALL)
|
|
)
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -110,7 +110,7 @@ index d3963b074b..51cef83141 100644
|
|
if(gRPC_BUILD_TESTS)
|
|
if(gRPC_BUILD_TESTS)
|
|
|
|
|
|
if(gRPC_BUILD_CODEGEN)
|
|
if(gRPC_BUILD_CODEGEN)
|
|
-@@ -2987,6 +3006,8 @@ endif()
|
|
|
|
|
|
+@@ -3185,6 +3204,8 @@ endif()
|
|
|
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -119,7 +119,7 @@ index d3963b074b..51cef83141 100644
|
|
add_library(grpc++
|
|
add_library(grpc++
|
|
src/core/ext/transport/binder/client/binder_connector.cc
|
|
src/core/ext/transport/binder/client/binder_connector.cc
|
|
src/core/ext/transport/binder/client/channel_create.cc
|
|
src/core/ext/transport/binder/client/channel_create.cc
|
|
-@@ -3463,6 +3484,7 @@ if(gRPC_INSTALL)
|
|
|
|
|
|
+@@ -3635,6 +3656,7 @@ if(gRPC_INSTALL)
|
|
)
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -127,7 +127,7 @@ index d3963b074b..51cef83141 100644
|
|
|
|
|
|
if(gRPC_BUILD_CODEGEN)
|
|
if(gRPC_BUILD_CODEGEN)
|
|
add_library(grpc++_reflection
|
|
add_library(grpc++_reflection
|
|
-@@ -3705,6 +3727,8 @@ target_link_libraries(grpc++_test_util
|
|
|
|
|
|
+@@ -3889,6 +3911,8 @@ target_link_libraries(grpc++_test_util
|
|
|
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -136,7 +136,7 @@ index d3963b074b..51cef83141 100644
|
|
add_library(grpc++_unsecure
|
|
add_library(grpc++_unsecure
|
|
src/cpp/client/channel_cc.cc
|
|
src/cpp/client/channel_cc.cc
|
|
src/cpp/client/client_callback.cc
|
|
src/cpp/client/client_callback.cc
|
|
-@@ -4023,6 +4047,7 @@ if(gRPC_INSTALL)
|
|
|
|
|
|
+@@ -4181,6 +4205,7 @@ if(gRPC_INSTALL)
|
|
)
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -144,7 +144,7 @@ index d3963b074b..51cef83141 100644
|
|
|
|
|
|
add_library(grpc_plugin_support
|
|
add_library(grpc_plugin_support
|
|
src/compiler/cpp_generator.cc
|
|
src/compiler/cpp_generator.cc
|
|
-@@ -4082,7 +4107,7 @@ foreach(_hdr
|
|
|
|
|
|
+@@ -4240,7 +4265,7 @@ foreach(_hdr
|
|
endforeach()
|
|
endforeach()
|
|
|
|
|
|
|
|
|
|
@@ -153,7 +153,7 @@ index d3963b074b..51cef83141 100644
|
|
install(TARGETS grpc_plugin_support EXPORT gRPCTargets
|
|
install(TARGETS grpc_plugin_support EXPORT gRPCTargets
|
|
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
BUNDLE DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
BUNDLE DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
-@@ -4166,6 +4191,8 @@ endif()
|
|
|
|
|
|
+@@ -4324,6 +4349,8 @@ endif()
|
|
|
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
@@ -162,16 +162,16 @@ index d3963b074b..51cef83141 100644
|
|
add_library(upb
|
|
add_library(upb
|
|
third_party/upb/third_party/utf8_range/naive.c
|
|
third_party/upb/third_party/utf8_range/naive.c
|
|
third_party/upb/third_party/utf8_range/range2-neon.c
|
|
third_party/upb/third_party/utf8_range/range2-neon.c
|
|
-@@ -4256,6 +4283,8 @@ target_link_libraries(gen_hpack_tables
|
|
|
|
- gpr
|
|
|
|
- )
|
|
|
|
|
|
+@@ -4393,6 +4420,8 @@ if(gRPC_INSTALL)
|
|
|
|
+ )
|
|
|
|
+ endif()
|
|
|
|
|
|
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
|
|
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
|
|
+
|
|
+
|
|
|
|
|
|
if(gRPC_BUILD_TESTS)
|
|
if(gRPC_BUILD_TESTS)
|
|
|
|
|
|
-@@ -11228,7 +11257,7 @@ target_link_libraries(grpc_cli
|
|
|
|
|
|
+@@ -11085,7 +11114,7 @@ target_link_libraries(grpc_completion_queue_test
|
|
|
|
|
|
|
|
|
|
endif()
|
|
endif()
|
|
@@ -180,7 +180,7 @@ index d3963b074b..51cef83141 100644
|
|
|
|
|
|
add_executable(grpc_cpp_plugin
|
|
add_executable(grpc_cpp_plugin
|
|
src/compiler/cpp_plugin.cc
|
|
src/compiler/cpp_plugin.cc
|
|
-@@ -11258,7 +11287,7 @@ target_link_libraries(grpc_cpp_plugin
|
|
|
|
|
|
+@@ -11115,7 +11144,7 @@ target_link_libraries(grpc_cpp_plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -189,7 +189,7 @@ index d3963b074b..51cef83141 100644
|
|
install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
|
|
install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
|
|
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
BUNDLE DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
BUNDLE DESTINATION ${gRPC_INSTALL_BINDIR}
|
|
-@@ -19803,7 +19832,7 @@ endif()
|
|
|
|
|
|
+@@ -23128,7 +23157,7 @@ endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -198,9 +198,12 @@ index d3963b074b..51cef83141 100644
|
|
|
|
|
|
if(gRPC_INSTALL)
|
|
if(gRPC_INSTALL)
|
|
install(EXPORT gRPCTargets
|
|
install(EXPORT gRPCTargets
|
|
-@@ -19900,3 +19929,5 @@ generate_pkgconfig(
|
|
|
|
|
|
+@@ -23225,3 +23254,5 @@ generate_pkgconfig(
|
|
"-lgrpc++_unsecure"
|
|
"-lgrpc++_unsecure"
|
|
""
|
|
""
|
|
"grpc++_unsecure.pc")
|
|
"grpc++_unsecure.pc")
|
|
+
|
|
+
|
|
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
|
|
+endif() # gRPC_BUILD_PLUGIN_SUPPORT_ONLY
|
|
|
|
+--
|
|
|
|
+2.43.0
|
|
|
|
+
|