tools: nfdc
Change-Id: Ida7d3b4264fd3452acf69b443150e3ad639e3da9
diff --git a/wscript b/wscript
index 3562e45..8591b35 100644
--- a/wscript
+++ b/wscript
@@ -2,6 +2,7 @@
VERSION='0.1'
from waflib import Build, Logs, Utils, Task, TaskGen, Configure
+import os
def options(opt):
opt.load('compiler_cxx')
@@ -83,8 +84,15 @@
source = 'daemon/main.cpp',
use = 'nfd-objects',
includes = [".", "daemon"],
- )
-
+ )
+
+ for app in bld.path.ant_glob('tools/*.cpp'):
+ bld(features=['cxx', 'cxxprogram'],
+ target = 'bin/%s' % (str(app.change_ext(''))),
+ source = ['tools/%s' % (str(app))],
+ use = 'BOOST NDN_CPP RT',
+ )
+
# Unit tests
if bld.env['WITH_TESTS']:
unit_tests = unittests = bld.program (
@@ -126,3 +134,4 @@
bld.fatal("ERROR: cannot build documentation (`doxygen' is not found in $PATH)")
bld(features="doxygen",
doxyfile='docs/doxygen.conf')
+