blob: 7357bb7cfed5a7214d7196c0c9cbc5c19418aa49 [file] [log] [blame]
Alexander Afanasyev3fd14f02014-03-26 14:34:39 -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):
Davide Pesaventoed2f4762019-01-25 00:40:46 -05008 if not bld.env['WITH_TESTS']:
9 return
Shuo Chenca329182014-03-19 18:05:18 -070010
Davide Pesaventoed2f4762019-01-25 00:40:46 -050011 bld.objects(target='tests-base',
12 source=bld.path.ant_glob('*.cpp'),
13 use='repo-objects')
Shuo Chenca329182014-03-19 18:05:18 -070014
Davide Pesaventoed2f4762019-01-25 00:40:46 -050015 bld.program(name='unit-tests',
16 target='../unit-tests',
17 source=bld.path.ant_glob('unit/**/*.cpp'),
18 use='tests-base',
19 install_path=None)
20
21 bld.program(name='integrated-tests',
22 target='../integrated-tests',
23 source=bld.path.ant_glob('integrated/**/*.cpp'),
24 use='tests-base',
25 install_path=None)