Alexander Afanasyev | a1ae0a1 | 2014-01-28 15:21:02 -0800 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
Alexander Afanasyev | 31ae15f | 2014-01-29 20:58:00 -0800 | [diff] [blame] | 3 | from waflib import Utils |
| 4 | |
Alexander Afanasyev | a1ae0a1 | 2014-01-28 15:21:02 -0800 | [diff] [blame] | 5 | top = '..' |
| 6 | |
| 7 | def build(bld): |
Alexander Afanasyev | d409d59 | 2014-01-28 18:36:38 -0800 | [diff] [blame] | 8 | unittests = bld.program ( |
Alexander Afanasyev | 1950885 | 2014-01-29 01:01:51 -0800 | [diff] [blame] | 9 | target="../unit-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 | d409d59 | 2014-01-28 18:36:38 -0800 | [diff] [blame] | 15 | ) |
Alexander Afanasyev | 31ae15f | 2014-01-29 20:58:00 -0800 | [diff] [blame] | 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') |
Alexander Afanasyev | e2dcdfd | 2014-02-07 15:53:28 -0800 | [diff] [blame] | 22 | |
| 23 | if bld.env['WITH_PCH']: |
Alexander Afanasyev | c8823bc | 2014-02-09 19:33:33 -0800 | [diff] [blame] | 24 | unittests.pch = "test-all.hpp" |