| # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| from waflib import Utils |
| |
| top = '..' |
| |
| def build(bld): |
| if not bld.env["WITH_TESTS"]: |
| return |
| |
| tests_main = bld( |
| target='tests-main', |
| name='tests-main', |
| features='cxx', |
| source="main.cpp", |
| use='ndn-cert BOOST', |
| ) |
| |
| unit_test = bld.program( |
| target="../unit-tests", |
| source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp'], |
| excl=['main.cpp']), |
| features=['cxx', 'cxxprogram'], |
| use='ndn-cert tests-main', |
| includes=['.'], |
| install_path=None, |
| defines='TMP_TESTS_PATH=\"%s/tmp-tests\"' % bld.bldnode, |
| ) |