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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 @CONFIG_CTX(includes=['v8']) | 80 @CONFIG_CTX(includes=['v8']) |
81 def internal_snapshot(c): | 81 def internal_snapshot(c): |
82 c.gyp_env.GYP_DEFINES['v8_use_external_startup_data'] = 0 | 82 c.gyp_env.GYP_DEFINES['v8_use_external_startup_data'] = 0 |
83 | 83 |
84 | 84 |
85 @CONFIG_CTX(includes=['v8']) | 85 @CONFIG_CTX(includes=['v8']) |
86 def interpreted_regexp(c): | 86 def interpreted_regexp(c): |
87 c.gyp_env.GYP_DEFINES['v8_interpreted_regexp'] = 1 | 87 c.gyp_env.GYP_DEFINES['v8_interpreted_regexp'] = 1 |
88 | 88 |
89 | 89 |
90 @CONFIG_CTX(group='builder') | 90 @CONFIG_CTX(includes=['v8'], group='builder') |
91 def make(c): | 91 def make(c): |
92 c.build_dir = Path('[CHECKOUT]', 'out') | 92 c.build_dir = Path('[CHECKOUT]', 'out') |
93 c.compile_py.build_tool = 'make' | 93 c.compile_py.build_tool = 'make' |
94 | 94 |
95 | 95 |
96 @CONFIG_CTX(includes=['ninja']) | 96 @CONFIG_CTX(includes=['ninja']) |
97 def v8_ninja(c): | 97 def v8_ninja(c): |
98 c.gyp_env.GYP_GENERATORS.add('ninja') | 98 c.gyp_env.GYP_GENERATORS.add('ninja') |
99 | 99 |
100 if c.HOST_PLATFORM == 'win' and c.TARGET_BITS == 64: | 100 if c.HOST_PLATFORM == 'win' and c.TARGET_BITS == 64: |
101 # Windows requires 64-bit builds to be in <dir>_x64 with ninja. See | 101 # Windows requires 64-bit builds to be in <dir>_x64 with ninja. See |
102 # crbug.com/470681. | 102 # crbug.com/470681. |
103 c.build_config_fs = c.BUILD_CONFIG + '_x64' | 103 c.build_config_fs = c.BUILD_CONFIG + '_x64' |
104 | 104 |
105 | 105 |
106 @CONFIG_CTX(includes=['v8']) | |
107 def no_clang(c): | |
108 c.gyp_env.GYP_DEFINES['clang'] = 0 | |
109 | |
110 | |
111 @CONFIG_CTX(includes=['v8', 'dcheck']) | 106 @CONFIG_CTX(includes=['v8', 'dcheck']) |
112 def no_dcheck(c): | 107 def no_dcheck(c): |
113 c.gyp_env.GYP_DEFINES['dcheck_always_on'] = 0 | 108 c.gyp_env.GYP_DEFINES['dcheck_always_on'] = 0 |
114 | 109 |
115 | 110 |
116 @CONFIG_CTX(includes=['v8']) | 111 @CONFIG_CTX(includes=['v8']) |
117 def no_i18n(c): | 112 def no_i18n(c): |
118 c.gyp_env.GYP_DEFINES['v8_enable_i18n_support'] = 0 | 113 c.gyp_env.GYP_DEFINES['v8_enable_i18n_support'] = 0 |
119 | 114 |
120 | 115 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 def x32(c): | 183 def x32(c): |
189 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x32' | 184 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x32' |
190 | 185 |
191 | 186 |
192 @CONFIG_CTX(includes=['v8']) | 187 @CONFIG_CTX(includes=['v8']) |
193 def x87(c): | 188 def x87(c): |
194 # TODO(machenbach): Chromium does not support x87 yet. With the current | 189 # TODO(machenbach): Chromium does not support x87 yet. With the current |
195 # configuration, target_arch can't be set through a parameter as ARCH=intel | 190 # configuration, target_arch can't be set through a parameter as ARCH=intel |
196 # and BITS=32 is ambigue with x87. | 191 # and BITS=32 is ambigue with x87. |
197 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' | 192 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' |
OLD | NEW |