From 1c4fdfb4145e39979c5095546ced9f07578ccb4d Mon Sep 17 00:00:00 2001 From: "evanm@google.com" Date: Fri, 26 Dec 2008 04:07:02 +0000 Subject: 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 --- site_scons/site_tools/chromium_builders.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'site_scons/site_tools') 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) -- cgit v1.1