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

Side by Side Diff: scripts/slave/recipe_modules/chromium/config.py

Issue 75163006: WebRTC Android APK trybot recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Addressed comments and refactored Created 7 years 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 | Annotate | Revision Log
OLDNEW
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 5 from slave.recipe_config import config_item_context, ConfigGroup
6 from slave.recipe_config import Dict, Single, Static, Set, BadConf 6 from slave.recipe_config import Dict, Single, Static, Set, BadConf
7 from slave.recipe_config_types import Path 7 from slave.recipe_config_types import Path
8 8
9 # Because of the way that we use decorators, pylint can't figure out the proper 9 # Because of the way that we use decorators, pylint can't figure out the proper
10 # type signature of functions annotated with the @config_ctx decorator. 10 # type signature of functions annotated with the @config_ctx decorator.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 def chromium_clang(c): 212 def chromium_clang(c):
213 c.compile_py.default_targets = ['All', 'chromium_builder_tests'] 213 c.compile_py.default_targets = ['All', 'chromium_builder_tests']
214 214
215 @config_ctx(includes=['chromium']) 215 @config_ctx(includes=['chromium'])
216 def blink(c): 216 def blink(c):
217 c.compile_py.default_targets = ['blink_tests'] 217 c.compile_py.default_targets = ['blink_tests']
218 218
219 @config_ctx(includes=['chromium_clang']) 219 @config_ctx(includes=['chromium_clang'])
220 def blink_clang(c): 220 def blink_clang(c):
221 c.compile_py.default_targets = ['blink_tests'] 221 c.compile_py.default_targets = ['blink_tests']
222
223 @config_ctx(includes=['ninja', 'static_library', 'default_compiler', 'goma'])
224 def android(c):
225 c.gyp_env.GYP_CROSSCOMPILE = 1
iannucci 2013/11/21 00:33:59 Should we just set this in BASE() any time HOST_PL
kjellander_chromium 2013/11/22 12:49:09 That is an excellent idea. I'm not 100% sure it's
226 gyp_defs = c.gyp_env.GYP_DEFINES
227 gyp_defs['fastbuild'] = 1
228 gyp_defs['OS'] = c.TARGET_PLATFORM
229 gyp_defs['host_os'] = c.HOST_PLATFORM
230 gyp_defs['gcc_version'] = 46
231 gyp_defs['order_text_section'] = Path(
232 '[CHECKOUT]', 'orderfiles', 'orderfile.out')
233 gyp_defs['target_arch'] = c.TARGET_ARCH
iannucci 2013/11/21 00:33:59 I think target_arch is now automatically handled f
kjellander_chromium 2013/11/22 12:49:09 Ah, that's great.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698