Skip to content

Commit

Permalink
Add a ChromeLibrary builder that allows the environment to decide whe…
Browse files Browse the repository at this point in the history
…ther

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
  • Loading branch information
evanm@google.com committed Dec 26, 2008
1 parent eef27c6 commit 1c4fdfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site_scons/site_tools/chromium_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1c4fdfb

Please sign in to comment.