blob: 21671c611ec1abbf40447bbddb410b72e5533daf [file] [log] [blame]
Alexander Afanasyeva1ae0a12014-01-28 15:21:02 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
Alexander Afanasyevfff47d62014-05-11 19:24:46 -07003from waflib import Utils
4
Alexander Afanasyeva1ae0a12014-01-28 15:21:02 -08005top = '..'
6
Yingdi Yu8d7468f2014-02-21 14:49:45 -08007def configure(conf):
8 conf.find_program('sh')
9
Alexander Afanasyeva1ae0a12014-01-28 15:21:02 -080010def build(bld):
11 for app in bld.path.ant_glob('*.cpp'):
12 bld(features=['cxx', 'cxxprogram'],
13 target = '%s' % (str(app.change_ext('','.cpp'))),
14 source = app,
Alexander Afanasyev766cea72014-04-24 19:16:42 -070015 use = 'ndn-cxx',
16 )
Yingdi Yu8d7468f2014-02-21 14:49:45 -080017
Alexander Afanasyevfff47d62014-05-11 19:24:46 -070018 bld(features = "subst",
19 source = bld.path.ant_glob(['wrapper/*.sh']),
20 target = ['%s' % node.change_ext('', '.sh')
21 for node in bld.path.ant_glob(['wrapper/*.sh'])],
22 install_path = "${BINDIR}",
23 chmod = Utils.O755,
24 )