blob: 074e72ce2c61f9382a5909f99033f5a81b9471a9 [file] [log] [blame]
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -04001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3"""
Junxiao Shi85d17fc2015-01-21 22:18:17 -07004Copyright (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 Moiseenko96b80bb2014-04-05 20:53:27 -040011
12This file is part of NFD (Named Data Networking Forwarding Daemon).
13See AUTHORS.md for complete list of NFD authors and contributors.
14
15NFD is free software: you can redistribute it and/or modify it under the terms
16of the GNU General Public License as published by the Free Software Foundation,
17either version 3 of the License, or (at your option) any later version.
18
19NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
20without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
21PURPOSE. See the GNU General Public License for more details.
22
23You should have received a copy of the GNU General Public License along with
24NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
25"""
26
Alexander Afanasyev613e2a92014-04-15 13:36:58 -070027top = '../..'
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -040028
29def build(bld):
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080030 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 )