blob: 384dbba1bf89415efdc3e0cb34acee0f83160209 [file] [log] [blame]
Yingdi Yub20ae812014-08-15 11:20:19 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2from waflib import Utils
3
4top = '..'
5
6def build(bld):
Yingdi Yuf7ede412014-08-30 20:37:52 -07007 test_main = bld(
8 target='tests-main',
9 name='tests-main',
Yingdi Yub20ae812014-08-15 11:20:19 -070010 features='cxx',
Yingdi Yudea99be2014-08-15 10:45:43 -070011 source=bld.path.ant_glob(['main.cpp']),
Yingdi Yub20ae812014-08-15 11:20:19 -070012 use='ChronoSync',
13 )
14
15 unit_test = bld.program(
16 target="../unit-tests",
17 source=bld.path.ant_glob(['unit-tests/**/*.cpp']),
18 features=['cxx', 'cxxprogram'],
Yingdi Yuf7ede412014-08-30 20:37:52 -070019 use='ChronoSync tests-main LOG4CXX',
20 includes=['.'],
21 install_path=None,
22 )
23
24 integrated_test = bld.program(
25 target="../integrated-tests",
26 source=bld.path.ant_glob(['integrated-tests/**/*.cpp']),
27 features=['cxx', 'cxxprogram'],
28 use='ChronoSync tests-main',
Yingdi Yub20ae812014-08-15 11:20:19 -070029 includes=['.'],
30 install_path=None,
31 )