From 01a7bc3c58da52ee0b159417b61e0dc6c846bdfa Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Thu, 4 May 2023 16:12:45 -0700 Subject: 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 --- build_defs.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build_defs.bzl') 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, -- cgit v1.2.3