Commit Graph

19 Commits

Author SHA1 Message Date
Eugene Ostroukhov d43e35738a
Examples: unify command line flags (#32456)
1. All greeter servers now support flag `--port` to customize the listen
port.
2. All client implementation now have `--target` flag to specify the
server location.
3. ABSL is used to parse the flags to reduce the amount of boilerplate
code in the examples.

Fixes: #26989
2023-02-27 10:39:21 -08:00
Esun Kim b64d623f24
CMake's better handling c++14 requirement (#31916)
* Bumped the cmake version version to 3.8

* Switch to target_compile_features for cxx_std_14

* Regen
2023-01-27 09:51:31 -08:00
Vijay Pai 8aff94558c
De-experimentalize C++ callback API (#25728)
* De-experimentalize callback API

* Make FromServerContext based on ServerContextBase

* Fix lambda

* Fix headers

* De-experimentalize tests

* clang-format

* Fix consistency checks

* wip

* Fix const-ness of callback client read RPC requests

* Fix golden file

* Give full route_guide callback client example with Hold etc

* Complete example route-guide server

* De-experimentalize test services

* Omit unneeded using

* Remove some uses of non-experimental macro from test

* clang-format examples

* De-experimentalize async stub calls

* Remove experimental namespace use in qps, ubms

* De-experimentalize alarms, generic stubs, and context allocator

* De-experimentalize SetContextAllocator

* clang-format

* Fix conflicts

* Leave obsolete API in place until users can be migrated
2021-05-27 14:55:25 -07:00
Esun Kim 69bb5e328e Added CMakeLists for route_guide example 2020-12-22 13:44:35 -08:00
tuttieee a61e02b90f Fix a message indicating the protobuf version in cpp hello_world example's CMakeLists.txt 2020-06-22 10:41:54 +09:00
Donna Dionne 48fa247304 Building C++ example with grpc++ instead of grpc++_unsecure
The example should be build with grpc++, not grpc++_unsecure.

For some reason in some branches like master, both versions are built in
so problem not detected.  This problem surfaced in 1.28x so needs to be
fixed to link with the correct grpc++.
2020-03-18 09:49:26 -07:00
Donna Dionne ca8ba90292 Adding Proto Reflection and Health Check to basic C++ example server
And ensuring the example can be built and ran via
bazel, make, and cmake.
2020-03-05 12:47:14 -08:00
Eduardo Broto 60953c511d Add missing greeter_async_client2 to c++ helloworld CMakeLists.txt 2020-01-22 13:15:45 +01:00
Esun Kim 5207eba9ff Add abseil 2020-01-03 19:29:55 -08:00
Zack Galbreath 0be62b021a Add distrib test for CMake FetchContent build 2019-12-19 09:36:25 -05:00
Zack Galbreath ec239c48f7 Allow helloworld example to provide its own protoc and grpc_cpp_plugin 2019-12-18 10:04:39 -05:00
Christopher Warrington 4be4df3624 Bump min CMake to 3.5.1 to match Google benchmark
The Google Benchmark CMake build needs CMake 3.5.1 or newer. CMake 3.5.1
was released May 24, 2016 and is available in Debian stable and Ubuntu
16.04 and 18.04.
2019-07-02 23:02:47 +00:00
Jan Tattermusch 4a510960c6 add distribtest for grpc being added with cmake add_subdirectory 2018-03-29 14:12:10 +02:00
Jan Tattermusch 2286c633c2 cmake "superbuild" example using externalprojects 2018-03-28 19:30:44 +02:00
Jan Tattermusch dec076c4ab fix protobuf usage in the example 2018-01-18 19:34:20 +01:00
Jan Tattermusch f0620a37a5 fix linux distrib tests 2017-12-01 10:07:43 +01:00
Jan Tattermusch 06251f8cd6 make helloworld CMakeLists compile on windows 2017-12-01 10:07:43 +01:00
Jan Tattermusch 4caadb9205 fix helloworld cmake build 2017-09-11 11:03:05 +02:00
Konstantin Podsvirov 13016cc40b CMake: project for HelloWorld cpp example 2016-07-28 00:46:11 +03:00