blob: 873fb4a35c589a18a4bae949c563982ed52cb6bc [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 Pesavento725d3fc2021-11-19 23:37:03 -05008 tmpdir = 'TMP_TESTS_PATH="%s"' % bld.bldnode.make_node('tmp-files')
Davide Pesavento55d98602019-10-15 22:40:05 -04009 bld.program(
10 target='../unit-tests',
11 name='unit-tests',
12 source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp']),
Davide Pesavento725d3fc2021-11-19 23:37:03 -050013 use='ndn-cert',
Davide Pesavento55d98602019-10-15 22:40:05 -040014 includes='.',
Davide Pesavento725d3fc2021-11-19 23:37:03 -050015 defines=[tmpdir],
Davide Pesavento55d98602019-10-15 22:40:05 -040016 install_path=None)