OLD | NEW |
| (Empty) |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 | |
6 """Utility class to build the Skia master BuildFactory's for Android buildbots. | |
7 | |
8 Overrides SkiaFactory with any Android-specific steps.""" | |
9 | |
10 | |
11 from buildbot.process.properties import WithProperties | |
12 from skia_master_scripts import factory as skia_factory | |
13 | |
14 | |
15 class AndroidFactory(skia_factory.SkiaFactory): | |
16 """Overrides for Android builds.""" | |
17 | |
18 def __init__(self, device, test_args=None, **kwargs): | |
19 """ Instantiates an AndroidFactory with properties and build steps specific | |
20 to Android devices. | |
21 | |
22 device: string indicating which Android device type we are targeting | |
23 """ | |
24 skia_factory.SkiaFactory.__init__(self, | |
25 deps_target_os='android', | |
26 flavor='android', | |
27 build_targets=['all'], | |
28 test_args=list(test_args or []) + \ | |
29 ['--match', '~Threaded'], | |
30 **kwargs) | |
31 self._device = device | |
32 self._common_args += ['--device', self._device, | |
33 '--serial', WithProperties('%(serial:-None)s'), | |
34 '--has_root', WithProperties('%(has_root:-True)s'), | |
35 '--android_sdk_root', | |
36 WithProperties('%(android_sdk_root)s')] | |
37 | |
OLD | NEW |