| 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.recipe_config import config_item_context, ConfigGroup, Single, List | 5 from slave.recipe_config import config_item_context, ConfigGroup, Single, List |
| 6 from slave.recipe_config import Static | 6 from slave.recipe_config import Static |
| 7 from slave.recipe_config_types import Path |
| 7 | 8 |
| 8 def BaseConfig(USE_MIRROR=False): | 9 def BaseConfig(USE_MIRROR=False): |
| 10 chromium_in_android_subpath = ('external', 'chromium_org') |
| 11 build_path = Path('slave_build', ('android-src',)) |
| 12 |
| 9 return ConfigGroup( | 13 return ConfigGroup( |
| 10 lunch_flavor = Single(basestring), | 14 lunch_flavor = Single(basestring), |
| 11 repo = ConfigGroup( | 15 repo = ConfigGroup( |
| 12 url = Single(basestring), | 16 url = Single(basestring), |
| 13 branch = Single(basestring), | 17 branch = Single(basestring), |
| 14 sync_flags = List(basestring), | 18 sync_flags = List(basestring), |
| 15 ), | 19 ), |
| 16 USE_MIRROR = Static(bool(USE_MIRROR)), | 20 USE_MIRROR = Static(bool(USE_MIRROR)), |
| 21 |
| 22 # Path stuff |
| 23 chromium_in_android_subpath = Static('/'.join(chromium_in_android_subpath)), |
| 24 build_path = Static(build_path), |
| 25 slave_chromium_in_android_path = Static( |
| 26 build_path(*chromium_in_android_subpath)), |
| 27 slave_android_out_path = Static(build_path('out')), |
| 17 ) | 28 ) |
| 18 | 29 |
| 19 config_ctx = config_item_context( | 30 config_ctx = config_item_context( |
| 20 BaseConfig, | 31 BaseConfig, |
| 21 {'USE_MIRROR': (False,)}, | 32 {'USE_MIRROR': (False,)}, |
| 22 'android') | 33 'android') |
| 23 | 34 |
| 24 @config_ctx() | 35 @config_ctx() |
| 25 def AOSP(c): | 36 def AOSP(c): |
| 26 c.lunch_flavor = 'full-eng' | 37 c.lunch_flavor = 'full-eng' |
| 27 c.repo.url = 'https://android.googlesource.com/platform/manifest' | 38 c.repo.url = 'https://android.googlesource.com/platform/manifest' |
| 28 c.repo.branch = 'android-4.3_r2.3' | 39 c.repo.branch = 'android-4.3_r2.3' |
| 29 c.repo.sync_flags = ['-j16', '-d', '-f'] | 40 c.repo.sync_flags = ['-j16', '-d', '-f'] |
| OLD | NEW |