mirror of
https://github.com/google/pebble.git
synced 2025-05-29 06: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/float_double_conversion/SConscript
vendored
Normal file
21
third_party/nanopb/tests/float_double_conversion/SConscript
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
Import("env")
|
||||
|
||||
env.NanopbProto("doublemsg")
|
||||
|
||||
# Define the compilation options
|
||||
opts = env.Clone()
|
||||
opts.Append(CPPDEFINES = {'PB_CONVERT_DOUBLE_FLOAT': 1})
|
||||
|
||||
if opts.get('EMBEDDED') == 'AVR':
|
||||
opts.Append(CFLAGS = "-Wno-overflow")
|
||||
|
||||
# Build new version of core
|
||||
strict = opts.Clone()
|
||||
strict.Append(CFLAGS = strict['CORECFLAGS'])
|
||||
strict.Object("pb_decode_fldbl.o", "$NANOPB/pb_decode.c")
|
||||
strict.Object("pb_encode_fldbl.o", "$NANOPB/pb_encode.c")
|
||||
strict.Object("pb_common_fldbl.o", "$NANOPB/pb_common.c")
|
||||
|
||||
# Build and run test
|
||||
test = opts.Program(["float_double_conversion.c", "doublemsg.pb.c", "pb_encode_fldbl.o", "pb_decode_fldbl.o", "pb_common_fldbl.o"])
|
||||
env.RunTest(test)
|
Loading…
Add table
Add a link
Reference in a new issue