blob: 0d94bd69b9cc205d0cd20c86a5743a0a1e6dc9af [file] [log] [blame]
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -04001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -04002"""
Davide Pesavento1b077f62019-02-19 19:19:44 -05003Copyright (c) 2014-2019, Regents of the University of California,
Junxiao Shi85d17fc2015-01-21 22:18:17 -07004 Arizona Board of Regents,
5 Colorado State University,
6 University Pierre & Marie Curie, Sorbonne University,
7 Washington University in St. Louis,
8 Beijing Institute of Technology,
9 The University of Memphis.
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -040010
11This file is part of NFD (Named Data Networking Forwarding Daemon).
12See AUTHORS.md for complete list of NFD authors and contributors.
13
14NFD is free software: you can redistribute it and/or modify it under the terms
15of the GNU General Public License as published by the Free Software Foundation,
16either version 3 of the License, or (at your option) any later version.
17
18NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
19without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20PURPOSE. See the GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License along with
23NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
24"""
25
Alexander Afanasyev613e2a92014-04-15 13:36:58 -070026top = '../..'
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -040027
28def build(bld):
Weiwei Liu4f1afac2016-04-02 19:08:38 -070029 for module, name in {"cs-benchmark": "CS Benchmark",
30 "pit-fib-benchmark": "PIT & FIB Benchmark"}.items():
31 # main
Davide Pesavento0064c1d2018-03-03 18:43:53 -050032 bld.objects(target='other-tests-%s-main' % module,
33 source='../main.cpp',
34 use='BOOST',
35 defines=['BOOST_TEST_MODULE=%s' % name])
Weiwei Liu4f1afac2016-04-02 19:08:38 -070036 # module
Davide Pesavento0064c1d2018-03-03 18:43:53 -050037 bld.program(name=module,
38 target='../../%s' % module,
39 source=bld.path.ant_glob('%s*.cpp' % module),
Davide Pesavento21353752020-11-20 00:43:44 -050040 use='daemon-objects other-tests-%s-main' % module,
Davide Pesavento0064c1d2018-03-03 18:43:53 -050041 install_path=None)
Weiwei Liu4f1afac2016-04-02 19:08:38 -070042
43 # face-benchmark does not rely on Boost.Test
Davide Pesavento0064c1d2018-03-03 18:43:53 -050044 bld.program(name='face-benchmark',
45 target='../../face-benchmark',
46 source=bld.path.ant_glob('face-benchmark*.cpp'),
Davide Pesavento1b077f62019-02-19 19:19:44 -050047 use='daemon-objects',
Davide Pesavento0064c1d2018-03-03 18:43:53 -050048 install_path=None)