Name Date Size #Lines LOC

..--

examples/H25-Apr-2025-1,7061,266

flatbuffers-java-grpc/H25-Apr-2025-161127

samples/greeter/H25-Apr-2025-201144

src/compiler/H25-Apr-2025-5,0834,265

tests/H25-Apr-2025-1,224934

BUILD.bazelHD25-Apr-20250

README.mdH A D25-Apr-20251.4 KiB4230

boringssl.patchH A D25-Apr-2025248 1411

build_grpc.shH A D25-Apr-2025743 2518

pom.xmlH A D25-Apr-20257.8 KiB220197

README.md

1GRPC implementation and test
2============================
3
4NOTE: files in `src/` are shared with the GRPC project, and maintained there
5(any changes should be submitted to GRPC instead). These files are copied
6from GRPC, and work with both the Protobuf and FlatBuffers code generator.
7
8`tests/` contains a GRPC specific test, you need to have built and installed
9the GRPC libraries for this to compile. This test will build using the
10`FLATBUFFERS_BUILD_GRPCTEST` option to the main FlatBuffers CMake project.
11
12## Building Flatbuffers with gRPC
13
14### Linux
15
161. Download, build and install gRPC. See [instructions](https://github.com/grpc/grpc/tree/master/src/cpp).
17    * Lets say your gRPC clone is at `/your/path/to/grpc_repo`.
18    * Install gRPC in a custom directory by running `make install prefix=/your/path/to/grpc_repo/install`.
192. `export GRPC_INSTALL_PATH=/your/path/to/grpc_repo/install`
203. `export PROTOBUF_DOWNLOAD_PATH=/your/path/to/grpc_repo/third_party/protobuf`
214. `mkdir build ; cd build`
225. `cmake -DFLATBUFFERS_BUILD_GRPCTEST=ON -DGRPC_INSTALL_PATH=${GRPC_INSTALL_PATH} -DPROTOBUF_DOWNLOAD_PATH=${PROTOBUF_DOWNLOAD_PATH} ..`
236. `make`
24
25For Bazel users:
26
27```shell
28$bazel test src/compiler/...
29```
30
31## Running FlatBuffer gRPC tests
32
33### Linux
34
351. `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${GRPC_INSTALL_PATH}/lib`
362. `make test ARGS=-V`
37
38For Bazel users:
39
40```shell
41$bazel test tests/...
42```