| 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 """Common steps for recipes that sync/build Android sources.""" | 5 """Common steps for recipes that sync/build Android sources.""" |
| 6 | 6 |
| 7 from slave import recipe_api | 7 from recipe_engine import recipe_api |
| 8 | 8 |
| 9 class AOSPApi(recipe_api.RecipeApi): | 9 class AOSPApi(recipe_api.RecipeApi): |
| 10 def __init__(self, **kwargs): | 10 def __init__(self, **kwargs): |
| 11 super(AOSPApi, self).__init__(**kwargs) | 11 super(AOSPApi, self).__init__(**kwargs) |
| 12 self._repo_path = None | 12 self._repo_path = None |
| 13 | 13 |
| 14 @property | 14 @property |
| 15 def with_lunch_command(self): | 15 def with_lunch_command(self): |
| 16 return [self.m.path['build'].join('scripts', 'slave', | 16 return [self.m.path['build'].join('scripts', 'slave', |
| 17 'android', 'with_lunch'), | 17 'android', 'with_lunch'), |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 cwd=self.m.path['slave_build'], | 176 cwd=self.m.path['slave_build'], |
| 177 env=env) | 177 env=env) |
| 178 | 178 |
| 179 def update_defaut_props_step(self, extra_properties): | 179 def update_defaut_props_step(self, extra_properties): |
| 180 update_default_props_command = ( | 180 update_default_props_command = ( |
| 181 [self.resource('update_default_props.py')] + | 181 [self.resource('update_default_props.py')] + |
| 182 ['%s=%s' % (k,v) for k,v in extra_properties.iteritems()]) | 182 ['%s=%s' % (k,v) for k,v in extra_properties.iteritems()]) |
| 183 self.m.step('update /root/default.prop', | 183 self.m.step('update /root/default.prop', |
| 184 self.with_lunch_command + update_default_props_command) | 184 self.with_lunch_command + update_default_props_command) |
| 185 | 185 |
| OLD | NEW |