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 """ | 5 """ |
6 Recipe for building and running tests for Libyuv stand-alone. | 6 Recipe for building and running tests for Libyuv stand-alone. |
7 """ | 7 """ |
8 | 8 |
9 from recipe_engine.types import freeze | 9 from recipe_engine.types import freeze |
10 | 10 |
11 DEPS = [ | 11 DEPS = [ |
12 'chromium', | 12 'chromium', |
kjellander_chromium
2016/09/13 11:59:18
you need the 'chromium_android' recipe module in D
| |
13 'depot_tools/bot_update', | 13 'depot_tools/bot_update', |
14 'depot_tools/gclient', | 14 'depot_tools/gclient', |
15 'depot_tools/tryserver', | 15 'depot_tools/tryserver', |
16 'libyuv', | 16 'libyuv', |
17 'recipe_engine/path', | 17 'recipe_engine/path', |
18 'recipe_engine/platform', | 18 'recipe_engine/platform', |
19 'recipe_engine/properties', | 19 'recipe_engine/properties', |
20 'recipe_engine/step', | 20 'recipe_engine/step', |
21 ] | 21 ] |
22 | 22 |
23 def RunSteps(api): | 23 def RunSteps(api): |
24 libyuv = api.libyuv | 24 libyuv = api.libyuv |
25 libyuv.apply_bot_config(libyuv.BUILDERS, libyuv.RECIPE_CONFIGS) | 25 libyuv.apply_bot_config(libyuv.BUILDERS, libyuv.RECIPE_CONFIGS) |
26 | 26 |
27 api.bot_update.ensure_checkout() | 27 api.bot_update.ensure_checkout() |
28 | |
29 if self.m.chromium.c.TARGET_PLATFORM == 'android': | |
30 self.m.chromium_android.clean_local_files() | |
kjellander_chromium
2016/09/13 11:59:17
I'm afraid this might break due to self.c.BUILD_CO
| |
31 else: | |
32 self.m.chromium.cleanup_temp() | |
33 | |
28 api.chromium.ensure_goma() | 34 api.chromium.ensure_goma() |
29 api.chromium.runhooks() | 35 api.chromium.runhooks() |
30 | 36 |
31 if libyuv.should_build: | 37 if libyuv.should_build: |
32 if api.chromium.c.project_generator.tool == 'gn': | 38 if api.chromium.c.project_generator.tool == 'gn': |
33 api.chromium.run_gn(use_goma=True) | 39 api.chromium.run_gn(use_goma=True) |
34 api.chromium.compile(targets=['all']) | 40 api.chromium.compile(targets=['all']) |
35 else: | 41 else: |
36 api.chromium.compile() | 42 api.chromium.compile() |
37 | 43 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 | 82 |
77 # Forced builds (not specifying any revision) and test failures. | 83 # Forced builds (not specifying any revision) and test failures. |
78 mastername = 'client.libyuv' | 84 mastername = 'client.libyuv' |
79 yield generate_builder(mastername, 'Linux64 Debug', revision=None, | 85 yield generate_builder(mastername, 'Linux64 Debug', revision=None, |
80 suffix='_forced') | 86 suffix='_forced') |
81 yield generate_builder(mastername, 'Android Debug', revision=None, | 87 yield generate_builder(mastername, 'Android Debug', revision=None, |
82 suffix='_forced') | 88 suffix='_forced') |
83 | 89 |
84 yield generate_builder('tryserver.libyuv', 'linux', revision=None, | 90 yield generate_builder('tryserver.libyuv', 'linux', revision=None, |
85 suffix='_forced') | 91 suffix='_forced') |
OLD | NEW |