SConscript (4762:c94e103c83ad) SConscript (4773:6103346eeb28)
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

--- 137 unchanged lines hidden (view full) ---

146
147# Add a flag defining what THE_ISA should be for all compilation
148env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())])
149
150########################################################################
151#
152# Walk the tree and execute all SConscripts
153#
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

--- 137 unchanged lines hidden (view full) ---

146
147# Add a flag defining what THE_ISA should be for all compilation
148env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())])
149
150########################################################################
151#
152# Walk the tree and execute all SConscripts
153#
154scripts = []
155srcdir = env['SRCDIR']
156for root, dirs, files in os.walk(srcdir, topdown=True):
157 if root == srcdir:
158 # we don't want to recurse back into this SConscript
159 continue
160
161 if 'SConscript' in files:
162 # strip off the srcdir part since scons will try to find the
163 # script in the build directory
164 base = root[len(srcdir) + 1:]
165 SConscript(joinpath(base, 'SConscript'))
166
154srcdir = env['SRCDIR']
155for root, dirs, files in os.walk(srcdir, topdown=True):
156 if root == srcdir:
157 # we don't want to recurse back into this SConscript
158 continue
159
160 if 'SConscript' in files:
161 # strip off the srcdir part since scons will try to find the
162 # script in the build directory
163 base = root[len(srcdir) + 1:]
164 SConscript(joinpath(base, 'SConscript'))
165
166for extra in env['EXTRAS'].split(':'):
167 extra = os.path.expanduser(extra)
168 env.Append(CPPPATH=[Dir(extra)])
169 for root, dirs, files in os.walk(extra, topdown=True):
170 if 'SConscript' in files:
171 subdir = root[len(os.path.dirname(extra))+1:]
172 build_dir = joinpath(env['BUILDDIR'], subdir)
173 SConscript(joinpath(root, 'SConscript'), build_dir=build_dir)
174
167for opt in env.ExportOptions:
168 env.ConfigFile(opt)
169
170########################################################################
171#
172# Prevent any SimObjects from being added after this point, they
173# should all have been added in the SConscripts above
174#

--- 231 unchanged lines hidden ---
175for opt in env.ExportOptions:
176 env.ConfigFile(opt)
177
178########################################################################
179#
180# Prevent any SimObjects from being added after this point, they
181# should all have been added in the SConscripts above
182#

--- 231 unchanged lines hidden ---