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

Unified Diff: site_scons/site_tools/chromium_builders.py

Issue 11430: Fix use of LOAD= with WantSystemLib()... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: site_scons/site_tools/chromium_builders.py
===================================================================
--- site_scons/site_tools/chromium_builders.py (revision 0)
+++ site_scons/site_tools/chromium_builders.py (revision 0)
@@ -0,0 +1,35 @@
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Tool module for adding, to a construction environment, Chromium-specific
+wrappers around Hammer builders. This gives us a central place for any
+customization we need to make to the different things we build.
+"""
+
+def generate(env):
+ def ChromeProgram(env, *args, **kw):
Evan Martin 2008/11/20 21:11:42 two-space tabs :\
sgk 2008/11/21 01:06:28 Done; also in other chrome*py module.
+ return env.ComponentProgram(*args, **kw)
+ env.AddMethod(ChromeProgram)
+
+ def ChromeTestProgram(env, *args, **kw):
+ return env.ComponentTestProgram(*args, **kw)
+ env.AddMethod(ChromeTestProgram)
+
+ def ChromeStaticLibrary(env, *args, **kw):
+ kw['COMPONENT_STATIC'] = True
+ return env.ComponentLibrary(*args, **kw)
+ env.AddMethod(ChromeStaticLibrary)
+
+ def ChromeSharedLibrary(env, *args, **kw):
+ kw['COMPONENT_STATIC'] = False
+ return [env.ComponentLibrary(*args, **kw)[0]]
+ env.AddMethod(ChromeSharedLibrary)
+
+ def ChromeObject(env, *args, **kw):
+ return env.ComponentObject(*args, **kw)
+ env.AddMethod(ChromeObject)
+
+def exists(env):
+ return True
Property changes on: site_scons/site_tools/chromium_builders.py
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698