build: add waf-tool to simplify building with AddressSanitizer & friends
Change-Id: If36e52f5e49d94ad5846165c50504d06d7d3c4d0
Refs: #2589
diff --git a/tools/dissect/wscript b/tools/dissect/wscript
index 070ece2..373f6a4 100644
--- a/tools/dissect/wscript
+++ b/tools/dissect/wscript
@@ -7,11 +7,9 @@
source=bld.path.ant_glob('*.cpp', excl='main.cpp'),
includes='.',
export_includes='.',
- use='core-objects',
- )
+ use='core-objects')
bld(features='cxx cxxprogram',
target='../../bin/ndn-dissect',
source='main.cpp',
- use='dissect-objects',
- )
+ use='dissect-objects')
diff --git a/tools/dump/wscript b/tools/dump/wscript
index 32b3695..946b296 100644
--- a/tools/dump/wscript
+++ b/tools/dump/wscript
@@ -25,8 +25,8 @@
conf.check(header_name="sys/bitypes.h", mandatory=False)
conf.check(fragment=ATTRIBUTE_CHECK, msg="Checking for __attribute__", mandatory=False)
- conf.check(header_name=["sys/types.h", "sys/time.h", "time.h"], define="TIME_WITH_SYS_TIME",
- mandatory=False)
+ conf.check(header_name=["sys/types.h", "sys/time.h", "time.h"],
+ define="TIME_WITH_SYS_TIME", mandatory=False)
conf.check_cfg(path='pcap-config',
package="libpcap", args=['--libs', '--cflags'],
@@ -38,8 +38,7 @@
source=bld.path.ant_glob('*.cpp', excl='main.cpp'),
includes='.',
export_includes='.',
- use='core-objects BOOST PCAP',
- )
+ use='core-objects BOOST PCAP')
bld(features='cxx cxxprogram',
target='../../bin/ndndump',
diff --git a/tools/peek/wscript b/tools/peek/wscript
index 99b874e..45679a2 100644
--- a/tools/peek/wscript
+++ b/tools/peek/wscript
@@ -6,12 +6,10 @@
features='cxx',
target='../../bin/ndnpeek',
source='ndn-peek.cpp',
- use='core-objects',
- )
+ use='core-objects')
bld.program(
features='cxx',
target='../../bin/ndnpoke',
source='ndn-poke.cpp',
- use='core-objects',
- )
+ use='core-objects')
diff --git a/tools/pib/wscript b/tools/pib/wscript
index 3e82b60..344cbaf 100644
--- a/tools/pib/wscript
+++ b/tools/pib/wscript
@@ -2,18 +2,14 @@
top = '../..'
def build(bld):
-
bld(features=['cxx'],
name="pib-objects",
target="pib-objects",
source=bld.path.ant_glob('**/*.cpp', excl=['ndn-pib.cpp']),
use='core-objects',
- install_path=None,
- )
-
+ install_path=None)
bld(features=['cxx', 'cxxprogram'],
target='../../bin/ndn-pib',
source='ndn-pib.cpp',
- use='pib-objects',
- )
+ use='pib-objects')