blob: c5933187608ec56ea721eeaf6085d1cc469a1e9b [file] [log] [blame]
Yingdi Yuce94f352015-04-11 19:17:01 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2from waflib import Utils
3
4top = '..'
5
6def build(bld):
Alexander Afanasyev9091d832018-04-18 17:21:08 -04007 bld.objects(
Yingdi Yuce94f352015-04-11 19:17:01 -07008 target='tests-main',
Alexander Afanasyev9091d832018-04-18 17:21:08 -04009 source='main.cpp',
10 use='libndn-nac')
Yingdi Yuce94f352015-04-11 19:17:01 -070011
Alexander Afanasyev9091d832018-04-18 17:21:08 -040012 config_path = 'TMP_TESTS_PATH="%s"' % bld.bldnode.make_node('tmp-files')
13
14 bld.program(
15 target='../unit-tests',
16 name='unit-tests',
Yingdi Yuce94f352015-04-11 19:17:01 -070017 source=bld.path.ant_glob(['unit-tests/**/*.cpp']),
Alexander Afanasyev9091d832018-04-18 17:21:08 -040018 use='tests-main',
Yingdi Yuce94f352015-04-11 19:17:01 -070019 includes=['.'],
20 install_path=None,
Alexander Afanasyev9091d832018-04-18 17:21:08 -040021 defines=[config_path])