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,11 @@
# Regression test for #524:
# Generator fails to find dependencies from another package namespace
Import('env')
env.NanopbProto("submessage.proto")
env.NanopbProto("oneof.proto")
env.Depends("oneof.pb.c", "submessage.proto")
env.Object("oneof.pb.c")
env.Match(["oneof.pb.h", "oneof.expected"])

View File

@@ -0,0 +1 @@
mymessage_MyMessage_size.*[0-9]*$

View File

@@ -0,0 +1,15 @@
syntax = "proto3";
import "submessage.proto";
package mymessage;
message MyMessage
{
oneof foo
{
submessage.SubMessage1 msg1 = 1;
submessage.SubMessage2 msg2 = 2;
submessage.SubMessage3 msg3 = 3;
}
}

View File

@@ -0,0 +1,19 @@
syntax = "proto3";
package submessage;
message SubMessage1
{
uint32 foo = 1;
}
message SubMessage2
{
uint32 foo = 1;
}
message SubMessage3
{
uint32 foo = 1;
uint32 bar = 2;
}