Skip to content
Snippets Groups Projects
Commit 1c4fdfb4 authored by evanm@google.com's avatar evanm@google.com
Browse files

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
parent eef27c61
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment