Import of the watch repository from Pebble

This commit is contained in:
Matthieu Jeanson 2024-12-12 16:43:03 -08:00 committed by Katharine Berry
commit 3b92768480
10334 changed files with 2564465 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# Regression test for #569:
# Compilation error when dependent message size is not defined.
Import("env")
# For C compiler
env.NanopbProto("a")
env.NanopbProto("b")
env.Object("a.pb.c")
env.Object("b.pb.c")
# For C++ compiler
env.NanopbProtoCpp("a")
env.NanopbProtoCpp("b")
env.Object("a_cpp.o", "a.pb.cpp")
env.Object("b_cpp.o", "b.pb.cpp")

View file

@ -0,0 +1,14 @@
syntax = "proto3";
package a;
message AUnknown {
string data = 1;
}
message A {
oneof data {
AUnknown unknown = 1;
int32 x = 2;
}
}

View file

@ -0,0 +1,19 @@
syntax = "proto3";
import "a.proto";
package b;
message B {
oneof data {
a.AUnknown unknown = 1;
int32 x = 2;
}
}
message B2 {
oneof data {
a.AUnknown unknown = 1;
a.A unknown2 = 2;
}
}