aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/tests/regression/issue_172/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nanopb/tests/regression/issue_172/SConscript')
-rw-r--r--third_party/nanopb/tests/regression/issue_172/SConscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/nanopb/tests/regression/issue_172/SConscript b/third_party/nanopb/tests/regression/issue_172/SConscript
new file mode 100644
index 0000000000..49c919e805
--- /dev/null
+++ b/third_party/nanopb/tests/regression/issue_172/SConscript
@@ -0,0 +1,16 @@
+# Verify that _size define is generated for messages that have
+# includes from another directory.
+
+Import('env')
+
+incpath = env.Clone()
+incpath.Append(PROTOCPATH="#regression/issue_172/submessage")
+incpath.Append(CPPPATH="$BUILD/regression/issue_172/submessage")
+incpath.NanopbProto('test')
+incpath.NanopbProto(['submessage/submessage', 'submessage/submessage.options'])
+
+p = incpath.Program(["msg_size.c",
+ "test.pb.c",
+ "submessage/submessage.pb.c"])
+
+