mirror of
https://github.com/google/pebble.git
synced 2025-06-03 08:43:12 +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
17
third_party/nanopb/tests/regression/issue_494/SConscript
vendored
Normal file
17
third_party/nanopb/tests/regression/issue_494/SConscript
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Regression test for #494:
|
||||
# Using sizeof on anonymous union not allowed in C++, in message_size oneof sizing fallback
|
||||
|
||||
Import('env')
|
||||
import os, sys
|
||||
|
||||
# The build rules here are a bit tricky to make the normal dependency
|
||||
# resolution intentionally fail. This causes the generator to use the fallback
|
||||
# define which had the problem with C++.
|
||||
env.Command("oneof.pb", "oneof.proto", "$PROTOC $PROTOCFLAGS -I$BUILDDIR/regression/issue_494 -o$TARGETS $SOURCES")
|
||||
env.Command(["oneof.pb.c", "oneof.pb.h"], "oneof.pb", env['NANOPB_GENERATOR'] + " -D$BUILDDIR/regression/issue_494 $SOURCES")
|
||||
env.NanopbProto("submessage.proto")
|
||||
env.Depends("oneof.pb", "submessage.proto")
|
||||
|
||||
test = env.Program(["oneof_size.cc"])
|
||||
env.Depends(test, "oneof.pb.h")
|
||||
env.RunTest(test)
|
Loading…
Add table
Add a link
Reference in a new issue