| # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| # core objects that can be shared between unit and integrated tests |
| bld.objects(target='tests-base', |
| source=bld.path.ant_glob('*.cpp', excl=['main.cpp']), |
| headers=['../src/common-pch.hpp', 'boost-test.hpp'], |
| config_path = 'UNIT_TEST_CONFIG_PATH="%s"' % bld.bldnode.make_node('tmp-files') |
| src = bld.path.ant_glob(['unit-tests/**/*.cpp'], |
| excl=['**/*-osx.t.cpp', '**/*-sqlite3.t.cpp']) |
| if bld.env['HAVE_OSX_FRAMEWORKS']: |
| src += bld.path.ant_glob('unit-tests/**/*-osx.t.cpp') |
| # In case we want to make it optional later |
| src += bld.path.ant_glob('unit-tests/**/*-sqlite3.t.cpp') |
| bld.objects(target='unit-test-objects', |
| bld.program(target='../unit-tests', |
| bld.recurse('integrated') |