From d77b308f72af202ca81f1f5f6d113a7eb15bf79c Mon Sep 17 00:00:00 2001
From: Gustavo Jose de Sousa <gustavo.sousa@intel.com>
Date: Wed, 4 Nov 2015 11:34:11 -0200
Subject: [PATCH] waf: make collect_dirs_to_recurse() accept list of patterns

---
 wscript | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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