build: Add build system
Change-Id: I073a9213d13c50451be5938e4e15c4a41a1166aa
diff --git a/tools/wscript b/tools/wscript
new file mode 100644
index 0000000..78b50ca
--- /dev/null
+++ b/tools/wscript
@@ -0,0 +1,19 @@
+# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+
+top = '..'
+
+def build(bld):
+ for app in bld.path.ant_glob('tools/*', dir=True):
+ if os.path.isdir(app.abspath()):
+ bld(features=['cxx', 'cxxprogram'],
+ target = '../bin/%s' % (str(app)),
+ source = app.ant_glob(['**/*.cpp']),
+ use = 'ndns-objects',
+ )
+
+ for app in bld.path.ant_glob('tools/*.cpp'):
+ bld(features=['cxxprogram'],
+ target = 'bin/%s' % (str(app.change_ext('','.cpp'))),
+ source = app,
+ use = 'ndns-objects',
+ )