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', |
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 api.chromium.c.TARGET_PLATFORM != 'android': | |
kjellander_chromium
2016/09/13 13:39:21
I guess it doesn't matter if we do it for Android
| |
30 api.chromium.cleanup_temp() | |
31 | |
28 api.chromium.ensure_goma() | 32 api.chromium.ensure_goma() |
29 api.chromium.runhooks() | 33 api.chromium.runhooks() |
30 | 34 |
31 if libyuv.should_build: | 35 if libyuv.should_build: |
32 if api.chromium.c.project_generator.tool == 'gn': | 36 if api.chromium.c.project_generator.tool == 'gn': |
33 api.chromium.run_gn(use_goma=True) | 37 api.chromium.run_gn(use_goma=True) |
34 api.chromium.compile(targets=['all']) | 38 api.chromium.compile(targets=['all']) |
35 else: | 39 else: |
36 api.chromium.compile() | 40 api.chromium.compile() |
37 | 41 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 | 80 |
77 # Forced builds (not specifying any revision) and test failures. | 81 # Forced builds (not specifying any revision) and test failures. |
78 mastername = 'client.libyuv' | 82 mastername = 'client.libyuv' |
79 yield generate_builder(mastername, 'Linux64 Debug', revision=None, | 83 yield generate_builder(mastername, 'Linux64 Debug', revision=None, |
80 suffix='_forced') | 84 suffix='_forced') |
81 yield generate_builder(mastername, 'Android Debug', revision=None, | 85 yield generate_builder(mastername, 'Android Debug', revision=None, |
82 suffix='_forced') | 86 suffix='_forced') |
83 | 87 |
84 yield generate_builder('tryserver.libyuv', 'linux', revision=None, | 88 yield generate_builder('tryserver.libyuv', 'linux', revision=None, |
85 suffix='_forced') | 89 suffix='_forced') |
OLD | NEW |