scons: Allow the build directory live under an EXTRAS directory
This commit is contained in:
parent
8c1563096c
commit
dd38b4b83e
1 changed files with 4 additions and 0 deletions
|
@ -320,6 +320,10 @@ for root, dirs, files in os.walk(base_dir, topdown=True):
|
|||
for extra_dir in extras_dir_list:
|
||||
prefix_len = len(dirname(extra_dir)) + 1
|
||||
for root, dirs, files in os.walk(extra_dir, topdown=True):
|
||||
# if build lives in the extras directory, don't walk down it
|
||||
if 'build' in dirs:
|
||||
dirs.remove('build')
|
||||
|
||||
if 'SConscript' in files:
|
||||
build_dir = joinpath(env['BUILDDIR'], root[prefix_len:])
|
||||
SConscript(joinpath(root, 'SConscript'), variant_dir=build_dir)
|
||||
|
|
Loading…
Reference in a new issue