OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """ |
| 6 Tool module for adding, to a construction environment, Chromium-specific |
| 7 wrappers around Hammer builders. This gives us a central place for any |
| 8 customization we need to make to the different things we build. |
| 9 """ |
| 10 |
| 11 def generate(env): |
| 12 def ChromeProgram(env, *args, **kw): |
| 13 return env.ComponentProgram(*args, **kw) |
| 14 env.AddMethod(ChromeProgram) |
| 15 |
| 16 def ChromeTestProgram(env, *args, **kw): |
| 17 return env.ComponentTestProgram(*args, **kw) |
| 18 env.AddMethod(ChromeTestProgram) |
| 19 |
| 20 def ChromeStaticLibrary(env, *args, **kw): |
| 21 kw['COMPONENT_STATIC'] = True |
| 22 return env.ComponentLibrary(*args, **kw) |
| 23 env.AddMethod(ChromeStaticLibrary) |
| 24 |
| 25 def ChromeSharedLibrary(env, *args, **kw): |
| 26 kw['COMPONENT_STATIC'] = False |
| 27 return [env.ComponentLibrary(*args, **kw)[0]] |
| 28 env.AddMethod(ChromeSharedLibrary) |
| 29 |
| 30 def ChromeObject(env, *args, **kw): |
| 31 return env.ComponentObject(*args, **kw) |
| 32 env.AddMethod(ChromeObject) |
| 33 |
| 34 def exists(env): |
| 35 return True |
OLD | NEW |