blob: 7561edbb0fb9de8da72428ad8c307022f6665dbc [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'],
Alexander Afanasyev13644942016-12-27 10:55:15 -080011 target = '../bin/%s' % app.path_from(bld.path),
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -070012 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'):
Alexander Afanasyev13644942016-12-27 10:55:15 -080017 name = app.path_from(bld.path)[:-len(".cpp")]
Shock Jiang0b165f42014-10-24 09:08:09 -070018 bld(features=['cxx', 'cxxprogram'],
Alexander Afanasyev13644942016-12-27 10:55:15 -080019 target = '../bin/%s' % name,
Alexander Afanasyev4ffcff22014-09-02 15:39:20 -070020 source = app,
21 use = 'ndns-objects',
22 )