Alexander Afanasyev | 4ffcff2 | 2014-09-02 15:39:20 -0700 | [diff] [blame^] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | top = '..' |
| 4 | |
| 5 | def build(bld): |
| 6 | for app in bld.path.ant_glob('tools/*', dir=True): |
| 7 | if os.path.isdir(app.abspath()): |
| 8 | bld(features=['cxx', 'cxxprogram'], |
| 9 | target = '../bin/%s' % (str(app)), |
| 10 | source = app.ant_glob(['**/*.cpp']), |
| 11 | use = 'ndns-objects', |
| 12 | ) |
| 13 | |
| 14 | for app in bld.path.ant_glob('tools/*.cpp'): |
| 15 | bld(features=['cxxprogram'], |
| 16 | target = 'bin/%s' % (str(app.change_ext('','.cpp'))), |
| 17 | source = app, |
| 18 | use = 'ndns-objects', |
| 19 | ) |