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']), |
Alexander Afanasyev | 766cea7 | 2014-04-24 19:16:42 -0700 | [diff] [blame] | 13 | use='ndn-cxx', |
Alexander Afanasyev | b1db7c6 | 2014-04-03 14:57:25 -0700 | [diff] [blame] | 14 | includes='.', |
Alexander Afanasyev | 5e1288e | 2014-03-28 11:11:48 -0700 | [diff] [blame] | 15 | install_path=None, |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 16 | ) |
| 17 | |
Alexander Afanasyev | 59d67a5 | 2014-04-03 16:09:31 -0700 | [diff] [blame] | 18 | if bld.env['HAVE_OSX_SECURITY']: |
Alexander Afanasyev | aa0e7da | 2014-03-17 14:37:33 -0700 | [diff] [blame] | 19 | unittests.source += bld.path.ant_glob('**/*-osx.cpp') |
| 20 | |
| 21 | # In case we want to make it optional later |
| 22 | unittests.source += bld.path.ant_glob('**/*-sqlite3.cpp') |
| 23 | |
| 24 | if bld.env['WITH_PCH']: |
| 25 | unittests.pch = "test-all.hpp" |