Files
nanopb/tests/multiple_files/SConscript
T
Petteri Aimonen 0b29baf5de Make the generator understand included files (issue #165).
This will allow message sizes and enum options to be available
across the include files.

Currently searching for .options files for included files may
not work for all path combinations, this is related to issue #116.
Should probably make a pull request to protoc about that.
2015-09-12 15:47:56 +03:00

14 lines
349 B
Python

# Test that multiple .proto files don't cause name collisions.
Import("env")
incpath = env.Clone()
incpath.Append(PROTOCPATH = '#multiple_files')
incpath.NanopbProto(["multifile1", "multifile1.options"])
incpath.NanopbProto("multifile2")
test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c", "multifile2.pb.c"])
env.RunTest(test)