Chengyu Fan | eb0422c | 2015-03-04 16:34:14 -0700 | [diff] [blame] | 1 | # -*- 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 | |
| 24 | top = '..' |
| 25 | |
| 26 | def build(bld): |
| 27 | # unit test objects |
| 28 | unit_tests_objects = bld( |
Chengyu Fan | 8b92f12 | 2015-03-09 22:13:36 -0600 | [diff] [blame] | 29 | target='unit-test-objects', |
| 30 | name='unit-test-objects', |
Chengyu Fan | eb0422c | 2015-03-04 16:34:14 -0700 | [diff] [blame] | 31 | features="cxx", |
| 32 | source=bld.path.ant_glob(['unit-tests/**/*.cpp']), |
Chengyu Fan | 8b92f12 | 2015-03-09 22:13:36 -0600 | [diff] [blame] | 33 | use='NDN_CXX BOOST ndn_atmos_objects', |
Chengyu Fan | eb0422c | 2015-03-04 16:34:14 -0700 | [diff] [blame] | 34 | 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 Fan | 8b92f12 | 2015-03-09 22:13:36 -0600 | [diff] [blame] | 42 | use='unit-test-objects', |
Chengyu Fan | eb0422c | 2015-03-04 16:34:14 -0700 | [diff] [blame] | 43 | install_path=None) |
| 44 | |