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

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: Rebased, removed video_engine_tests 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 'linux': ('linux', 'chromeos', 'android'), 103 'linux': ('linux', 'chromeos', 'android'),
104 }.get(c.HOST_PLATFORM) 104 }.get(c.HOST_PLATFORM)
105 105
106 if not potential_platforms: # pragma: no cover 106 if not potential_platforms: # pragma: no cover
107 raise BadConf('Cannot build on "%s"' % c.HOST_PLATFORM) 107 raise BadConf('Cannot build on "%s"' % c.HOST_PLATFORM)
108 108
109 if c.TARGET_PLATFORM not in potential_platforms: 109 if c.TARGET_PLATFORM not in potential_platforms:
110 raise BadConf('Can not compile "%s" on "%s"' % 110 raise BadConf('Can not compile "%s" on "%s"' %
111 (c.TARGET_PLATFORM, c.HOST_PLATFORM)) 111 (c.TARGET_PLATFORM, c.HOST_PLATFORM))
112 112
113 if c.HOST_PLATFORM != c.TARGET_PLATFORM:
114 c.gyp_env.GYP_CROSSCOMPILE = 1
115
113 if c.HOST_BITS < c.TARGET_BITS: 116 if c.HOST_BITS < c.TARGET_BITS:
114 raise BadConf('host bits < targ bits') 117 raise BadConf('host bits < targ bits')
115 118
116 c.build_config_fs = c.BUILD_CONFIG 119 c.build_config_fs = c.BUILD_CONFIG
117 if c.HOST_PLATFORM == 'win': 120 if c.HOST_PLATFORM == 'win':
118 if c.TARGET_BITS == 64: 121 if c.TARGET_BITS == 64:
119 # Windows requires 64-bit builds to be in <dir>_x64. 122 # Windows requires 64-bit builds to be in <dir>_x64.
120 c.build_config_fs = c.BUILD_CONFIG + '_x64' 123 c.build_config_fs = c.BUILD_CONFIG + '_x64'
121 c.gyp_env.GYP_MSVS_VERSION = '2012' 124 c.gyp_env.GYP_MSVS_VERSION = '2012'
122 else: 125 else:
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 def chromium_clang(c): 225 def chromium_clang(c):
223 c.compile_py.default_targets = ['All', 'chromium_builder_tests'] 226 c.compile_py.default_targets = ['All', 'chromium_builder_tests']
224 227
225 @config_ctx(includes=['chromium']) 228 @config_ctx(includes=['chromium'])
226 def blink(c): 229 def blink(c):
227 c.compile_py.default_targets = ['blink_tests'] 230 c.compile_py.default_targets = ['blink_tests']
228 231
229 @config_ctx(includes=['chromium_clang']) 232 @config_ctx(includes=['chromium_clang'])
230 def blink_clang(c): 233 def blink_clang(c):
231 c.compile_py.default_targets = ['blink_tests'] 234 c.compile_py.default_targets = ['blink_tests']
235
236 @config_ctx(includes=['ninja', 'static_library', 'default_compiler', 'goma'])
237 def android(c):
238 gyp_defs = c.gyp_env.GYP_DEFINES
239 gyp_defs['fastbuild'] = 1
240 gyp_defs['OS'] = c.TARGET_PLATFORM
241 gyp_defs['host_os'] = c.HOST_PLATFORM
242 gyp_defs['gcc_version'] = 46
243 gyp_defs['order_text_section'] = Path(
244 '[CHECKOUT]', 'orderfiles', 'orderfile.out')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698