Alexander Afanasyev | 77f6ae1 | 2018-06-14 17:54:17 -0400 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | from waflib import Utils |
| 3 | |
| 4 | top = '..' |
| 5 | |
| 6 | def build(bld): |
| 7 | bld.objects( |
| 8 | target='tests-main', |
| 9 | source='main.cpp', |
| 10 | use='libndn-nac') |
| 11 | |
| 12 | config_path = 'TMP_TESTS_PATH="%s"' % bld.bldnode.make_node('tmp-files') |
| 13 | |
| 14 | bld.program( |
| 15 | target='../unit-tests', |
| 16 | name='unit-tests', |
| 17 | source=bld.path.ant_glob('**/*.cpp', excl='main.cpp'), |
| 18 | use='libndn-nac tests-main', |
| 19 | includes=['.'], |
| 20 | install_path=None, |
| 21 | defines=[config_path]) |