| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import ast | 5 import ast |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 | 8 |
| 9 from recipe_engine import recipe_api | 9 from recipe_engine import recipe_api |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 PATCH=1 | 43 PATCH=1 |
| 44 """ | 44 """ |
| 45 | 45 |
| 46 def __init__(self, *args, **kwargs): | 46 def __init__(self, *args, **kwargs): |
| 47 super(SyzygyApi, self).__init__(*args, **kwargs) | 47 super(SyzygyApi, self).__init__(*args, **kwargs) |
| 48 # This is populated by the first call to 'version'. | 48 # This is populated by the first call to 'version'. |
| 49 self._version = None | 49 self._version = None |
| 50 # This is populated by the sync step. | 50 # This is populated by the sync step. |
| 51 self._revision = None | 51 self._revision = None |
| 52 | 52 |
| 53 def get_config_defaults(self): |
| 54 return { |
| 55 'CHECKOUT_PATH': self.m.path['checkout'], |
| 56 } |
| 57 |
| 53 @property | 58 @property |
| 54 def build_dir(self): | 59 def build_dir(self): |
| 55 """Returns the build directory for the project.""" | 60 """Returns the build directory for the project.""" |
| 56 build_tool = self.m.chromium.c.compile_py.build_tool | 61 build_tool = self.m.chromium.c.compile_py.build_tool |
| 57 if build_tool == 'ninja': | 62 if build_tool == 'ninja': |
| 58 return self.m.path['checkout'].join('out') | 63 return self.m.path['checkout'].join('out') |
| 59 | 64 |
| 60 @property | 65 @property |
| 61 def output_dir(self): | 66 def output_dir(self): |
| 62 """Returns the configuration-specific output directory for the project.""" | 67 """Returns the configuration-specific output directory for the project.""" |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 '--overwrite', | 324 '--overwrite', |
| 320 '--verbose'] | 325 '--verbose'] |
| 321 return self.m.python('download_binaries', get_syzygy_binaries_py, args) | 326 return self.m.python('download_binaries', get_syzygy_binaries_py, args) |
| 322 | 327 |
| 323 def smoke_test(self): | 328 def smoke_test(self): |
| 324 """Returns a step that launches the smoke test script.""" | 329 """Returns a step that launches the smoke test script.""" |
| 325 smoke_test_py = self.internal_scripts_dir.join('smoke_test.py') | 330 smoke_test_py = self.internal_scripts_dir.join('smoke_test.py') |
| 326 build_dir = self.m.path['checkout'].join('build') | 331 build_dir = self.m.path['checkout'].join('build') |
| 327 args = ['--verbose', '--build-dir', build_dir] | 332 args = ['--verbose', '--build-dir', build_dir] |
| 328 return self.m.python('smoke_test', smoke_test_py, args) | 333 return self.m.python('smoke_test', smoke_test_py, args) |
| OLD | NEW |