Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -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.program ( |
| 9 | target="../integrated-tests", |
Alexander Afanasyev | 5e1288e | 2014-03-28 11:11:48 -0700 | [diff] [blame] | 10 | features="cxx cxxprogram", |
| 11 | source=bld.path.ant_glob(['**/*.cpp'], |
| 12 | excl=['**/*-osx.cpp', '**/*-sqlite3.cpp']), |
| 13 | use='ndn-cpp-dev', |
| 14 | install_path=None, |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | if Utils.unversioned_sys_platform () == "darwin": |
| 18 | unittests.source += bld.path.ant_glob('**/*-osx.cpp') |
| 19 | |
| 20 | # In case we want to make it optional later |
| 21 | unittests.source += bld.path.ant_glob('**/*-sqlite3.cpp') |
| 22 | |
| 23 | if bld.env['WITH_PCH']: |
| 24 | unittests.pch = "test-all.hpp" |