blob: bea6079088a9a1dfe3a6d04647048e21d3de77be [file] [log] [blame]
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
Shock Jiang0b165f42014-10-24 09:08:09 -07003import os.path
4
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -07005top = '..'
6
7def build(bld):
Shock Jiang0b165f42014-10-24 09:08:09 -07008 for app in bld.path.ant_glob('**/*', dir=True):
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -07009 if os.path.isdir(app.abspath()):
10 bld(features=['cxx', 'cxxprogram'],
11 target = '../bin/%s' % (str(app)),
12 source = app.ant_glob(['**/*.cpp']),
13 use = 'ndns-objects',
14 )
15
Shock Jiang0b165f42014-10-24 09:08:09 -070016 for app in bld.path.ant_glob('**/*.cpp'):
17 bld(features=['cxx', 'cxxprogram'],
18 target = '../bin/%s' % (str(app.change_ext('','.cpp'))),
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -070019 source = app,
20 use = 'ndns-objects',
21 )