blob: d5d9af7722ac10bf69451c14217e726dc37d58d9 [file] [log] [blame]
Alexander Afanasyev8b1674a2014-05-15 00:58:43 -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(
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)