Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: scripts/slave/recipe_modules/libyuv/api.py

Issue 2412033002: libyuv: Switch bots over to GN by default. (Closed)
Patch Set: Reverted is_component_build changes in chromium recipe module. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 from recipe_engine import recipe_api 5 from recipe_engine import recipe_api
6 from . import builders 6 from . import builders
7 7
8 8
9 class LibyuvApi(recipe_api.RecipeApi): 9 class LibyuvApi(recipe_api.RecipeApi):
10 BUILDERS = builders.BUILDERS 10 BUILDERS = builders.BUILDERS
(...skipping 27 matching lines...) Expand all
38 self.m.chromium.set_config(self.recipe_config['chromium_config'], 38 self.m.chromium.set_config(self.recipe_config['chromium_config'],
39 **chromium_kwargs) 39 **chromium_kwargs)
40 self.m.gclient.set_config(self.recipe_config['gclient_config']) 40 self.m.gclient.set_config(self.recipe_config['gclient_config'])
41 41
42 # Support applying configs both at the bot and the recipe config level. 42 # Support applying configs both at the bot and the recipe config level.
43 for c in self.bot_config.get('chromium_apply_config', []): 43 for c in self.bot_config.get('chromium_apply_config', []):
44 self.m.chromium.apply_config(c) 44 self.m.chromium.apply_config(c)
45 for c in self.bot_config.get('gclient_apply_config', []): 45 for c in self.bot_config.get('gclient_apply_config', []):
46 self.m.gclient.apply_config(c) 46 self.m.gclient.apply_config(c)
47 47
48 if 'gyp' not in buildername.lower():
49 self.m.chromium.apply_config('gn')
50
48 if self.m.tryserver.is_tryserver: 51 if self.m.tryserver.is_tryserver:
49 self.m.chromium.apply_config('trybot_flavor') 52 self.m.chromium.apply_config('trybot_flavor')
50 53
51 @property 54 @property
52 def should_build(self): 55 def should_build(self):
53 return self.bot_type in ('builder', 'builder_tester') 56 return self.bot_type in ('builder', 'builder_tester')
54 57
55 @property 58 @property
56 def should_test(self): 59 def should_test(self):
57 return self.bot_type in ('tester', 'builder_tester') 60 return self.bot_type in ('tester', 'builder_tester')
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 if self.m.chromium.c.TARGET_PLATFORM == 'android': 122 if self.m.chromium.c.TARGET_PLATFORM == 'android':
120 self.m.chromium_android.common_tests_setup_steps() 123 self.m.chromium_android.common_tests_setup_steps()
121 self.m.chromium_android.run_test_suite('yuv_unittest') 124 self.m.chromium_android.run_test_suite('yuv_unittest')
122 self.m.chromium_android.shutdown_device_monitor() 125 self.m.chromium_android.shutdown_device_monitor()
123 self.m.chromium_android.logcat_dump( 126 self.m.chromium_android.logcat_dump(
124 gs_bucket=self.master_config.get('build_gs_bucket')) 127 gs_bucket=self.master_config.get('build_gs_bucket'))
125 self.m.chromium_android.stack_tool_steps(force_latest_version=True) 128 self.m.chromium_android.stack_tool_steps(force_latest_version=True)
126 self.m.chromium_android.test_report() 129 self.m.chromium_android.test_report()
127 else: 130 else:
128 self.m.chromium.runtest('libyuv_unittest') 131 self.m.chromium.runtest('libyuv_unittest')
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/config.py ('k') | scripts/slave/recipe_modules/libyuv/builders.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698