| 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_types import Path | 5 from recipe_engine.config_types import Path |
| 6 from recipe_engine import config as recipe_config | 6 from recipe_engine import config as recipe_config |
| 7 | 7 |
| 8 import DEPS | 8 import DEPS |
| 9 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX | 9 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 def component_builder(c): | 42 def component_builder(c): |
| 43 c.gyp_env.GYP_DEFINES['component'] = 'shared_library' # pragma: no cover | 43 c.gyp_env.GYP_DEFINES['component'] = 'shared_library' # pragma: no cover |
| 44 | 44 |
| 45 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma'], | 45 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma'], |
| 46 config_vars={'TARGET_ARCH': 'intel'}) | 46 config_vars={'TARGET_ARCH': 'intel'}) |
| 47 def x86_builder(c): | 47 def x86_builder(c): |
| 48 if c.TARGET_ARCH != 'intel': # pragma: no cover | 48 if c.TARGET_ARCH != 'intel': # pragma: no cover |
| 49 raise recipe_config.BadConf( | 49 raise recipe_config.BadConf( |
| 50 'Cannot target x86 with TARGET_ARCH == %s' % c.TARGET_ARCH) | 50 'Cannot target x86 with TARGET_ARCH == %s' % c.TARGET_ARCH) |
| 51 | 51 |
| 52 @CONFIG_CTX(includes=['x86_builder', 'mb']) |
| 53 def x86_builder_mb(c): |
| 54 pass |
| 55 |
| 52 @CONFIG_CTX(includes=['base_config', 'default_compiler'], | 56 @CONFIG_CTX(includes=['base_config', 'default_compiler'], |
| 53 config_vars={'TARGET_ARCH': 'mipsel'}) | 57 config_vars={'TARGET_ARCH': 'mipsel'}) |
| 54 def mipsel_builder(c): | 58 def mipsel_builder(c): |
| 55 if c.TARGET_ARCH != 'mipsel': # pragma: no cover | 59 if c.TARGET_ARCH != 'mipsel': # pragma: no cover |
| 56 raise recipe_config.BadConf('I dunno what to put in a mips builder!') | 60 raise recipe_config.BadConf('I dunno what to put in a mips builder!') |
| 57 | 61 |
| 62 @CONFIG_CTX(includes=['mipsel_builder', 'mb']) |
| 63 def mipsel_builder_mb(c): |
| 64 pass |
| 65 |
| 58 @CONFIG_CTX(includes=['main_builder']) | 66 @CONFIG_CTX(includes=['main_builder']) |
| 59 def dartium_builder(c): | 67 def dartium_builder(c): |
| 60 c.compile_py.default_targets=['chrome_apk', 'content_shell_apk'] | 68 c.compile_py.default_targets=['chrome_apk', 'content_shell_apk'] |
| 61 | 69 |
| 62 @CONFIG_CTX() | 70 @CONFIG_CTX() |
| 63 def cronet_builder(c): | 71 def cronet_builder(c): |
| 64 c.gyp_env.GYP_DEFINES['disable_file_support'] = 1 | 72 c.gyp_env.GYP_DEFINES['disable_file_support'] = 1 |
| 65 c.gyp_env.GYP_DEFINES['disable_ftp_support'] = 1 | 73 c.gyp_env.GYP_DEFINES['disable_ftp_support'] = 1 |
| 66 c.gyp_env.GYP_DEFINES['enable_bidirectional_stream'] = 1 | 74 c.gyp_env.GYP_DEFINES['enable_bidirectional_stream'] = 1 |
| 67 c.gyp_env.GYP_DEFINES['enable_websockets'] = 0 | 75 c.gyp_env.GYP_DEFINES['enable_websockets'] = 0 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 78 @CONFIG_CTX(includes=['arm_l_builder']) | 86 @CONFIG_CTX(includes=['arm_l_builder']) |
| 79 def arm_l_builder_lto(c): # pragma: no cover | 87 def arm_l_builder_lto(c): # pragma: no cover |
| 80 c.gyp_env.GYP_DEFINES['use_lto'] = 1 | 88 c.gyp_env.GYP_DEFINES['use_lto'] = 1 |
| 81 c.gyp_env.GYP_DEFINES['component'] = 'shared_library' | 89 c.gyp_env.GYP_DEFINES['component'] = 'shared_library' |
| 82 | 90 |
| 83 @CONFIG_CTX(includes=['arm_l_builder'], | 91 @CONFIG_CTX(includes=['arm_l_builder'], |
| 84 config_vars={'BUILD_CONFIG': 'Release'}) | 92 config_vars={'BUILD_CONFIG': 'Release'}) |
| 85 def arm_l_builder_rel(c): # pragma: no cover | 93 def arm_l_builder_rel(c): # pragma: no cover |
| 86 pass | 94 pass |
| 87 | 95 |
| 88 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma'], | 96 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma', 'mb'], |
| 89 config_vars={'TARGET_ARCH': 'intel', 'TARGET_BITS': 64}) | 97 config_vars={'TARGET_ARCH': 'intel', 'TARGET_BITS': 64}) |
| 90 def x64_builder(c): | 98 def x64_builder_mb(c): |
| 91 if c.TARGET_ARCH != 'intel' or c.TARGET_BITS != 64: | 99 if c.TARGET_ARCH != 'intel' or c.TARGET_BITS != 64: |
| 92 raise recipe_config.BadConf( | 100 raise recipe_config.BadConf( |
| 93 'Cannot target x64 with TARGET_ARCH == %s, TARGET_BITS == %d' | 101 'Cannot target x64 with TARGET_ARCH == %s, TARGET_BITS == %d' |
| 94 % (c.TARGET_ARCH, c.TARGET_BITS)) # pragma: no cover | 102 % (c.TARGET_ARCH, c.TARGET_BITS)) # pragma: no cover |
| 95 | 103 |
| 96 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma']) | 104 @CONFIG_CTX(includes=['base_config', 'default_compiler', 'goma']) |
| 97 def arm64_builder(c): | 105 def arm64_builder(c): |
| 98 gyp_defs = c.gyp_env.GYP_DEFINES | 106 gyp_defs = c.gyp_env.GYP_DEFINES |
| 99 gyp_defs['target_arch'] = 'arm64' | 107 gyp_defs['target_arch'] = 'arm64' |
| 100 | 108 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 gyp_defs = c.gyp_env.GYP_DEFINES | 190 gyp_defs = c.gyp_env.GYP_DEFINES |
| 183 gyp_defs['android_webview_telemetry_build'] = 1 | 191 gyp_defs['android_webview_telemetry_build'] = 1 |
| 184 | 192 |
| 185 @CONFIG_CTX(includes=['main_builder']) | 193 @CONFIG_CTX(includes=['main_builder']) |
| 186 def cast_builder(c): | 194 def cast_builder(c): |
| 187 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 195 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
| 188 | 196 |
| 189 @CONFIG_CTX() | 197 @CONFIG_CTX() |
| 190 def errorprone(c): | 198 def errorprone(c): |
| 191 c.gyp_env.GYP_DEFINES['enable_errorprone'] = 1 | 199 c.gyp_env.GYP_DEFINES['enable_errorprone'] = 1 |
| OLD | NEW |