OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """ | 5 """ |
6 Tool module for adding, to a construction environment, Chromium-specific | 6 Tool module for adding, to a construction environment, Chromium-specific |
7 wrappers around Hammer builders. This gives us a central place for any | 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. | 8 customization we need to make to the different things we build. |
9 """ | 9 """ |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 result = [env.ComponentLibrary(*args, **kw)[0]] | 33 result = [env.ComponentLibrary(*args, **kw)[0]] |
34 if env.get('INCREMENTAL'): | 34 if env.get('INCREMENTAL'): |
35 env.Precious(result) | 35 env.Precious(result) |
36 return result | 36 return result |
37 env.AddMethod(ChromeSharedLibrary) | 37 env.AddMethod(ChromeSharedLibrary) |
38 | 38 |
39 def ChromeObject(env, *args, **kw): | 39 def ChromeObject(env, *args, **kw): |
40 return env.ComponentObject(*args, **kw) | 40 return env.ComponentObject(*args, **kw) |
41 env.AddMethod(ChromeObject) | 41 env.AddMethod(ChromeObject) |
42 | 42 |
| 43 def ChromeMSVSFolder(env, *args, **kw): |
| 44 if env.Bit('msvs'): |
| 45 return env.MSVSFolder(*args, **kw) |
| 46 return [] |
| 47 env.AddMethod(ChromeMSVSFolder) |
| 48 |
| 49 def ChromeMSVSProject(env, *args, **kw): |
| 50 if env.Bit('msvs'): |
| 51 return env.MSVSProject(*args, **kw) |
| 52 return [] |
| 53 env.AddMethod(ChromeMSVSProject) |
| 54 |
| 55 def ChromeMSVSSolution(env, *args, **kw): |
| 56 if env.Bit('msvs'): |
| 57 return env.MSVSSolution(*args, **kw) |
| 58 return [] |
| 59 env.AddMethod(ChromeMSVSSolution) |
| 60 |
43 def exists(env): | 61 def exists(env): |
44 return True | 62 return True |
OLD | NEW |