blob: 13ed60995f5583b098ec4968c25d79389783eeaa [file] [log] [blame]
Yingdi Yu40cd1c32014-04-17 15:02:17 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3"""
4Copyright (c) 2014 University of Memphis
5 Regents of the University of California,
6
7This file is part of NLSR (Named-data Link State Routing).
8See AUTHORS.md for complete list of NLSR authors and contributors.
9
10NLSR is free software: you can redistribute it and/or modify it under the terms
11of the GNU General Public License as published by the Free Software Foundation,
12either version 3 of the License, or (at your option) any later version.
13
14NLSR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16PURPOSE. See the GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License along with
19NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
20"""
21
22top = '..'
23
24def build(bld):
25 if bld.env['WITH_TESTS']:
26 integrated_test_main = bld(
27 target='integrated-tests-main',
28 name='integrated-tests-main',
29 features='cxx',
30 source=bld.path.ant_glob(['*.cpp']),
31 use='nlsr-objects',
32 )
33
34 integrated_test_nsync = bld.program (
35 target="../integrated-tests-nsync",
36 features="cxx cxxprogram",
37 source=bld.path.ant_glob(['nsync/**/*.cc']),
38 use='nsync-objects integrated-tests-main',
39 includes='.',
40 install_path=None,
41 )
42
43 integrated_test_nlsr = bld.program (
44 target="../integrated-tests-nlsr",
45 features="cxx cxxprogram",
46 source=bld.path.ant_glob(['nlsr/**/*.cpp']),
47 use='nlsr-objects integrated-tests-main',
48 includes='.',
49 install_path=None,
50 )