Alexander Afanasyev | 3fd14f0 | 2014-03-26 14:34:39 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | from waflib import Utils |
| 4 | |
| 5 | top = '..' |
| 6 | |
| 7 | def build(bld): |
Shuo Chen | ca32918 | 2014-03-19 18:05:18 -0700 | [diff] [blame^] | 8 | if bld.env['WITH_TESTS']: |
| 9 | tests_base = bld( |
| 10 | target='tests-base', |
| 11 | name='tests-base', |
| 12 | features='cxx', |
| 13 | source=bld.path.ant_glob(['*.cpp']), |
| 14 | use='ndn-repo-objects', |
| 15 | ) |
| 16 | |
| 17 | # unit tests |
| 18 | unit_tests = bld.program( |
| 19 | target='../unit-tests', |
| 20 | features='cxx cxxprogram', |
| 21 | source=bld.path.ant_glob(['unit/**/*.cpp']), |
| 22 | use='tests-base', |
| 23 | install_path=None, |
| 24 | ) |
| 25 | |
| 26 | # integrated tests |
| 27 | unit_tests_nfd = bld.program( |
| 28 | target='../integrated-tests', |
| 29 | features='cxx cxxprogram', |
| 30 | source=bld.path.ant_glob(['integrated/**/*.cpp']), |
| 31 | use='tests-base', |
| 32 | install_path=None, |
| 33 | ) |