waf: make collect_dirs_to_recurse() accept list of patterns

This commit is contained in:
Gustavo Jose de Sousa 2015-11-04 11:34:11 -02:00 committed by Andrew Tridgell
parent 1cdc233bd2
commit d77b308f72
1 changed files with 5 additions and 3 deletions

View File

@ -167,10 +167,12 @@ def configure(cfg):
'SKETCHBOOK="' + cfg.srcnode.abspath() + '"', 'SKETCHBOOK="' + cfg.srcnode.abspath() + '"',
]) ])
def collect_dirs_to_recurse(bld, glob, **kw): def collect_dirs_to_recurse(bld, globs, **kw):
dirs = [] dirs = []
for d in bld.srcnode.ant_glob(glob + '/wscript', **kw): globs = waflib.Utils.to_list(globs)
dirs.append(d.parent.relpath()) for g in globs:
for d in bld.srcnode.ant_glob(g + '/wscript', **kw):
dirs.append(d.parent.relpath())
return dirs return dirs
def build(bld): def build(bld):