mirror of
https://github.com/firebase/nanopb
synced 2026-11-10 22:35:59 +05:45
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.
14 lines
349 B
Python
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)
|
|
|