summaryrefslogtreecommitdiffstats
path: root/site_scons
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-02 07:36:03 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-02 07:36:03 +0000
commit527c739c43984bc49da5d0de4989e1d81d4a74d5 (patch)
treed285aee08646c31b345760eb6e936f11271b8f10 /site_scons
parent7ae14832d77548f53270fd8c207811114a78bded (diff)
downloadchromium_src-527c739c43984bc49da5d0de4989e1d81d4a74d5.zip
chromium_src-527c739c43984bc49da5d0de4989e1d81d4a74d5.tar.gz
chromium_src-527c739c43984bc49da5d0de4989e1d81d4a74d5.tar.bz2
Fixes and enhancements
* Configurable CHROME_BUILD_TYPE command line or external environment variable for selecting appropriate release_impl*.scons settings (_checksenabled, _coverage, _dom_stats, _official, _purify). * Configurable CHROMIUM_BUILD command line or external environment variable for selecting appropriate chromium_build*.scons settings (_google_chrome). * Configurable /INCREMENTAL linking via command line or external environment variable ($INCREMENTAL), through appropriate setting of an internal $CHROMIUM_INCREMENTAL_FLAGS construction variable. * Full link of release builds by default. * Alphabetize *.scons files in the mac_env.FilterOut() list. * Explicitly set _checksenabled.scons link flags. Review URL: http://codereview.chromium.org/13039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6210 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/chromium_builders.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/site_scons/site_tools/chromium_builders.py b/site_scons/site_tools/chromium_builders.py
index a5c3964..e93dbea 100644
--- a/site_scons/site_tools/chromium_builders.py
+++ b/site_scons/site_tools/chromium_builders.py
@@ -10,11 +10,17 @@ customization we need to make to the different things we build.
def generate(env):
def ChromeProgram(env, *args, **kw):
- return env.ComponentProgram(*args, **kw)
+ result = env.ComponentProgram(*args, **kw)
+ if env.get('INCREMENTAL'):
+ env.Precious(result)
+ return result
env.AddMethod(ChromeProgram)
def ChromeTestProgram(env, *args, **kw):
- return env.ComponentTestProgram(*args, **kw)
+ result = env.ComponentTestProgram(*args, **kw)
+ if env.get('INCREMENTAL'):
+ env.Precious(*result)
+ return result
env.AddMethod(ChromeTestProgram)
def ChromeStaticLibrary(env, *args, **kw):
@@ -24,7 +30,10 @@ def generate(env):
def ChromeSharedLibrary(env, *args, **kw):
kw['COMPONENT_STATIC'] = False
- return [env.ComponentLibrary(*args, **kw)[0]]
+ result = [env.ComponentLibrary(*args, **kw)[0]]
+ if env.get('INCREMENTAL'):
+ env.Precious(result)
+ return result
env.AddMethod(ChromeSharedLibrary)
def ChromeObject(env, *args, **kw):