blob: e44f2a466c0a433eb08e73de25f878ebd1f6dcc9 [file] [log] [blame]
Junxiao Shi2713a3b2015-06-22 16:19:05 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2top = '..'
3
4def build(bld):
5 if not bld.env['WITH_TESTS']:
6 return
7
Junxiao Shi2713a3b2015-06-22 16:19:05 -07008 bld(target='../unit-tests',
9 features='cxx cxxprogram',
Shock Jiang0f0bc4b2015-06-22 15:11:30 -070010 source=bld.path.ant_glob(['*.cpp'] + ['%s/**/*.cpp' % tool for tool in bld.env['BUILD_TOOLS']]),
11 use=['core-objects'] + ['%s-objects' % tool for tool in bld.env['BUILD_TOOLS']],
Junxiao Shi2713a3b2015-06-22 16:19:05 -070012 headers='../common.hpp boost-test.hpp',
Yingdi Yu77627ab2015-07-21 16:13:49 -070013 defines='TMP_TESTS_PATH=\"%s/tmp-tests\"' % bld.bldnode,
Junxiao Shi2713a3b2015-06-22 16:19:05 -070014 )