| 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 recipe_engine.config import BadConf | 5 from recipe_engine.config import BadConf |
| 6 from recipe_engine.config_types import Path | 6 from recipe_engine.config_types import Path |
| 7 from recipe_engine import config as 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 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 @CONFIG_CTX(includes=['ninja']) | 115 @CONFIG_CTX(includes=['ninja']) |
| 116 def v8_ninja(c): | 116 def v8_ninja(c): |
| 117 c.gyp_env.GYP_GENERATORS.add('ninja') | 117 c.gyp_env.GYP_GENERATORS.add('ninja') |
| 118 | 118 |
| 119 if c.HOST_PLATFORM == 'win' and c.TARGET_BITS == 64: | 119 if c.HOST_PLATFORM == 'win' and c.TARGET_BITS == 64: |
| 120 # Windows requires 64-bit builds to be in <dir>_x64 with ninja. See | 120 # Windows requires 64-bit builds to be in <dir>_x64 with ninja. See |
| 121 # crbug.com/470681. | 121 # crbug.com/470681. |
| 122 c.build_config_fs = c.BUILD_CONFIG + '_x64' | 122 c.build_config_fs = c.BUILD_CONFIG + '_x64' |
| 123 | 123 |
| 124 | 124 |
| 125 @CONFIG_CTX(includes=['ninja']) |
| 126 def v8_xcode_ninja(c): |
| 127 c.gyp_env.GYP_GENERATORS.add('ninja') |
| 128 c.gyp_env.GYP_GENERATORS.add('xcode-ninja') |
| 129 |
| 130 |
| 125 # Work-around for obtaining the right build dir on linux slave that trigger | 131 # Work-around for obtaining the right build dir on linux slave that trigger |
| 126 # windows 64 bit swarming jobs. | 132 # windows 64 bit swarming jobs. |
| 127 @CONFIG_CTX(includes=['v8']) | 133 @CONFIG_CTX(includes=['v8']) |
| 128 def use_windows_swarming_slaves(c): | 134 def use_windows_swarming_slaves(c): |
| 129 if c.TARGET_BITS == 64: | 135 if c.TARGET_BITS == 64: |
| 130 c.build_config_fs = c.BUILD_CONFIG + '_x64' | 136 c.build_config_fs = c.BUILD_CONFIG + '_x64' |
| 131 | 137 |
| 132 | 138 |
| 133 @CONFIG_CTX(includes=['v8', 'dcheck']) | 139 @CONFIG_CTX(includes=['v8', 'dcheck']) |
| 134 def no_dcheck(c): | 140 def no_dcheck(c): |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 def vtunejit(c): | 209 def vtunejit(c): |
| 204 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1 | 210 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1 |
| 205 | 211 |
| 206 | 212 |
| 207 @CONFIG_CTX(includes=['v8']) | 213 @CONFIG_CTX(includes=['v8']) |
| 208 def x87(c): | 214 def x87(c): |
| 209 # TODO(machenbach): Chromium does not support x87 yet. With the current | 215 # TODO(machenbach): Chromium does not support x87 yet. With the current |
| 210 # configuration, target_arch can't be set through a parameter as ARCH=intel | 216 # configuration, target_arch can't be set through a parameter as ARCH=intel |
| 211 # and BITS=32 is ambigue with x87. | 217 # and BITS=32 is ambigue with x87. |
| 212 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' | 218 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' |
| OLD | NEW |