Add binary schema reflection (#7932)

* Add binary schema reflection

* remove not-used parameter

* move logic from object API to base API

* forward declare

* remove duplicate code gen that was stompping on the edits

* reduce to just typedef generation

* fixed bazel rules to not stomp

* more bazel fixes to support additional generated files
This commit is contained in:
Derek Bailey
2023-05-04 16:12:45 -07:00
committed by GitHub
parent 67084b9921
commit 01a7bc3c58
6 changed files with 83 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
load("@rules_cc//cc:defs.bzl", "cc_test")
load("//:build_defs.bzl", "flatbuffer_cc_library")
load("//:build_defs.bzl", "DEFAULT_FLATC_ARGS", "flatbuffer_cc_library")
package(default_visibility = ["//visibility:private"])
@@ -160,6 +160,7 @@ cc_library(
],
hdrs = [
"monster_test.grpc.fb.h",
"monster_test_bfbs_generated.h",
"monster_test_generated.h",
],
includes = ["."],
@@ -182,6 +183,13 @@ flatbuffer_cc_library(
flatbuffer_cc_library(
name = "monster_test_cc_fbs",
srcs = ["monster_test.fbs"],
outs = ["monster_test_bfbs_generated.h"],
flatc_args = DEFAULT_FLATC_ARGS + [
"--bfbs-comments",
"--bfbs-builtins",
"--bfbs-gen-embed",
"--bfbs-filenames tests",
],
include_paths = ["tests/include_test"],
visibility = ["//grpc/tests:__subpackages__"],
deps = [":include_test_fbs"],