Chromium Code Reviews| 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 | 7 |
| 8 from slave.recipe_config_types import Path | |
|
agable
2013/09/26 21:46:02
No empty line above this.
iannucci
2013/09/27 02:08:20
Done.
| |
| 9 | |
| 8 def BaseConfig(USE_MIRROR=False): | 10 def BaseConfig(USE_MIRROR=False): |
| 11 chromium_in_android_subpath = ('external', 'chromium_org') | |
| 12 build_path = Path('slave_build', 'android-src') | |
| 13 | |
| 9 return ConfigGroup( | 14 return ConfigGroup( |
| 10 lunch_flavor = Single(basestring), | 15 lunch_flavor = Single(basestring), |
| 11 repo = ConfigGroup( | 16 repo = ConfigGroup( |
| 12 url = Single(basestring), | 17 url = Single(basestring), |
| 13 branch = Single(basestring), | 18 branch = Single(basestring), |
| 14 sync_flags = List(basestring), | 19 sync_flags = List(basestring), |
| 15 ), | 20 ), |
| 16 USE_MIRROR = Static(bool(USE_MIRROR)), | 21 USE_MIRROR = Static(bool(USE_MIRROR)), |
| 22 | |
| 23 # Path stuff | |
| 24 chromium_in_android_subpath = Static('/'.join(chromium_in_android_subpath)), | |
|
agable
2013/09/26 21:46:02
This is super weird and makes me a little uncomfor
iannucci
2013/09/27 02:08:20
Yeah that was pretty much my reaction. I decided t
| |
| 25 build_path = Static(build_path), | |
| 26 slave_chromium_in_android_path = Static( | |
| 27 build_path(*chromium_in_android_subpath)), | |
| 28 slave_android_out_path = Static(build_path('out')), | |
| 17 ) | 29 ) |
| 18 | 30 |
| 19 config_ctx = config_item_context( | 31 config_ctx = config_item_context( |
| 20 BaseConfig, | 32 BaseConfig, |
| 21 {'USE_MIRROR': (False,)}, | 33 {'USE_MIRROR': (False,)}, |
| 22 'android') | 34 'android') |
| 23 | 35 |
| 24 @config_ctx() | 36 @config_ctx() |
| 25 def AOSP(c): | 37 def AOSP(c): |
| 26 c.lunch_flavor = 'full-eng' | 38 c.lunch_flavor = 'full-eng' |
| 27 c.repo.url = 'https://android.googlesource.com/platform/manifest' | 39 c.repo.url = 'https://android.googlesource.com/platform/manifest' |
| 28 c.repo.branch = 'android-4.3_r2.3' | 40 c.repo.branch = 'android-4.3_r2.3' |
| 29 c.repo.sync_flags = ['-j16', '-d', '-f'] | 41 c.repo.sync_flags = ['-j16', '-d', '-f'] |
| OLD | NEW |