blob: e44f2a466c0a433eb08e73de25f878ebd1f6dcc9 [file] [log] [blame]
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
top = '..'
def build(bld):
if not bld.env['WITH_TESTS']:
return
bld(target='../unit-tests',
features='cxx cxxprogram',
source=bld.path.ant_glob(['*.cpp'] + ['%s/**/*.cpp' % tool for tool in bld.env['BUILD_TOOLS']]),
use=['core-objects'] + ['%s-objects' % tool for tool in bld.env['BUILD_TOOLS']],
headers='../common.hpp boost-test.hpp',
defines='TMP_TESTS_PATH=\"%s/tmp-tests\"' % bld.bldnode,
)