forked from BigfootDev/flatbuffers
We need to copy the .fbs files into the package used for .bfbs files. This is necessary as flatc doesn't provide support to specify the full output file name for an .fbs file in a different folder. I tried OUTPUT_FILE env var but this doesn't seem to be honored by flatc.
21 lines
434 B
Python
21 lines
434 B
Python
filegroup(
|
|
name = "distribution",
|
|
srcs = [
|
|
"BUILD.bazel",
|
|
"reflection.fbs",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
# flatbuffer_ts_library() only supports .fbs file but not filegroups
|
|
exports_files(
|
|
srcs = ["reflection.fbs"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "reflection_fbs_schema",
|
|
srcs = ["reflection.fbs"],
|
|
visibility = ["//visibility:public"],
|
|
)
|