Alexander Afanasyev | 8b1674a | 2014-05-15 00:58:43 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | from waflib import Utils |
| 4 | |
| 5 | top = '..' |
| 6 | |
| 7 | def build(bld): |
| 8 | unittests = bld( |
| 9 | target="integrated-test-objects", |
| 10 | name="integrated-test-objects", |
| 11 | features="cxx", |
| 12 | source=bld.path.ant_glob(['**/*.cpp'], |
| 13 | excl=['main.cpp', '**/*-osx.cpp', '**/*-sqlite3.cpp']), |
| 14 | use='tests-base', |
| 15 | includes='.', |
| 16 | install_path=None, |
| 17 | ) |
| 18 | |
| 19 | if bld.env['HAVE_OSX_SECURITY']: |
| 20 | unittests.source += bld.path.ant_glob('**/*-osx.cpp') |
| 21 | |
| 22 | # In case we want to make it optional later |
| 23 | unittests.source += bld.path.ant_glob('**/*-sqlite3.cpp') |
| 24 | |
| 25 | bld.program( |
| 26 | target="../integrated-tests", |
| 27 | use="integrated-test-objects", |
| 28 | source="main.cpp", |
| 29 | install_path=None) |