Skip to content

Commit

Permalink
pw_rpc: Add --no-experimental-editions to protobuf compiler options
Browse files Browse the repository at this point in the history
The underlying option is not supported currently in Android, so we
disable it with this flag.

Change-Id: I9d2572555064e0f663e3b5cc408e46a3b11e529d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/238252
Lint: Lint 🤖 <[email protected]>
Docs-Not-Needed: Matthew Sedam <[email protected]>
Commit-Queue: Matthew Sedam <[email protected]>
Reviewed-by: Carlos Chinchilla <[email protected]>
  • Loading branch information
Matthew Sedam authored and CQ Bot Account committed Sep 26, 2024
1 parent 1dc9a78 commit bbd82e3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pw_log/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ genrule {
"--sources $(location :pw_log_log_proto_with_prefix) " +
"--language pwpb " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) && " +
// TODO(b/308678575) - Avoid making an extra copy of the created file.
"python3 -c \"import os; import shutil; " +
Expand Down Expand Up @@ -125,6 +126,7 @@ genrule {
"--sources $(location :pw_log_log_proto_with_prefix) " +
"--language pwpb_rpc " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) && " +
// TODO(b/308678575) - Avoid making an extra copy of the created file.
"python3 -c \"import os; import shutil; " +
Expand Down Expand Up @@ -158,6 +160,7 @@ genrule {
"--sources $(location :pw_log_log_proto_with_prefix) " +
"--language raw_rpc " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) && " +
// TODO(b/308678575) - Avoid making an extra copy of the created file.
"python3 -c \"import os; import shutil; " +
Expand Down
3 changes: 3 additions & 0 deletions pw_protobuf/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ genrule {
"--sources $(in) " +
"--language nanopb " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) ",
out: [
"pw_protobuf_protos/common.pb.h",
Expand Down Expand Up @@ -147,6 +148,7 @@ genrule {
"--sources $(in) " +
"--language pwpb " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) ",
out: [
"pw_protobuf_protos/common.pwpb.h",
Expand Down Expand Up @@ -177,6 +179,7 @@ genrule {
"--sources $${proto_files} " +
"--language pwpb " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) ",
out: [
"google/protobuf/descriptor.pwpb.h",
Expand Down
12 changes: 12 additions & 0 deletions pw_rpc/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ genrule {
"--sources $(in) " +
"--language pwpb " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) ",
out: [
"pw_rpc/internal/packet.pwpb.h",
Expand All @@ -203,6 +204,7 @@ genrule {
"--language python " +
"--no-generate-type-hints " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
out: [
"packet_pb2.py",
Expand Down Expand Up @@ -237,6 +239,7 @@ genrule_defaults {
"--language nanopb " +
"--sources $${proto_files} " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand Down Expand Up @@ -278,6 +281,7 @@ genrule_defaults {
"--language nanopb " +
"--sources $${proto_files} " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand All @@ -302,6 +306,7 @@ genrule_defaults {
"--language nanopb_rpc " +
"--sources $(in) " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand Down Expand Up @@ -343,6 +348,7 @@ genrule_defaults {
"--language nanopb_rpc " +
"--sources $${proto_files} " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand All @@ -363,6 +369,7 @@ genrule_defaults {
"--language raw_rpc " +
"--sources $(in) " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand Down Expand Up @@ -393,6 +400,7 @@ genrule_defaults {
"--language raw_rpc " +
"--sources $${proto_files} " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand All @@ -413,6 +421,7 @@ genrule_defaults {
"--language pwpb " +
"--sources $(in) " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand Down Expand Up @@ -443,6 +452,7 @@ genrule_defaults {
"--language pwpb " +
"--sources $${proto_files} " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand All @@ -463,6 +473,7 @@ genrule_defaults {
"--language pwpb_rpc " +
"--sources $(in) " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand Down Expand Up @@ -493,6 +504,7 @@ genrule_defaults {
"--language pwpb_rpc " +
"--sources $${proto_files} " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc)",
tools: [
"aprotoc",
Expand Down
1 change: 1 addition & 0 deletions pw_tokenizer/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ genrule {
"--sources $(location pw_tokenizer_proto/options.proto) " +
"--language pwpb " +
"--no-experimental-proto3-optional " +
"--no-experimental-editions " +
"--protoc=$(location aprotoc) ",
out: [
"pw_tokenizer_proto/options.pwpb.h",
Expand Down

0 comments on commit bbd82e3

Please sign in to comment.