mirror of
https://github.com/google/pebble.git
synced 2025-06-11 12:23:13 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
21
third_party/nanopb/tests/map/SConscript
vendored
Normal file
21
third_party/nanopb/tests/map/SConscript
vendored
Normal 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'])
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue