chunks: segmented file transfer
refs #3071
Change-Id: I88e4fc1a8e33a0d61a95e2291cccc7b998647489
diff --git a/tools/chunks/wscript b/tools/chunks/wscript
new file mode 100644
index 0000000..56ff392
--- /dev/null
+++ b/tools/chunks/wscript
@@ -0,0 +1,30 @@
+# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+top = '../..'
+
+def build(bld):
+
+ bld(features='cxx',
+ name='ndncatchunks-objects',
+ source=bld.path.ant_glob('catchunks/*.cpp', excl='catchunks/ndncatchunks.cpp'),
+ use='core-objects')
+
+ bld(features='cxx cxxprogram',
+ target='../../bin/ndncatchunks',
+ source='catchunks/ndncatchunks.cpp',
+ use='ndncatchunks-objects')
+
+ bld(features='cxx',
+ name='ndnputchunks-objects',
+ source=bld.path.ant_glob('putchunks/*.cpp', excl='putchunks/ndnputchunks.cpp'),
+ use='core-objects')
+
+ bld(features='cxx cxxprogram',
+ target='../../bin/ndnputchunks',
+ source='putchunks/ndnputchunks.cpp',
+ use='ndnputchunks-objects')
+
+ ## (for unit tests)
+
+ bld(name='chunks-objects',
+ use='ndncatchunks-objects ndnputchunks-objects')
+