blob: 75f6b5cc7d92995d7122a188541f9e93d07078fb [file] [log] [blame]
Alexander Afanasyevaa0e7da2014-03-17 14:37:33 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3from waflib import Utils
4
5top = '..'
6
7def build(bld):
8 unittests = bld.program (
9 target="../integrated-tests",
Alexander Afanasyev5e1288e2014-03-28 11:11:48 -070010 features="cxx cxxprogram",
11 source=bld.path.ant_glob(['**/*.cpp'],
12 excl=['**/*-osx.cpp', '**/*-sqlite3.cpp']),
Alexander Afanasyev766cea72014-04-24 19:16:42 -070013 use='ndn-cxx',
Alexander Afanasyevb1db7c62014-04-03 14:57:25 -070014 includes='.',
Alexander Afanasyev5e1288e2014-03-28 11:11:48 -070015 install_path=None,
Alexander Afanasyevaa0e7da2014-03-17 14:37:33 -070016 )
17
Alexander Afanasyev59d67a52014-04-03 16:09:31 -070018 if bld.env['HAVE_OSX_SECURITY']:
Alexander Afanasyevaa0e7da2014-03-17 14:37:33 -070019 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"