Alexander Afanasyev | a1ae0a1 | 2014-01-28 15:21:02 -0800 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | top = '..' |
| 4 | |
Yingdi Yu | 8d7468f | 2014-02-21 14:49:45 -0800 | [diff] [blame] | 5 | def configure(conf): |
| 6 | conf.find_program('sh') |
| 7 | |
Alexander Afanasyev | a1ae0a1 | 2014-01-28 15:21:02 -0800 | [diff] [blame] | 8 | def 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 Afanasyev | 766cea7 | 2014-04-24 19:16:42 -0700 | [diff] [blame^] | 13 | use = 'ndn-cxx', |
| 14 | ) |
Yingdi Yu | 8d7468f | 2014-02-21 14:49:45 -0800 | [diff] [blame] | 15 | |
| 16 | bld (features = "subst", |
| 17 | source = bld.path.ant_glob(['wrapper/*.sh']), |
Alexander Afanasyev | 766cea7 | 2014-04-24 19:16:42 -0700 | [diff] [blame^] | 18 | target = ['%s' % node.change_ext('', '.sh') |
| 19 | for node in bld.path.ant_glob(['wrapper/*.sh'])], |
Yingdi Yu | 8d7468f | 2014-02-21 14:49:45 -0800 | [diff] [blame] | 20 | install_path = "${BINDIR}", |
| 21 | chmod = 0755, |
| 22 | ) |