OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 | 160 |
161 # Set ARM architecture version. | 161 # Set ARM architecture version. |
162 'arm_version%': 7, | 162 'arm_version%': 7, |
163 | 163 |
164 # Use aurax11 for clipboard implementation. This is true on linux_aura. | 164 # Use aurax11 for clipboard implementation. This is true on linux_aura. |
165 'use_clipboard_aurax11%': 0, | 165 'use_clipboard_aurax11%': 0, |
166 | 166 |
167 # goma settings. | 167 # goma settings. |
168 # 1 to use goma. | 168 # 1 to use goma. |
169 # If no gomadir is set, it uses the default gomadir. | 169 # If no gomadir is set, it uses the default gomadir. |
170 'use_goma%': 0, | 170 'use_goma%': 0, |
dshwang
2014/04/23 15:05:20
we already have use_goma, so imo it's reasonable t
| |
171 'gomadir%': '', | 171 'gomadir%': '', |
172 | 172 |
173 # When using icecc, we cannot use some build flags. e.g. debug fission, -B | |
174 'use_icecc%': 0, | |
175 | |
173 # The system root for cross-compiles. Default: none. | 176 # The system root for cross-compiles. Default: none. |
174 'sysroot%': '', | 177 'sysroot%': '', |
175 'chroot_cmd%': '', | 178 'chroot_cmd%': '', |
176 | 179 |
177 'conditions': [ | 180 'conditions': [ |
178 # Ash needs Aura. | 181 # Ash needs Aura. |
179 ['use_aura==0', { | 182 ['use_aura==0', { |
180 'use_ash%': 0, | 183 'use_ash%': 0, |
181 }], | 184 }], |
182 | 185 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 'use_ozone_evdev%': '<(use_ozone_evdev)', | 257 'use_ozone_evdev%': '<(use_ozone_evdev)', |
255 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 258 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
256 'embedded%': '<(embedded)', | 259 'embedded%': '<(embedded)', |
257 'use_openssl%': '<(use_openssl)', | 260 'use_openssl%': '<(use_openssl)', |
258 'use_openssl_certs%': '<(use_openssl_certs)', | 261 'use_openssl_certs%': '<(use_openssl_certs)', |
259 'use_system_fontconfig%': '<(use_system_fontconfig)', | 262 'use_system_fontconfig%': '<(use_system_fontconfig)', |
260 'enable_viewport%': '<(enable_viewport)', | 263 'enable_viewport%': '<(enable_viewport)', |
261 'enable_hidpi%': '<(enable_hidpi)', | 264 'enable_hidpi%': '<(enable_hidpi)', |
262 'android_webview_build%': '<(android_webview_build)', | 265 'android_webview_build%': '<(android_webview_build)', |
263 'use_goma%': '<(use_goma)', | 266 'use_goma%': '<(use_goma)', |
267 'use_icecc%': '<(use_icecc)', | |
Mostyn Bramley-Moore
2014/04/24 07:36:52
nitpick: move this down a line, to keep the goma s
dshwang
2014/04/24 07:51:37
yes, I'll fix it.
| |
264 'gomadir%': '<(gomadir)', | 268 'gomadir%': '<(gomadir)', |
265 'enable_app_list%': '<(enable_app_list)', | 269 'enable_app_list%': '<(enable_app_list)', |
266 'use_default_render_theme%': '<(use_default_render_theme)', | 270 'use_default_render_theme%': '<(use_default_render_theme)', |
267 'buildtype%': '<(buildtype)', | 271 'buildtype%': '<(buildtype)', |
268 'branding%': '<(branding)', | 272 'branding%': '<(branding)', |
269 'arm_version%': '<(arm_version)', | 273 'arm_version%': '<(arm_version)', |
270 'sysroot%': '<(sysroot)', | 274 'sysroot%': '<(sysroot)', |
271 'chroot_cmd%': '<(chroot_cmd)', | 275 'chroot_cmd%': '<(chroot_cmd)', |
272 | 276 |
273 # Set to 1 to enable fast builds. Set to 2 for even faster builds | 277 # Set to 1 to enable fast builds. Set to 2 for even faster builds |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
720 'enable_plugins%': 0, | 724 'enable_plugins%': 0, |
721 }, { | 725 }, { |
722 'enable_plugins%': 1, | 726 'enable_plugins%': 1, |
723 }], | 727 }], |
724 | 728 |
725 # linux_use_bundled_gold: whether to use the gold linker binary checked | 729 # linux_use_bundled_gold: whether to use the gold linker binary checked |
726 # into third_party/binutils. Force this off via GYP_DEFINES when you | 730 # into third_party/binutils. Force this off via GYP_DEFINES when you |
727 # are using a custom toolchain and need to control -B in ldflags. | 731 # are using a custom toolchain and need to control -B in ldflags. |
728 # Gold is not used for 32-bit linux builds as it runs out of address | 732 # Gold is not used for 32-bit linux builds as it runs out of address |
729 # space. | 733 # space. |
730 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 734 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and use_ice cc==0', { |
dshwang
2014/04/24 04:18:57
use_icecc already set other build flags here.
If
Mostyn Bramley-Moore
2014/04/24 07:36:52
Is this really needed? linux_use_bundled_gold is
dshwang
2014/04/24 07:51:37
That's good point. My machine works well without l
Lei Zhang
2014/04/24 19:06:42
I don't think it'll break anything. Before third_p
| |
731 'linux_use_bundled_gold%': 1, | 735 'linux_use_bundled_gold%': 1, |
732 }, { | 736 }, { |
733 'linux_use_bundled_gold%': 0, | 737 'linux_use_bundled_gold%': 0, |
734 }], | 738 }], |
735 | 739 |
736 # linux_use_bundled_binutils: whether to use the binary binutils | 740 # linux_use_bundled_binutils: whether to use the binary binutils |
737 # checked into third_party/binutils. These are not multi-arch so cannot | 741 # checked into third_party/binutils. These are not multi-arch so cannot |
738 # be used except on x86 and x86-64 (the only two architectures which | 742 # be used except on x86 and x86-64 (the only two architectures which |
739 # are currently checke in). Force this off via GYP_DEFINES when you | 743 # are currently checke in). Force this off via GYP_DEFINES when you |
740 # are using a custom toolchain and need to control -B in cflags. | 744 # are using a custom toolchain and need to control -B in cflags. |
741 ['OS=="linux" and (target_arch=="x64")', { | 745 ['OS=="linux" and (target_arch=="x64") and use_icecc==0', { |
742 'linux_use_bundled_binutils%': 1, | 746 'linux_use_bundled_binutils%': 1, |
743 }, { | 747 }, { |
744 'linux_use_bundled_binutils%': 0, | 748 'linux_use_bundled_binutils%': 0, |
745 }], | 749 }], |
746 | 750 |
747 # linux_use_gold_flags: whether to use build flags that rely on gold. | 751 # linux_use_gold_flags: whether to use build flags that rely on gold. |
748 # On by default for x64 Linux. Temporarily off for ChromeOS as | 752 # On by default for x64 Linux. Temporarily off for ChromeOS as |
749 # it failed on a buildbot. | 753 # it failed on a buildbot. |
750 ['OS=="linux" and target_arch=="x64" and chromeos==0', { | 754 ['OS=="linux" and target_arch=="x64" and chromeos==0', { |
751 'linux_use_gold_flags%': 1, | 755 'linux_use_gold_flags%': 1, |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1036 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', | 1040 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', |
1037 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', | 1041 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', |
1038 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', | 1042 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', |
1039 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)', | 1043 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)', |
1040 'enable_mdns%' : '<(enable_mdns)', | 1044 'enable_mdns%' : '<(enable_mdns)', |
1041 'enable_service_discovery%' : '<(enable_service_discovery)', | 1045 'enable_service_discovery%' : '<(enable_service_discovery)', |
1042 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ', | 1046 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ', |
1043 'v8_optimized_debug%': '<(v8_optimized_debug)', | 1047 'v8_optimized_debug%': '<(v8_optimized_debug)', |
1044 'proprietary_codecs%': '<(proprietary_codecs)', | 1048 'proprietary_codecs%': '<(proprietary_codecs)', |
1045 'use_goma%': '<(use_goma)', | 1049 'use_goma%': '<(use_goma)', |
1050 'use_icecc%': '<(use_icecc)', | |
Mostyn Bramley-Moore
2014/04/24 07:36:52
nitpick: move this down a line, to keep the goma s
| |
1046 'gomadir%': '<(gomadir)', | 1051 'gomadir%': '<(gomadir)', |
1047 | 1052 |
1048 # Use system protobuf instead of bundled one. | 1053 # Use system protobuf instead of bundled one. |
1049 'use_system_protobuf%': 0, | 1054 'use_system_protobuf%': 0, |
1050 | 1055 |
1051 # Use system yasm instead of bundled one. | 1056 # Use system yasm instead of bundled one. |
1052 'use_system_yasm%': 0, | 1057 'use_system_yasm%': 0, |
1053 | 1058 |
1054 # Use system ICU instead of bundled one. | 1059 # Use system ICU instead of bundled one. |
1055 'use_system_icu%' : 0, | 1060 'use_system_icu%' : 0, |
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3197 '-Wl,--no-as-needed', | 3202 '-Wl,--no-as-needed', |
3198 ], | 3203 ], |
3199 }], | 3204 }], |
3200 ['debug_unwind_tables==1', { | 3205 ['debug_unwind_tables==1', { |
3201 'cflags': ['-funwind-tables'], | 3206 'cflags': ['-funwind-tables'], |
3202 }, { | 3207 }, { |
3203 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], | 3208 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], |
3204 }], | 3209 }], |
3205 # http://gcc.gnu.org/wiki/DebugFission | 3210 # http://gcc.gnu.org/wiki/DebugFission |
3206 # Requires gold and gcc >= 4.8 or clang. | 3211 # Requires gold and gcc >= 4.8 or clang. |
3207 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi nutils_version>=223', { | 3212 ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and bi nutils_version>=223 and use_icecc==0', { |
dshwang
2014/04/24 04:18:57
There is not foo variable for "if (use_icc) { foo
Mostyn Bramley-Moore
2014/04/24 07:36:52
IMO (but I think Nico disagreed previously), this
dshwang
2014/04/24 07:51:37
if we introduce linux_use_split_dwarf, that code l
| |
3208 'cflags': ['-gsplit-dwarf'], | 3213 'cflags': ['-gsplit-dwarf'], |
3209 'ldflags': ['-Wl,--gdb-index'], | 3214 'ldflags': ['-Wl,--gdb-index'], |
3210 }], | 3215 }], |
3211 ], | 3216 ], |
3212 }, | 3217 }, |
3213 'Release_Base': { | 3218 'Release_Base': { |
3214 'variables': { | 3219 'variables': { |
3215 'release_optimize%': '2', | 3220 'release_optimize%': '2', |
3216 # Binaries become big and gold is unable to perform GC | 3221 # Binaries become big and gold is unable to perform GC |
3217 # and remove unused sections for some of test targets | 3222 # and remove unused sections for some of test targets |
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5220 # settings in target dicts. SYMROOT is a special case, because many other | 5225 # settings in target dicts. SYMROOT is a special case, because many other |
5221 # Xcode variables depend on it, including variables such as | 5226 # Xcode variables depend on it, including variables such as |
5222 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5227 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5223 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5228 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5224 # files to appear (when present) in the UI as actual files and not red | 5229 # files to appear (when present) in the UI as actual files and not red |
5225 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5230 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5226 # and therefore SYMROOT, needs to be set at the project level. | 5231 # and therefore SYMROOT, needs to be set at the project level. |
5227 'SYMROOT': '<(DEPTH)/xcodebuild', | 5232 'SYMROOT': '<(DEPTH)/xcodebuild', |
5228 }, | 5233 }, |
5229 } | 5234 } |
OLD | NEW |