Zhiyi Zhang | 63589b8 | 2020-10-10 10:27:09 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
2 | top = '..' | ||||
3 | |||||
4 | def build(bld): | ||||
5 | if not bld.env.WITH_TESTS: | ||||
6 | return | ||||
7 | |||||
8 | tmp_path = 'TMP_TESTS_PATH="%s"' % bld.bldnode.make_node('tmp-tests') | ||||
9 | |||||
10 | bld.program( | ||||
11 | target='../unit-tests', | ||||
12 | name='unit-tests', | ||||
13 | source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp']), | ||||
14 | use='ndn-cert BOOST', | ||||
15 | includes='.', | ||||
16 | defines=[tmp_path], | ||||
17 | install_path=None) |