build: add `--without-tools` configure option
Change-Id: Idc10aea140c8863a23dccbb38be1b936d5d0302b
diff --git a/tests/wscript b/tests/wscript
index 89ac662..55295bd 100644
--- a/tests/wscript
+++ b/tests/wscript
@@ -1,15 +1,14 @@
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+
top = '..'
def build(bld):
- if not bld.env.WITH_TESTS:
- return
-
tmpdir = 'UNIT_TESTS_TMPDIR="%s"' % bld.bldnode.make_node('tmp-files')
bld.program(
- target='../unit-tests',
+ target=f'{top}/unit-tests',
name='unit-tests',
source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp']),
- use='ndn-cert',
+ use='libndn-cert',
defines=[tmpdir],
+ includes=top,
install_path=None)