reshilkin 5894c3ce50 Update contrib/libs/flatbuffers to 23.5.9 | 1 year ago | |
---|---|---|
.. | ||
src | 5894c3ce50 Update contrib/libs/flatbuffers to 23.5.9 | 1 year ago |
README.md | 5894c3ce50 Update contrib/libs/flatbuffers to 23.5.9 | 1 year ago |
NOTE: files in src/
are shared with the GRPC project, and maintained there
(any changes should be submitted to GRPC instead). These files are copied
from GRPC, and work with both the Protobuf and FlatBuffers code generator.
tests/
contains a GRPC specific test, you need to have built and installed
the GRPC libraries for this to compile. This test will build using the
FLATBUFFERS_BUILD_GRPCTEST
option to the main FlatBuffers CMake project.
/your/path/to/grpc_repo
.make install prefix=/your/path/to/grpc_repo/install
.export GRPC_INSTALL_PATH=/your/path/to/grpc_repo/install
export PROTOBUF_DOWNLOAD_PATH=/your/path/to/grpc_repo/third_party/protobuf
mkdir build ; cd build
cmake -DFLATBUFFERS_BUILD_GRPCTEST=ON -DGRPC_INSTALL_PATH=${GRPC_INSTALL_PATH} -DPROTOBUF_DOWNLOAD_PATH=${PROTOBUF_DOWNLOAD_PATH} ..
make
For Bazel users:
$bazel test src/compiler/...
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${GRPC_INSTALL_PATH}/lib
make test ARGS=-V
For Bazel users:
$bazel test tests/...