[bazel] Confusion about gen_reflections
in flatbuffer_cc_library
bazel rule
#8029
-
I'm wondering if setting
After building a target that relies this rule, I could not find any files with the *.bfbs extension. I did see that the headers Thank you for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
gen_reflections should work; however, if you look at how the |
Beta Was this translation helpful? Give feedback.
-
@jameskuszmaul-brt Thank you for your quick reply! I tried changing I'll also try to emulate the structure of the repo you linked to |
Beta Was this translation helpful? Give feedback.
-
@jameskuszmaul-brt Thank you very much for your help and patience! I tried adding
This generated all For PointCloud.bfbs, the generated file path is: This may not be ideal, since bazel generates all *.bfbs files although we only need a few *.bfbs files. However this was a method I found that worked. Please feel free to suggest something better. Thanks again for all your help! |
Beta Was this translation helpful? Give feedback.
That's not how bazel build rule naming works--you probably meant to depend on
@foxglove-flatbuffers//:foxglove-flatbuffers_reflection_out
. Do abazel query @foxglove-flatbuffers//...
to see what rules you have available. See https://bazel.build/concepts/labels