Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
2 | top = '..' | ||||
3 | |||||
4 | def build(bld): | ||||
5 | if not bld.env['WITH_TESTS']: | ||||
6 | return | ||||
7 | |||||
8 | tools = bld.path.ant_glob('*', dir=True, src=False) | ||||
9 | |||||
10 | bld(target='../unit-tests', | ||||
11 | features='cxx cxxprogram', | ||||
12 | source=bld.path.ant_glob('**/*.cpp'), | ||||
13 | use=['core-objects'] + ['%s-objects' % tool for tool in tools], | ||||
14 | headers='../common.hpp boost-test.hpp', | ||||
15 | ) |