mirror of https://github.com/ArduPilot/ardupilot
waf: make collect_dirs_to_recurse() accept list of patterns
This commit is contained in:
parent
1cdc233bd2
commit
d77b308f72
8
wscript
8
wscript
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue