SConscript 594 B

123456789101112131415161718
  1. # Verify that _size define is generated for messages that have
  2. # includes from another directory.
  3. Import('env')
  4. incpath = env.Clone()
  5. incpath.Append(PROTOCPATH="#regression/issue_172/submessage")
  6. incpath.Append(CPPPATH="$BUILD/regression/issue_172/submessage")
  7. incpath.Append(CPPPATH="$BUILD/regression/issue_172/")
  8. incpath.NanopbProto('test')
  9. incpath.NanopbProto(['submessage/submessage', 'submessage/submessage.options'])
  10. p = incpath.Program(["msg_size.c",
  11. "test.pb.c",
  12. "submessage/submessage.pb.c",
  13. '$COMMON/pb_common.o'])