Ilya Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | """ |
Junxiao Shi | 85d17fc | 2015-01-21 22:18:17 -0700 | [diff] [blame] | 4 | Copyright (c) 2014-2015, Regents of the University of California, |
| 5 | Arizona Board of Regents, |
| 6 | Colorado State University, |
| 7 | University Pierre & Marie Curie, Sorbonne University, |
| 8 | Washington University in St. Louis, |
| 9 | Beijing Institute of Technology, |
| 10 | The University of Memphis. |
Ilya Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 11 | |
| 12 | This file is part of NFD (Named Data Networking Forwarding Daemon). |
| 13 | See AUTHORS.md for complete list of NFD authors and contributors. |
| 14 | |
| 15 | NFD is free software: you can redistribute it and/or modify it under the terms |
| 16 | of the GNU General Public License as published by the Free Software Foundation, |
| 17 | either version 3 of the License, or (at your option) any later version. |
| 18 | |
| 19 | NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 20 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 21 | PURPOSE. See the GNU General Public License for more details. |
| 22 | |
| 23 | You should have received a copy of the GNU General Public License along with |
| 24 | NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 25 | """ |
| 26 | |
Alexander Afanasyev | 613e2a9 | 2014-04-15 13:36:58 -0700 | [diff] [blame] | 27 | top = '../..' |
Ilya Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 28 | |
| 29 | def build(bld): |
Alexander Afanasyev | f22ebaf | 2015-12-17 21:23:05 -0800 | [diff] [blame^] | 30 | for module, name in {"cs-benchmark": "CS Benchmark"}.iteritems(): |
| 31 | # main() |
| 32 | bld(target='unit-tests-%s-main' % module, |
| 33 | name='unit-tests-%s-main' % module, |
| 34 | features='cxx', |
| 35 | use='BOOST', |
| 36 | source='../main.cpp', |
| 37 | defines=['BOOST_TEST_MODULE=%s' % name] |
| 38 | ) |
| 39 | |
| 40 | # unit-tests-%module |
| 41 | bld.program( |
| 42 | target='../../%s' % module, |
| 43 | features='cxx cxxprogram', |
| 44 | source=bld.path.ant_glob(['%s*.cpp' % module]), |
| 45 | use='daemon-objects unit-tests-base unit-tests-%s-main' % module, |
| 46 | includes='.', |
| 47 | install_path=None, |
| 48 | ) |