Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | """ |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame^] | 4 | Copyright (c) 2014-2017, Regents of the University of California |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 5 | |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame^] | 6 | This file is part of NDN DeLorean, An Authentication System for Data Archives in |
| 7 | Named Data Networking. See AUTHORS.md for complete list of NDN DeLorean authors |
| 8 | and contributors. |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 9 | |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame^] | 10 | NDN DeLorean is free software: you can redistribute it and/or modify it under |
| 11 | the terms of the GNU General Public License as published by the Free Software |
| 12 | Foundation, either version 3 of the License, or (at your option) any later |
| 13 | version. |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 14 | |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame^] | 15 | NDN DeLorean is distributed in the hope that it will be useful, but WITHOUT ANY |
| 16 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 17 | PARTICULAR PURPOSE. See the GNU General Public License for more details. |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 18 | |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame^] | 19 | You should have received a copy of the GNU General Public License along with NDN |
| 20 | DeLorean, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 21 | """ |
| 22 | |
| 23 | from waflib import Utils |
| 24 | |
| 25 | top = '..' |
| 26 | |
| 27 | def configure(conf): |
| 28 | conf.find_program('sh') |
| 29 | |
| 30 | def build(bld): |
| 31 | for app in bld.path.ant_glob('*.cpp'): |
| 32 | bld(features=['cxx', 'cxxprogram'], |
| 33 | target = '%s' % (str(app.change_ext('','.cpp'))), |
| 34 | source = app, |
| 35 | use = 'daemon-objects', |
| 36 | ) |
| 37 | |
| 38 | bld(features = "subst", |
| 39 | source = bld.path.ant_glob(['wrapper/*.sh']), |
| 40 | target = ['%s' % node.change_ext('', '.sh') |
| 41 | for node in bld.path.ant_glob(['wrapper/*.sh'])], |
| 42 | install_path = "${BINDIR}", |
| 43 | chmod = Utils.O755, |
| 44 | ) |