blob: f5a08757cf0de6a6277edfe0de2c670fd6398909 [file] [log] [blame]
Zhiyi Zhang8617a792017-01-17 16:45:56 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
Zhiyi Zhang8617a792017-01-17 16:45:56 -08002top = '..'
3
4def build(bld):
Davide Pesavento55d98602019-10-15 22:40:05 -04005 if not bld.env.WITH_TESTS:
Zhiyi Zhang8617a792017-01-17 16:45:56 -08006 return
7
Davide Pesavento55d98602019-10-15 22:40:05 -04008 tmp_path = 'TMP_TESTS_PATH="%s"' % bld.bldnode.make_node('tmp-tests')
9 bld.program(
10 target='../unit-tests',
11 name='unit-tests',
12 source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp']),
Zhiyi Zhangac421852017-04-09 11:24:33 -070013 use='ndn-cert BOOST',
Davide Pesavento55d98602019-10-15 22:40:05 -040014 includes='.',
15 defines=[tmp_path],
16 install_path=None)