blob: 83712757747661a396a0cd6a7d6c1ca48b5b4033 [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"""
Davide Pesaventocb065f12019-12-27 01:03:34 -05004Copyright (c) 2014-2019, The University of Memphis
Muktadir Chowdhuryf04f9892017-08-20 20:42:56 -05005 Regents of the University of California
Yingdi Yu40cd1c32014-04-17 15:02:17 -07006
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):
Davide Pesaventocb065f12019-12-27 01:03:34 -050025 if not bld.env.WITH_TESTS:
Muktadir Chowdhuryf04f9892017-08-20 20:42:56 -050026 return
Yingdi Yu40cd1c32014-04-17 15:02:17 -070027
Alexander Afanasyev67758b12018-03-06 18:36:44 -050028 bld.objects(target='unit-test-objects',
29 source=bld.path.ant_glob('**/*.cpp', excl=['main.cpp']),
30 use='nlsr-objects')
Yingdi Yu40cd1c32014-04-17 15:02:17 -070031
Alexander Afanasyev67758b12018-03-06 18:36:44 -050032 bld.program(target='../unit-tests-nlsr',
33 name='unit-tests-nlsr',
34 source='main.cpp',
Alexander Afanasyev67758b12018-03-06 18:36:44 -050035 use='unit-test-objects',
36 install_path=None)