diff options
author | Derek Bailey <derekbailey@google.com> | 2023-05-04 16:12:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 16:12:45 -0700 |
commit | 01a7bc3c58da52ee0b159417b61e0dc6c846bdfa (patch) | |
tree | 80eb4c459542d739a789df6ad2e99aea7acf904f /build_defs.bzl | |
parent | 67084b99219967a9ed73848446170a158385a022 (diff) | |
download | flatbuffers-01a7bc3c58da52ee0b159417b61e0dc6c846bdfa.tar.gz flatbuffers-01a7bc3c58da52ee0b159417b61e0dc6c846bdfa.tar.bz2 flatbuffers-01a7bc3c58da52ee0b159417b61e0dc6c846bdfa.zip |
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
Diffstat (limited to 'build_defs.bzl')
-rw-r--r-- | build_defs.bzl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_defs.bzl b/build_defs.bzl index 5437d7ae..e2d21e45 100644 --- a/build_defs.bzl +++ b/build_defs.bzl @@ -165,6 +165,7 @@ def flatbuffer_cc_library( name, srcs, srcs_filegroup_name = "", + outs = [], out_prefix = "", deps = [], includes = [], @@ -185,6 +186,7 @@ def flatbuffer_cc_library( srcs_filegroup_name: Name of the output filegroup that holds srcs. Pass this filegroup into the `includes` parameter of any other flatbuffer_cc_library that depends on this one's schemas. + outs: Additional outputs expected to be generated by flatc. out_prefix: Prepend this path to the front of all generated files. Usually is a directory name. deps: Optional, list of other flatbuffer_cc_library's to depend on. Cannot be specified @@ -232,7 +234,7 @@ def flatbuffer_cc_library( flatbuffer_library_public( name = srcs_lib, srcs = srcs, - outs = output_headers, + outs = outs + output_headers, language_flag = "-c", out_prefix = out_prefix, includes = includes, |