add nanopb (manual)

This commit is contained in:
Philippe G
2022-01-04 11:01:14 -08:00
parent 06b637c55b
commit 39f5a81238
554 changed files with 36793 additions and 3831 deletions

View File

@@ -0,0 +1,21 @@
# Example / test for handling 'map' type using the backwards compatibility
# in protobuf specification:
# https://developers.google.com/protocol-buffers/docs/proto3#maps
Import('env')
env.NanopbProto(['map', 'map.options'])
enc = env.Program(['encode_map.c',
'map.pb.c',
'$COMMON/pb_encode.o',
'$COMMON/pb_common.o'])
dec = env.Program(['decode_map.c',
'map.pb.c',
'$COMMON/pb_decode.o',
'$COMMON/pb_common.o'])
env.RunTest("message.pb", enc)
env.RunTest("message.txt", [dec, 'message.pb'])