Alexander Afanasyev | 4ffcff2 | 2014-09-02 15:39:20 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
Shock Jiang | 3c72318 | 2014-09-10 16:41:18 -0700 | [diff] [blame] | 3 | from waflib import Utils, Context |
Alexander Afanasyev | 4ffcff2 | 2014-09-02 15:39:20 -0700 | [diff] [blame] | 4 | |
| 5 | top = '..' |
| 6 | |
| 7 | def build(bld): |
| 8 | if bld.env['WITH_TESTS']: |
| 9 | unit_tests = bld.program( |
| 10 | target='../unit-tests', |
| 11 | features='cxx cxxprogram', |
| 12 | source=bld.path.ant_glob(['**/*.cpp']), |
| 13 | use='ndns-objects', |
| 14 | install_path=None, |
Shock Jiang | 3c72318 | 2014-09-10 16:41:18 -0700 | [diff] [blame] | 15 | defines="BUILDDIR=\"%s\"" % Context.out_dir, |
Alexander Afanasyev | 4ffcff2 | 2014-09-02 15:39:20 -0700 | [diff] [blame] | 16 | ) |