blob: 3893c5f4554068b8642525b39396a32f78653a3d [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"""
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07004Copyright (c) 2014-2017, Regents of the University of California
Yingdi Yuc9843cf2014-08-04 17:52:19 -07005
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07006This file is part of NDN DeLorean, An Authentication System for Data Archives in
7Named Data Networking. See AUTHORS.md for complete list of NDN DeLorean authors
8and contributors.
Yingdi Yuc9843cf2014-08-04 17:52:19 -07009
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070010NDN DeLorean is free software: you can redistribute it and/or modify it under
11the terms of the GNU General Public License as published by the Free Software
12Foundation, either version 3 of the License, or (at your option) any later
13version.
Yingdi Yuc9843cf2014-08-04 17:52:19 -070014
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070015NDN DeLorean is distributed in the hope that it will be useful, but WITHOUT ANY
16WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
17PARTICULAR PURPOSE. See the GNU General Public License for more details.
Yingdi Yuc9843cf2014-08-04 17:52:19 -070018
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070019You should have received a copy of the GNU General Public License along with NDN
20DeLorean, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Yingdi Yuc9843cf2014-08-04 17:52:19 -070021"""
22
23from waflib import Utils
24
25top = '..'
26
27def configure(conf):
28 conf.find_program('sh')
29
30def 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 )