blob: f5ebcc84f01e34108d465a333c3b6dbd1b545a59 [file] [log] [blame]
Alexander Afanasyeva1ae0a12014-01-28 15:21:02 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
Alexander Afanasyev31ae15f2014-01-29 20:58:00 -08003from waflib import Utils
4
Alexander Afanasyeva1ae0a12014-01-28 15:21:02 -08005top = '..'
6
7def build(bld):
Alexander Afanasyevd409d592014-01-28 18:36:38 -08008 unittests = bld.program (
Alexander Afanasyev19508852014-01-29 01:01:51 -08009 target="../unit-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']),
13 use='ndn-cpp-dev',
Alexander Afanasyevb1db7c62014-04-03 14:57:25 -070014 includes='.',
Alexander Afanasyev5e1288e2014-03-28 11:11:48 -070015 install_path=None,
Alexander Afanasyevd409d592014-01-28 18:36:38 -080016 )
Alexander Afanasyev31ae15f2014-01-29 20:58:00 -080017
18 if Utils.unversioned_sys_platform () == "darwin":
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')
Alexander Afanasyeve2dcdfd2014-02-07 15:53:28 -080023
24 if bld.env['WITH_PCH']:
Alexander Afanasyevc8823bc2014-02-09 19:33:33 -080025 unittests.pch = "test-all.hpp"