mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 01:52:00 +00:00
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:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user