Skip to content
Snippets Groups Projects
Commit 70699f3b authored by Petteri Aimonen's avatar Petteri Aimonen
Browse files

Add testcase for issue #203

parent be903082
No related branches found
No related tags found
No related merge requests found
# Regression test for issue with multiple files generated at once
Import('env')
env.Command(['file1.pb.c', 'file1.pb.h', 'file2.pb.c', 'file2.pb.h'], ['file1.proto', 'file2.proto'],
env['NANOPB_PROTO_CMD'])
env.Object('file1.pb.c')
env.Object('file2.pb.c')
syntax = "proto2";
message SubMessage1 {
required int32 foo = 1;
}
message Message1 {
required SubMessage1 bar = 1;
}
syntax = "proto2";
message SubMessage2 {
required int32 foo = 1;
}
message Message2 {
required SubMessage2 bar = 1;
}
......@@ -118,7 +118,7 @@ def generate(env):
env.SetDefault(PROTOCPATH = ['.', os.path.join(env['NANOPB'], 'generator', 'proto')])
env.SetDefault(NANOPB_PROTO_CMD = '$PROTOC $PROTOC_OPTS --nanopb_out=. $SOURCE')
env.SetDefault(NANOPB_PROTO_CMD = '$PROTOC $PROTOCFLAGS --nanopb_out=. $SOURCES')
env['BUILDERS']['NanopbProto'] = _nanopb_proto_builder
def exists(env):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment