SConscript 537 B

1234567891011121314151617
  1. # Test that multiple .proto files don't cause name collisions.
  2. Import("env")
  3. incpath = env.Clone()
  4. incpath.Append(PROTOCPATH = '#multiple_files')
  5. incpath.Append(CPPPATH = '$BUILD/multiple_files')
  6. incpath.NanopbProto(["multifile1", "multifile1.options"])
  7. incpath.NanopbProto("multifile2")
  8. incpath.NanopbProto("subdir/multifile2")
  9. test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c",
  10. "multifile2.pb.c", "subdir/multifile2.pb.c",
  11. "$COMMON/pb_common.o"])
  12. env.RunTest(test)