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