blob: 40750c22b3b402c57941d7e4069571277cda356f [file] [log] [blame]
Yingdi Yuc9843cf2014-08-04 17:52:19 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3"""
4Copyright (c) 2014, Regents of the University of California
5
6This file is part of NSL (NDN Signature Logger).
7See AUTHORS.md for complete list of NSL authors and contributors.
8
9NSL is free software: you can redistribute it and/or modify it under the terms
10of the GNU General Public License as published by the Free Software Foundation,
11either version 3 of the License, or (at your option) any later version.
12
13NSL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
14without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15PURPOSE. See the GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License along with
18NSL, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
19"""
20
21from waflib import Utils
22
23top = '..'
24
25def configure(conf):
26 conf.find_program('sh')
27
28def 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 )