diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-26 04:07:02 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-26 04:07:02 +0000 |
commit | 1c4fdfb4145e39979c5095546ced9f07578ccb4d (patch) | |
tree | 8fc5081db4f0e0754c71813b381820ba26e23397 /site_scons | |
parent | eef27c614102a234c25ce78b2d403ed8f2169a64 (diff) | |
download | chromium_src-1c4fdfb4145e39979c5095546ced9f07578ccb4d.zip chromium_src-1c4fdfb4145e39979c5095546ced9f07578ccb4d.tar.gz chromium_src-1c4fdfb4145e39979c5095546ced9f07578ccb4d.tar.bz2 |
Add a ChromeLibrary builder that allows the environment to decide whether
we link statically or dynamically.
Review URL: http://codereview.chromium.org/16269
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'site_scons')
-rw-r--r-- | site_scons/site_tools/chromium_builders.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/site_scons/site_tools/chromium_builders.py b/site_scons/site_tools/chromium_builders.py index 24b35f1..6088203 100644 --- a/site_scons/site_tools/chromium_builders.py +++ b/site_scons/site_tools/chromium_builders.py @@ -73,6 +73,10 @@ def ChromeTestProgram(env, target, source, *args, **kw): env.Precious(*result) return result +def ChromeLibrary(env, target, source, *args, **kw): + source = compilable_files(source) + return env.ComponentLibrary(target, source, *args, **kw) + def ChromeStaticLibrary(env, target, source, *args, **kw): source = compilable_files(source) kw['COMPONENT_STATIC'] = True @@ -107,6 +111,7 @@ def ChromeMSVSSolution(env, *args, **kw): def generate(env): env.AddMethod(ChromeProgram) env.AddMethod(ChromeTestProgram) + env.AddMethod(ChromeLibrary) env.AddMethod(ChromeStaticLibrary) env.AddMethod(ChromeSharedLibrary) env.AddMethod(ChromeObject) |