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,18 @@
# Verify that _size define is generated for messages that have
# includes from another directory.
Import('env')
incpath = env.Clone()
incpath.Append(PROTOCPATH="#regression/issue_172/submessage")
incpath.Append(CPPPATH="$BUILD/regression/issue_172/submessage")
incpath.Append(CPPPATH="$BUILD/regression/issue_172/")
incpath.NanopbProto('test')
incpath.NanopbProto(['submessage/submessage', 'submessage/submessage.options'])
p = incpath.Program(["msg_size.c",
"test.pb.c",
"submessage/submessage.pb.c",
'$COMMON/pb_common.o'])

View File

@@ -0,0 +1,9 @@
#include "test.pb.h"
PB_STATIC_ASSERT(testmessage_size >= 1+1+1+1+16, TESTMESSAGE_SIZE_IS_WRONG)
int main()
{
return 0;
}

View File

@@ -0,0 +1 @@
submessage.data max_size: 16

View File

@@ -0,0 +1,4 @@
syntax = "proto2";
message submessage {
required bytes data = 1;
}

View File

@@ -0,0 +1,6 @@
syntax = "proto2";
import "submessage.proto";
message testmessage {
optional submessage sub = 1;
}