1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 184 unchanged lines hidden (view full) --- 193 # strip off the srcdir part since scons will try to find the 194 # script in the build directory 195 base = root[len(srcdir) + 1:] 196 SConscript(joinpath(base, 'SConscript')) 197 198extra_string = env['EXTRAS'] 199if extra_string and extra_string != '' and not extra_string.isspace(): 200 for extra in extra_string.split(':'): |
201 print 'Adding', extra, 'to source directory list' |
202 env.Append(CPPPATH=[Dir(extra)]) 203 for root, dirs, files in os.walk(extra, topdown=True): 204 if 'SConscript' in files: 205 subdir = root[len(os.path.dirname(extra))+1:] |
206 print ' Found SConscript in', subdir |
207 build_dir = joinpath(env['BUILDDIR'], subdir) 208 SConscript(joinpath(root, 'SConscript'), build_dir=build_dir) 209 210for opt in env.ExportOptions: 211 env.ConfigFile(opt) 212 213######################################################################## 214# --- 243 unchanged lines hidden --- |