blob: bc2842599f732af3b5918c3efd1f79bd40e68e7e [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
3top = '..'
4
Yingdi Yu8d7468f2014-02-21 14:49:45 -08005def configure(conf):
6 conf.find_program('sh')
7
Alexander Afanasyeva1ae0a12014-01-28 15:21:02 -08008def build(bld):
9 for app in bld.path.ant_glob('*.cpp'):
10 bld(features=['cxx', 'cxxprogram'],
11 target = '%s' % (str(app.change_ext('','.cpp'))),
12 source = app,
Alexander Afanasyev1e0a0772014-01-28 20:07:07 -080013 use = 'ndn-cpp-dev',
Alexander Afanasyeva1ae0a12014-01-28 15:21:02 -080014 )
Yingdi Yu8d7468f2014-02-21 14:49:45 -080015
16 bld (features = "subst",
17 source = bld.path.ant_glob(['wrapper/*.sh']),
18 target = ['%s' % node.change_ext('', '.sh') for node in bld.path.ant_glob(['wrapper/*.sh'])],
19 install_path = "${BINDIR}",
20 chmod = 0755,
21 )