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

Side by Side Diff: scripts/slave/recipe_modules/v8/chromium_config.py

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Review comments Created 5 years, 7 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 | 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 BadConf 5 from slave.recipe_config import BadConf
6 from slave.recipe_config_types import Path 6 from slave.recipe_config_types import Path
7 from slave import recipe_config 7 from slave import recipe_config
8 from RECIPE_MODULES.chromium import CONFIG_CTX 8
9 import DEPS
10 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX
9 11
10 12
11 @CONFIG_CTX() 13 @CONFIG_CTX()
12 def v8(c): 14 def v8(c):
13 targ_arch = c.gyp_env.GYP_DEFINES.get('target_arch') 15 targ_arch = c.gyp_env.GYP_DEFINES.get('target_arch')
14 if not targ_arch: # pragma: no cover 16 if not targ_arch: # pragma: no cover
15 raise recipe_config.BadConf('v8 must have a valid target_arch.') 17 raise recipe_config.BadConf('v8 must have a valid target_arch.')
16 if c.TARGET_PLATFORM == 'android': 18 if c.TARGET_PLATFORM == 'android':
17 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'android_' + targ_arch 19 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'android_' + targ_arch
18 else: 20 else:
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 def vtunejit(c): 180 def vtunejit(c):
179 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1 181 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1
180 182
181 183
182 @CONFIG_CTX(includes=['v8']) 184 @CONFIG_CTX(includes=['v8'])
183 def x87(c): 185 def x87(c):
184 # TODO(machenbach): Chromium does not support x87 yet. With the current 186 # TODO(machenbach): Chromium does not support x87 yet. With the current
185 # configuration, target_arch can't be set through a parameter as ARCH=intel 187 # configuration, target_arch can't be set through a parameter as ARCH=intel
186 # and BITS=32 is ambigue with x87. 188 # and BITS=32 is ambigue with x87.
187 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' 189 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87'
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/v8/api.py ('k') | scripts/slave/recipe_modules/v8/gclient_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698