mirror of
https://github.com/nanopb/nanopb.git
synced 2026-06-06 20:18:31 +00:00
By default, nanopb generates files such as `my_proto.pb.h` and `my_proto.pb.c`. Unfortunately, `cc_proto_library` also generates files with the name `my_proto.pb.h`, which can lead to confusing errors as `gcc` looks for the right include path for `nanopb` files. This PR adds a feature to bazel builds to allow an user to choose an alternate extension (`.nanopb`) so avoid this conflict.