| OLD | NEW |
| 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 recipe_engine.config import BadConf |
| 6 from slave.recipe_config_types import Path | 6 from recipe_engine.config_types import Path |
| 7 from slave import recipe_config | 7 from recipe_engine import config as recipe_config |
| 8 | 8 |
| 9 import DEPS | 9 import DEPS |
| 10 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX | 10 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
| 11 | 11 |
| 12 | 12 |
| 13 @CONFIG_CTX() | 13 @CONFIG_CTX() |
| 14 def v8(c): | 14 def v8(c): |
| 15 targ_arch = c.gyp_env.GYP_DEFINES.get('target_arch') | 15 targ_arch = c.gyp_env.GYP_DEFINES.get('target_arch') |
| 16 if not targ_arch: # pragma: no cover | 16 if not targ_arch: # pragma: no cover |
| 17 raise recipe_config.BadConf('v8 must have a valid target_arch.') | 17 raise recipe_config.BadConf('v8 must have a valid target_arch.') |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 def vtunejit(c): | 185 def vtunejit(c): |
| 186 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1 | 186 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1 |
| 187 | 187 |
| 188 | 188 |
| 189 @CONFIG_CTX(includes=['v8']) | 189 @CONFIG_CTX(includes=['v8']) |
| 190 def x87(c): | 190 def x87(c): |
| 191 # TODO(machenbach): Chromium does not support x87 yet. With the current | 191 # TODO(machenbach): Chromium does not support x87 yet. With the current |
| 192 # configuration, target_arch can't be set through a parameter as ARCH=intel | 192 # configuration, target_arch can't be set through a parameter as ARCH=intel |
| 193 # and BITS=32 is ambigue with x87. | 193 # and BITS=32 is ambigue with x87. |
| 194 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' | 194 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' |
| OLD | NEW |