mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-13 06:57:07 +03:00
add nanopb (manual)
This commit is contained in:
21
components/spotify/cspot/bell/nanopb/tests/map/SConscript
Normal file
21
components/spotify/cspot/bell/nanopb/tests/map/SConscript
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'])
|
||||
|
||||
Reference in New Issue
Block a user