build: add waf-tool to simplify building with AddressSanitizer & friends

Change-Id: If36e52f5e49d94ad5846165c50504d06d7d3c4d0
Refs: #2589
This commit is contained in:
Davide Pesavento committed 2016-08-14 11:34:09 +02:00
1 parent 244feac1d1
commit 89d9175e7c
8 files changed
+41 -29

No files matched your search

+3 -4
View File
@@ -25,8 +25,8 @@ def configure(conf):
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 @@ def build(bld):
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',