Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: site_scons/site_tools/chromium_builders.py

Issue 53133: Build in a ../sconsbuild directory by default:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ 5 """
6 Tool module for adding, to a construction environment, Chromium-specific 6 Tool module for adding, to a construction environment, Chromium-specific
7 wrappers around Hammer builders. This gives us a central place for any 7 wrappers around Hammer builders. This gives us a central place for any
8 customization we need to make to the different things we build. 8 customization we need to make to the different things we build.
9 """ 9 """
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 return [x for x in sources if compilable(env, x)] 184 return [x for x in sources if compilable(env, x)]
185 result = [] 185 result = []
186 for top, folders, nonfolders in FileListWalk(sources): 186 for top, folders, nonfolders in FileListWalk(sources):
187 result.extend([x for x in nonfolders if compilable(env, x)]) 187 result.extend([x for x in nonfolders if compilable(env, x)])
188 return result 188 return result
189 189
190 def ChromeProgram(env, target, source, *args, **kw): 190 def ChromeProgram(env, target, source, *args, **kw):
191 source = compilable_files(env, source) 191 source = compilable_files(env, source)
192 if env.get('_GYP'): 192 if env.get('_GYP'):
193 prog = env.Program(target, source, *args, **kw) 193 prog = env.Program(target, source, *args, **kw)
194 result = env.Install('$DESTINATION_ROOT', prog) 194 result = env.Install('$TOP_BUILDDIR', prog)
195 else: 195 else:
196 result = env.ComponentProgram(target, source, *args, **kw) 196 result = env.ComponentProgram(target, source, *args, **kw)
197 if env.get('INCREMENTAL'): 197 if env.get('INCREMENTAL'):
198 env.Precious(result) 198 env.Precious(result)
199 return result 199 return result
200 200
201 def ChromeTestProgram(env, target, source, *args, **kw): 201 def ChromeTestProgram(env, target, source, *args, **kw):
202 source = compilable_files(env, source) 202 source = compilable_files(env, source)
203 if env.get('_GYP'): 203 if env.get('_GYP'):
204 prog = env.Program(target, source, *args, **kw) 204 prog = env.Program(target, source, *args, **kw)
205 result = env.Install('$DESTINATION_ROOT', prog) 205 result = env.Install('$TOP_BUILDDIR', prog)
206 else: 206 else:
207 result = env.ComponentTestProgram(target, source, *args, **kw) 207 result = env.ComponentTestProgram(target, source, *args, **kw)
208 if env.get('INCREMENTAL'): 208 if env.get('INCREMENTAL'):
209 env.Precious(*result) 209 env.Precious(*result)
210 return result 210 return result
211 211
212 def ChromeLibrary(env, target, source, *args, **kw): 212 def ChromeLibrary(env, target, source, *args, **kw):
213 source = compilable_files(env, source) 213 source = compilable_files(env, source)
214 if env.get('_GYP'): 214 if env.get('_GYP'):
215 lib = env.Library(target, source, *args, **kw) 215 lib = env.Library(target, source, *args, **kw)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 # Add the grit tool to the base environment because we use this a lot. 310 # Add the grit tool to the base environment because we use this a lot.
311 sys.path.append(env.Dir('$SRC_DIR/tools/grit').abspath) 311 sys.path.append(env.Dir('$SRC_DIR/tools/grit').abspath)
312 env.Tool('scons', toolpath=[env.Dir('$SRC_DIR/tools/grit/grit')]) 312 env.Tool('scons', toolpath=[env.Dir('$SRC_DIR/tools/grit/grit')])
313 313
314 # Add the repack python script tool that we use in multiple places. 314 # Add the repack python script tool that we use in multiple places.
315 sys.path.append(env.Dir('$SRC_DIR/tools/data_pack').abspath) 315 sys.path.append(env.Dir('$SRC_DIR/tools/data_pack').abspath)
316 env.Tool('scons', toolpath=[env.Dir('$SRC_DIR/tools/data_pack/')]) 316 env.Tool('scons', toolpath=[env.Dir('$SRC_DIR/tools/data_pack/')])
317 317
318 def exists(env): 318 def exists(env):
319 return True 319 return True
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698