aboutsummaryrefslogtreecommitdiff
path: root/pw_protobuf
diff options
context:
space:
mode:
authorNathaniel Brough <nathaniel.brough@gmail.com>2022-01-11 14:35:43 +0800
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-02-04 20:39:01 +0000
commit059e10ae69cfb22ef53731dee2ef374d341beab0 (patch)
treea8023357a14e49fcd2770eba6b125e7c4735f7cc /pw_protobuf
parente4ce994be88911bfac16c688e8fd000e2f5a695f (diff)
downloadpigweed-059e10ae69cfb22ef53731dee2ef374d341beab0.tar.gz
pw_protobuf_compiler: Adds Nanopb to Bazel build
This change adds support for Protobuf code generation in the Bazel build using the Nanopb plugin. As a side affect this also fixes a number of packages, however requires some renaming to prevent clashes. Fixed: 507 Bug: 317 Change-Id: Ie4a25a9cc7a7b550b4ef73e67f71308e48bdbc4c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/78020 Reviewed-by: Ted Pudlik <tpudlik@google.com> Commit-Queue: Ted Pudlik <tpudlik@google.com>
Diffstat (limited to 'pw_protobuf')
-rw-r--r--pw_protobuf/BUILD.bazel9
1 files changed, 6 insertions, 3 deletions
diff --git a/pw_protobuf/BUILD.bazel b/pw_protobuf/BUILD.bazel
index 711ac97d6..97c4b44c0 100644
--- a/pw_protobuf/BUILD.bazel
+++ b/pw_protobuf/BUILD.bazel
@@ -178,8 +178,11 @@ proto_library(
)
pw_proto_library(
- name = "codegen_test_protos_pwpb",
- deps = [":codegen_test_proto"],
+ name = "codegen_test_proto_cc",
+ deps = [
+ ":codegen_test_proto",
+ ":common_protos",
+ ],
)
pw_cc_test(
@@ -188,7 +191,7 @@ pw_cc_test(
"codegen_test.cc",
],
deps = [
- ":codegen_test_protos_pwpb",
+ ":codegen_test_proto_cc.pwpb",
":pw_protobuf",
"//pw_span",
"//pw_unit_test",