Alexander Afanasyev | a1ae0a1 | 2014-01-28 15:21:02 -0800 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
Davide Pesavento | 550d8c9 | 2023-11-05 01:30:01 -0400 | [diff] [blame] | 3 | top = '..' |
Alexander Afanasyev | a1ae0a1 | 2014-01-28 15:21:02 -0800 | [diff] [blame] | 4 | |
| 5 | def build(bld): |
Davide Pesavento | 906dde5 | 2024-02-24 20:52:23 -0500 | [diff] [blame^] | 6 | if bld.env.WITH_INTEGRATION_TESTS or bld.env.WITH_UNIT_TESTS: |
| 7 | bld.objects( |
| 8 | target='tests-common', |
| 9 | source=bld.path.ant_glob('*.cpp'), |
| 10 | features='pch', |
| 11 | headers='tests-pch.hpp', |
| 12 | use='BOOST_TESTS ndn-cxx') |
Alexander Afanasyev | 5560fd4 | 2018-03-07 17:03:03 -0500 | [diff] [blame] | 13 | |
Davide Pesavento | 906dde5 | 2024-02-24 20:52:23 -0500 | [diff] [blame^] | 14 | if bld.env.WITH_BENCHMARKS: |
| 15 | bld.recurse('benchmarks') |
| 16 | |
| 17 | if bld.env.WITH_INTEGRATION_TESTS: |
| 18 | bld.recurse('integration') |
| 19 | |
| 20 | if bld.env.WITH_UNIT_TESTS: |
| 21 | bld.recurse('unit') |