blob: 0f29974ece2598bb3a5725023729f16b4b611a1b [file] [log] [blame]
Chengyu Faneb0422c2015-03-04 16:34:14 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3"""
4 Copyright (c) 2013-2015, Regents of the University of California,
5 2015, Colorado State University.
6
7 This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
8
9 ndn-cxx library is free software: you can redistribute it and/or modify it under the
10 terms of the GNU Lesser General Public License as published by the Free Software
11 Foundation, either version 3 of the License, or (at your option) any later version.
12
13 ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17 You should have received copies of the GNU General Public License and GNU Lesser
18 General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
19 <http://www.gnu.org/licenses/>.
20
21 See AUTHORS.md for complete list of ndn-cxx authors and contributors.
22"""
23
24top = '..'
25
26def build(bld):
27 # unit test objects
28 unit_tests_objects = bld(
Chengyu Fan8b92f122015-03-09 22:13:36 -060029 target='unit-test-objects',
30 name='unit-test-objects',
Chengyu Faneb0422c2015-03-04 16:34:14 -070031 features="cxx",
32 source=bld.path.ant_glob(['unit-tests/**/*.cpp']),
Chengyu Fan8b92f122015-03-09 22:13:36 -060033 use='NDN_CXX BOOST ndn_atmos_objects',
Chengyu Faneb0422c2015-03-04 16:34:14 -070034 includes='.',
35 install_path=None)
36
37 # unit test app
38 bld(features='cxx cxxprogram',
39 target='../unit-tests',
40 name='unit-tests-main-unit',
41 source="main.cpp",
Chengyu Fan8b92f122015-03-09 22:13:36 -060042 use='unit-test-objects',
Chengyu Faneb0422c2015-03-04 16:34:14 -070043 install_path=None)
44