| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from slave import recipe_api | 5 from slave import recipe_api |
| 6 | 6 |
| 7 class ChromiumApi(recipe_api.RecipeApi): | 7 class ChromiumApi(recipe_api.RecipeApi): |
| 8 def get_config_defaults(self): | 8 def get_config_defaults(self): |
| 9 return { | 9 return { |
| 10 'HOST_PLATFORM': self.m.platform.name, | 10 'HOST_PLATFORM': self.m.platform.name, |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 spawn_dbus=spawn_dbus, | 146 spawn_dbus=spawn_dbus, |
| 147 env=env) | 147 env=env) |
| 148 | 148 |
| 149 def runhooks(self, **kwargs): | 149 def runhooks(self, **kwargs): |
| 150 """Run the build-configuration hooks for chromium.""" | 150 """Run the build-configuration hooks for chromium.""" |
| 151 env = kwargs.get('env', {}) | 151 env = kwargs.get('env', {}) |
| 152 env.update(self.c.gyp_env.as_jsonish()) | 152 env.update(self.c.gyp_env.as_jsonish()) |
| 153 kwargs['env'] = env | 153 kwargs['env'] = env |
| 154 return self.m.gclient.runhooks(**kwargs) | 154 return self.m.gclient.runhooks(**kwargs) |
| 155 | 155 |
| 156 def cleanup_temp(self): |
| 157 return self.m.python( |
| 158 'cleanup_temp', |
| 159 self.m.path.build('scripts', 'slave', 'cleanup_temp.py')) |
| OLD | NEW |