blob: 4b5621ad244da7abeb3a2335bc62aba34d53f03e [file] [log] [blame]
[email protected]ed329be2012-01-03 22:02:161# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]2f80c312009-02-25 21:26:552# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
[email protected]21642ab2009-09-15 23:52:145# IMPORTANT:
6# Please don't directly include this file if you are building via gyp_chromium,
7# since gyp_chromium is automatically forcing its inclusion.
[email protected]2f80c312009-02-25 21:26:558{
[email protected]e72e55b2011-01-06 22:19:309 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi.
[email protected]2f80c312009-02-25 21:26:5511 'variables': {
[email protected]e14a9f92009-08-05 19:26:0712 # Putting a variables dict inside another variables dict looks kind of
[email protected]e72e55b2011-01-06 22:19:3013 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as
[email protected]e14a9f92009-08-05 19:26:0714 # variables within the outer variables dict here. This is necessary
15 # to get these variables defined for the conditions within this variables
[email protected]9a8175892012-03-20 02:11:5816 # dict that operate on these variables.
[email protected]e14a9f92009-08-05 19:26:0717 'variables': {
[email protected]e72e55b2011-01-06 22:19:3018 'variables': {
[email protected]bb6aba32011-01-07 19:04:4319 'variables': {
[email protected]8796d922012-08-07 01:23:1120 'variables': {
21 # Whether we're building a ChromeOS build.
22 'chromeos%': 0,
23
[email protected]24641702014-07-03 17:20:1524 # Whether we're building the cast (chromecast) shell
25 'chromecast%': 0,
26
[email protected]8796d922012-08-07 01:23:1127 # Whether or not we are using the Aura windowing framework.
28 'use_aura%': 0,
29
30 # Whether or not we are building the Ash shell.
31 'use_ash%': 0,
[email protected]c335f4802013-04-06 04:51:2132
[email protected]2a76009b2013-08-07 21:02:3133 # Whether or not we are using CRAS, the ChromeOS Audio Server.
34 'use_cras%': 0,
35
[email protected]ff78e4e2013-05-03 19:19:1536 # Use a raw surface abstraction.
37 'use_ozone%': 0,
[email protected]02968b82013-11-14 02:42:4338
39 # Configure the build for small devices. See crbug.com/318413
40 'embedded%': 0,
[email protected]1731cd42014-03-26 19:10:0241
42 'conditions': [
43 # Compute the architecture that we're building on.
44 ['OS=="win" or OS=="mac" or OS=="ios"', {
45 'host_arch%': 'ia32',
46 }, {
[email protected]d2f389242014-06-06 09:56:4447 'host_arch%': '<!pymod_do_main(detect_host_arch)',
[email protected]1731cd42014-03-26 19:10:0248 }],
49 ],
[email protected]8796d922012-08-07 01:23:1150 },
51 # Copy conditionally-set variables out one scope.
52 'chromeos%': '<(chromeos)',
[email protected]24641702014-07-03 17:20:1553 'chromecast%': '<(chromecast)',
[email protected]8796d922012-08-07 01:23:1154 'use_aura%': '<(use_aura)',
55 'use_ash%': '<(use_ash)',
[email protected]2a76009b2013-08-07 21:02:3156 'use_cras%': '<(use_cras)',
[email protected]ff78e4e2013-05-03 19:19:1557 'use_ozone%': '<(use_ozone)',
[email protected]02968b82013-11-14 02:42:4358 'embedded%': '<(embedded)',
[email protected]1731cd42014-03-26 19:10:0259 'host_arch%': '<(host_arch)',
[email protected]e72e55b2011-01-06 22:19:3060
[email protected]3fa441d2011-09-18 17:28:5061 # Whether we are using Views Toolkit
62 'toolkit_views%': 0,
63
[email protected]e1b2d732014-03-28 16:20:3264 # Use OpenSSL instead of NSS as the underlying SSL and crypto
65 # implementation. Certificate verification will in most cases be
66 # handled by the OS. If OpenSSL's struct X509 is used to represent
67 # certificates, use_openssl_certs must be set.
[email protected]e0b85a52011-10-06 03:30:4268 'use_openssl%': 0,
[email protected]023d8242011-11-22 01:25:2769
[email protected]e1b2d732014-03-28 16:20:3270 # Typedef X509Certificate::OSCertHandle to OpenSSL's struct X509*.
71 'use_openssl_certs%': 0,
72
[email protected]7ddea9802012-02-22 23:08:0573 # Disable viewport meta tag by default.
74 'enable_viewport%': 0,
[email protected]1efbaaa2012-04-24 02:43:2475
76 # Enable HiDPI support.
77 'enable_hidpi%': 0,
[email protected]219c7312012-05-10 20:32:4078
[email protected]f1f362b42012-05-15 17:46:5879 # Override buildtype to select the desired build flavor.
80 # Dev - everyday build for development/testing
81 # Official - release build (generally implies additional processing)
82 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
83 # conversion is done), some of the things which are now controlled by
84 # 'branding', such as symbol generation, will need to be refactored
85 # based on 'buildtype' (i.e. we don't care about saving symbols for
86 # non-Official # builds).
87 'buildtype%': 'Dev',
[email protected]8796d922012-08-07 01:23:1188
[email protected]e2aaaac2013-05-08 07:20:0989 # Override branding to select the desired branding flavor.
90 'branding%': 'Chromium',
91
[email protected]8796d922012-08-07 01:23:1192 'conditions': [
[email protected]2d0505202013-09-16 00:22:5293 # ChromeOS and Windows use Aura and Ash.
[email protected]15119302014-05-20 19:23:5894 ['chromeos==1 or OS=="win" or OS=="linux"', {
[email protected]8796d922012-08-07 01:23:1195 'use_ash%': 1,
[email protected]978a2ae2013-09-13 04:28:0196 'use_aura%': 1,
[email protected]8796d922012-08-07 01:23:1197 }],
[email protected]020648aa2013-06-08 17:16:4798
[email protected]24641702014-07-03 17:20:1599 ['chromecast==1', {
100 'embedded%': 1,
101 'use_ozone%': 1,
102 }],
103
[email protected]02968b82013-11-14 02:42:43104 # Ozone uses Aura.
105 ['use_ozone==1', {
106 'use_aura%': 1,
107 }],
108
[email protected]7ed44342013-09-30 08:36:13109 # Whether we're a traditional desktop unix.
110 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and chromeos==0', {
111 'desktop_linux%': 1,
112 }, {
113 'desktop_linux%': 0,
114 }],
115
[email protected]02968b82013-11-14 02:42:43116 # Embedded implies ozone.
117 ['embedded==1', {
118 'use_ozone%': 1,
119 }],
[email protected]e71a3622013-12-04 07:32:41120
[email protected]1731cd42014-03-26 19:10:02121 ['OS=="android"', {
122 'target_arch%': 'arm',
123 }, {
124 # Default architecture we're building for is the architecture we're
125 # building on, and possibly sub-architecture (for iOS builds).
126 'target_arch%': '<(host_arch)',
127 }],
[email protected]8796d922012-08-07 01:23:11128 ],
[email protected]bb6aba32011-01-07 19:04:43129 },
130 # Copy conditionally-set variables out one scope.
131 'chromeos%': '<(chromeos)',
[email protected]24641702014-07-03 17:20:15132 'chromecast%': '<(chromecast)',
[email protected]7ed44342013-09-30 08:36:13133 'desktop_linux%': '<(desktop_linux)',
[email protected]41423092011-08-25 15:39:58134 'use_aura%': '<(use_aura)',
[email protected]ed329be2012-01-03 22:02:16135 'use_ash%': '<(use_ash)',
[email protected]2a76009b2013-08-07 21:02:31136 'use_cras%': '<(use_cras)',
[email protected]ff78e4e2013-05-03 19:19:15137 'use_ozone%': '<(use_ozone)',
[email protected]02968b82013-11-14 02:42:43138 'embedded%': '<(embedded)',
[email protected]e0b85a52011-10-06 03:30:42139 'use_openssl%': '<(use_openssl)',
[email protected]e1b2d732014-03-28 16:20:32140 'use_openssl_certs%': '<(use_openssl_certs)',
[email protected]7ddea9802012-02-22 23:08:05141 'enable_viewport%': '<(enable_viewport)',
[email protected]1efbaaa2012-04-24 02:43:24142 'enable_hidpi%': '<(enable_hidpi)',
[email protected]f1f362b42012-05-15 17:46:58143 'buildtype%': '<(buildtype)',
[email protected]e2aaaac2013-05-08 07:20:09144 'branding%': '<(branding)',
[email protected]94cdbf42012-12-11 19:49:22145 'host_arch%': '<(host_arch)',
[email protected]1731cd42014-03-26 19:10:02146 'target_arch%': '<(target_arch)',
[email protected]94cdbf42012-12-11 19:49:22147
[email protected]ce2cad72014-02-13 18:17:35148 'target_subarch%': '',
[email protected]f1f362b42012-05-15 17:46:58149
[email protected]d999c3cb2013-03-12 10:22:36150 # This is set when building the Android WebView inside the Android
151 # build system, using the 'android' gyp backend. The WebView code is
152 # still built when this is unset, but builds using the normal chromium
153 # build system.
154 'android_webview_build%': 0,
[email protected]0115f042012-07-27 20:36:53155
[email protected]967767d2014-07-16 05:46:24156 # This is set when building the Android WebView in ninja for the
157 # telemetry bot.
158 'android_webview_telemetry_build%': 0,
159
[email protected]7d6763422013-04-26 12:06:54160 # Set ARM architecture version.
161 'arm_version%': 7,
162
[email protected]89dcd662013-12-12 23:06:50163 # Use aurax11 for clipboard implementation. This is true on linux_aura.
164 'use_clipboard_aurax11%': 0,
165
[email protected]e71a3622013-12-04 07:32:41166 # goma settings.
167 # 1 to use goma.
168 # If no gomadir is set, it uses the default gomadir.
169 'use_goma%': 0,
170 'gomadir%': '',
171
[email protected]1731cd42014-03-26 19:10:02172 # The system root for cross-compiles. Default: none.
173 'sysroot%': '',
174 'chroot_cmd%': '',
175
[email protected]03df8362014-06-04 00:17:11176 # The system libdir used for this ABI.
177 'system_libdir%': 'lib',
178
petarjc8a5da742014-08-27 14:33:36179 # Default MIPS arch variant. This is set in the conditions block
180 # below for MIPS targets.
181 'mips_arch_variant%': '',
182
[email protected]e72e55b2011-01-06 22:19:30183 'conditions': [
[email protected]2c858a82013-10-05 01:01:32184 # Ash needs Aura.
185 ['use_aura==0', {
186 'use_ash%': 0,
187 }],
188
[email protected]ab2017e2012-02-07 01:54:50189 # Set default value of toolkit_views based on OS.
[email protected]6e00601b72012-03-19 15:40:35190 ['OS=="win" or chromeos==1 or use_aura==1', {
[email protected]bb6aba32011-01-07 19:04:43191 'toolkit_views%': 1,
192 }, {
193 'toolkit_views%': 0,
194 }],
[email protected]1efbaaa2012-04-24 02:43:24195
[email protected]02968b82013-11-14 02:42:43196 # Embedded builds use aura without ash or views.
197 ['embedded==1', {
198 'use_aura%': 1,
199 'use_ash%': 0,
200 'toolkit_views%': 0,
201 }],
202
[email protected]d2b16e32014-03-06 22:10:49203 # Enable HiDPI on Mac OS, Chrome OS and Windows.
204 ['OS=="mac" or chromeos==1 or OS=="win"', {
[email protected]1efbaaa2012-04-24 02:43:24205 'enable_hidpi%': 1,
206 }],
[email protected]219c7312012-05-10 20:32:40207
[email protected]b11c0cc02014-06-28 05:36:50208 # Enable App Launcher everywhere but mobile.
209 ['OS!="ios" and OS!="android"', {
[email protected]dc4e8b82012-11-15 03:58:16210 'enable_app_list%': 1,
211 }, {
212 'enable_app_list%': 0,
[email protected]b1a2b542013-01-10 07:33:09213 }],
214
[email protected]cb800562012-11-20 22:36:07215 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="android")', {
[email protected]a6f1bdf2012-11-28 15:52:26216 'use_default_render_theme%': 1,
[email protected]cb800562012-11-20 22:36:07217 }, {
218 'use_default_render_theme%': 0,
219 }],
[email protected]02968b82013-11-14 02:42:43220
221 ['use_ozone==1', {
222 'use_ozone_evdev%': 1,
223 }, {
224 'use_ozone_evdev%': 0,
[email protected]e71a3622013-12-04 07:32:41225 }],
226
227 # Set default gomadir.
228 ['OS=="win"', {
229 'gomadir': 'c:\\goma\\goma-win',
[email protected]91b91292014-01-18 23:54:41230 }, {
[email protected]e71a3622013-12-04 07:32:41231 'gomadir': '<!(/bin/echo -n ${HOME}/goma)',
232 }],
[email protected]ce2cad72014-02-13 18:17:35233
234 # Set the default "target_subarch" on iOS. Valid values are "arm32",
235 # "arm64" and "both" (meaning a fat binary).
236 #
237 # TODO(sdefresne): change the default from "arm32" to "both" for
238 # "target_subarch" once http://crbug.com/339477 is fixed.
239 #
240 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
241 # of skia has been fixed for simulator. http://crbug.com/342377
242 ['OS=="ios"', {
243 'target_subarch%': 'arm32',
244 }],
petarjc8a5da742014-08-27 14:33:36245
246 # Set arch variants for MIPS platforms.
247 ['target_arch=="mips64el"', {
248 'conditions': [
249 ['OS=="android"', {
250 'mips_arch_variant%': 'r6',
251 }, {
252 'mips_arch_variant%': 'r2',
253 }],
254 ],
255 }],
256
257 ['target_arch=="mipsel"', {
258 'mips_arch_variant%': 'r1',
259 }],
[email protected]e72e55b2011-01-06 22:19:30260 ],
261 },
262
263 # Copy conditionally-set variables out one scope.
264 'chromeos%': '<(chromeos)',
[email protected]24641702014-07-03 17:20:15265 'chromecast%': '<(chromecast)',
[email protected]e72e55b2011-01-06 22:19:30266 'host_arch%': '<(host_arch)',
[email protected]94cdbf42012-12-11 19:49:22267 'target_arch%': '<(target_arch)',
[email protected]ce2cad72014-02-13 18:17:35268 'target_subarch%': '<(target_subarch)',
petarjc8a5da742014-08-27 14:33:36269 'mips_arch_variant%': '<(mips_arch_variant)',
[email protected]bb6aba32011-01-07 19:04:43270 'toolkit_views%': '<(toolkit_views)',
[email protected]d628ab412013-09-07 03:26:37271 'desktop_linux%': '<(desktop_linux)',
[email protected]41423092011-08-25 15:39:58272 'use_aura%': '<(use_aura)',
[email protected]ed329be2012-01-03 22:02:16273 'use_ash%': '<(use_ash)',
[email protected]2a76009b2013-08-07 21:02:31274 'use_cras%': '<(use_cras)',
[email protected]ff78e4e2013-05-03 19:19:15275 'use_ozone%': '<(use_ozone)',
[email protected]c0c72dd52013-10-21 23:09:48276 'use_ozone_evdev%': '<(use_ozone_evdev)',
[email protected]89dcd662013-12-12 23:06:50277 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
[email protected]02968b82013-11-14 02:42:43278 'embedded%': '<(embedded)',
[email protected]e0b85a52011-10-06 03:30:42279 'use_openssl%': '<(use_openssl)',
[email protected]e1b2d732014-03-28 16:20:32280 'use_openssl_certs%': '<(use_openssl_certs)',
[email protected]7ddea9802012-02-22 23:08:05281 'enable_viewport%': '<(enable_viewport)',
[email protected]1efbaaa2012-04-24 02:43:24282 'enable_hidpi%': '<(enable_hidpi)',
[email protected]d999c3cb2013-03-12 10:22:36283 'android_webview_build%': '<(android_webview_build)',
[email protected]967767d2014-07-16 05:46:24284 'android_webview_telemetry_build%': '<(android_webview_telemetry_build)',
[email protected]e71a3622013-12-04 07:32:41285 'use_goma%': '<(use_goma)',
286 'gomadir%': '<(gomadir)',
[email protected]dc4e8b82012-11-15 03:58:16287 'enable_app_list%': '<(enable_app_list)',
[email protected]cb800562012-11-20 22:36:07288 'use_default_render_theme%': '<(use_default_render_theme)',
[email protected]94cdbf42012-12-11 19:49:22289 'buildtype%': '<(buildtype)',
[email protected]e2aaaac2013-05-08 07:20:09290 'branding%': '<(branding)',
[email protected]7d6763422013-04-26 12:06:54291 'arm_version%': '<(arm_version)',
[email protected]1731cd42014-03-26 19:10:02292 'sysroot%': '<(sysroot)',
293 'chroot_cmd%': '<(chroot_cmd)',
[email protected]03df8362014-06-04 00:17:11294 'system_libdir%': '<(system_libdir)',
[email protected]e14a9f92009-08-05 19:26:07295
[email protected]c86fd472013-04-02 19:42:30296 # Set to 1 to enable fast builds. Set to 2 for even faster builds
297 # (it disables debug info for fastest compilation - only for use
298 # on compile-only bots).
[email protected]e72e55b2011-01-06 22:19:30299 'fastbuild%': 0,
[email protected]93012ca2010-08-10 20:10:49300
[email protected]19677402014-06-18 13:10:04301 # Set to 1 to not store any build metadata (this isn't working yet but
302 # this flag will help us to get there). See http://crbug.com/314403.
303 # TODO(sebmarchand): Update this comment once this flag guarantee that
304 # there's no build metadata in the build artifacts.
305 'dont_embed_build_metadata%': 0,
[email protected]b9e9992a2014-06-12 21:01:19306
[email protected]c73363762014-04-16 21:11:46307 # Set to 1 to force Visual C++ to use legacy debug information format /Z7.
308 # This is useful for parallel compilation tools which can't support /Zi.
309 # Only used on Windows.
310 'win_z7%' : 0,
311
[email protected]1a1505512014-03-10 18:23:38312 # Set to 1 to enable dcheck in release.
[email protected]20960e072011-09-20 20:59:01313 'dcheck_always_on%': 0,
314
[email protected]a1e87422013-07-09 21:47:01315 # Set to 1 to make a build that disables unshipped tracing events.
316 # Note: this setting is ignored if buildtype=="Official".
317 'tracing_like_official_build%': 0,
318
[email protected]77a848262013-02-22 11:17:25319 # Disable image loader component extension by default.
320 'image_loader_extension%': 0,
321
[email protected]7d6763422013-04-26 12:06:54322 # Set NEON compilation flags.
[email protected]e72e55b2011-01-06 22:19:30323 'arm_neon%': 1,
324
[email protected]7d6763422013-04-26 12:06:54325 # Detect NEON support at run-time.
326 'arm_neon_optional%': 0,
327
[email protected]e72e55b2011-01-06 22:19:30328 # Use libjpeg-turbo as the JPEG codec used by Chromium.
[email protected]32e56e52011-02-28 02:28:03329 'use_libjpeg_turbo%': 1,
[email protected]e72e55b2011-01-06 22:19:30330
[email protected]d9113542012-07-18 17:11:28331 # Use system libjpeg. Note that the system's libjepg will be used even if
332 # use_libjpeg_turbo is set.
333 'use_system_libjpeg%': 0,
334
[email protected]aa5e01fc2013-03-06 14:06:17335 # By default, component is set to static_library and it can be overriden
336 # by the GYP command line or by ~/.gyp/include.gypi.
[email protected]5a547332011-05-19 23:18:53337 'component%': 'static_library',
[email protected]e72e55b2011-01-06 22:19:30338
[email protected]bb6aba32011-01-07 19:04:43339 # Set to select the Title Case versions of strings in GRD files.
340 'use_titlecase_in_grd_files%': 0,
[email protected]63692212010-09-16 00:22:21341
[email protected]98da0042011-02-02 00:10:27342 # Use translations provided by volunteers at launchpad.net. This
343 # currently only works on Linux.
[email protected]00dc155832011-02-01 18:51:19344 'use_third_party_translations%': 0,
345
[email protected]9a425422011-01-11 00:53:18346 # Remoting compilation is enabled by default. Set to 0 to disable.
347 'remoting%': 1,
348
[email protected]1ec68c42011-06-01 13:56:25349 # Configuration policy is enabled by default. Set to 0 to disable.
350 'configuration_policy%': 1,
351
[email protected]6c521fed2012-11-29 17:00:03352 # Variable safe_browsing is used to control the build time configuration
353 # for safe browsing feature. Safe browsing can be compiled in 3 different
354 # levels: 0 disables it, 1 enables it fully, and 2 enables only UI and
355 # reporting features without enabling phishing and malware detection. This
356 # is useful to integrate a third party phishing/malware detection to
357 # existing safe browsing logic.
[email protected]4b58e7d2011-07-11 10:22:56358 'safe_browsing%': 1,
359
[email protected]418653fdf2014-07-02 07:38:21360 # Web speech is enabled by default. Set to 0 to disable.
361 'enable_web_speech%': 1,
[email protected]9eb100e2011-10-14 05:08:22362
[email protected]7cce3232011-10-28 10:41:57363 # Notifications are compiled in by default. Set to 0 to disable.
364 'notifications%' : 1,
365
[email protected]970fd4e2012-12-19 11:09:37366 # Use dsymutil to generate real .dSYM files on Mac. The default is 0 for
367 # regular builds and 1 for ASan builds.
368 'mac_want_real_dsym%': 'default',
369
[email protected]5d451ad2011-02-11 16:43:46370 # If this is set, the clang plugins used on the buildbot will be used.
371 # Run tools/clang/scripts/update.sh to make sure they are compiled.
372 # This causes 'clang_chrome_plugins_flags' to be set.
373 # Has no effect if 'clang' is not set as well.
[email protected]3bb37e62012-04-19 03:40:08374 'clang_use_chrome_plugins%': 1,
[email protected]5d451ad2011-02-11 16:43:46375
[email protected]2e82fa52012-11-27 23:41:44376 # Enable building with ASAN (Clang's -fsanitize=address option).
377 # -fsanitize=address only works with clang, but asan=1 implies clang=1
[email protected]92799b632011-08-15 14:33:06378 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addresssanitizer
379 'asan%': 0,
[email protected]544a18ed2014-01-17 21:01:36380 # Enable coverage gathering instrumentation in ASan. This flag also
[email protected]a030ab62014-06-23 17:14:15381 # controls coverage granularity (1 for function-level coverage, 2 for
382 # block-level coverage).
[email protected]20a127f2014-01-16 03:25:03383 'asan_coverage%': 0,
[email protected]92799b632011-08-15 14:33:06384
[email protected]1b9654122014-04-28 12:11:15385 # Enable Chromium overrides of the default configurations for various
386 # dynamic tools (like ASan).
387 'use_sanitizer_options%': 1,
388
[email protected]1612e552014-02-15 04:49:18389 # Enable building with SyzyAsan.
390 # See https://code.google.com/p/sawbuck/wiki/SyzyASanHowTo
391 'syzyasan%': 0,
392
[email protected]062522a2013-06-13 15:49:55393 # Enable building with LSan (Clang's -fsanitize=leak option).
394 # -fsanitize=leak only works with clang, but lsan=1 implies clang=1
395 # See https://sites.google.com/a/chromium.org/dev/developers/testing/leaksanitizer
396 'lsan%': 0,
397
[email protected]7fd639a2014-05-30 23:59:01398 # Enable building with TSan (Clang's -fsanitize=thread option).
[email protected]927a9d672012-11-09 11:28:20399 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1
[email protected]c9a829272012-07-04 07:51:12400 # See http://clang.llvm.org/docs/ThreadSanitizer.html
401 'tsan%': 0,
[email protected]0b5ec8bf2014-06-25 21:11:54402 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/memory/tsan_v2/ignores.txt',
[email protected]c9a829272012-07-04 07:51:12403
[email protected]7fd639a2014-05-30 23:59:01404 # Enable building with MSan (Clang's -fsanitize=memory option).
[email protected]a10ddd2d2013-02-26 20:06:59405 # MemorySanitizer only works with clang, but msan=1 implies clang=1
406 # See http://clang.llvm.org/docs/MemorySanitizer.html
407 'msan%': 0,
[email protected]190d4ce62014-01-17 20:24:53408 'msan_blacklist%': '<(PRODUCT_DIR)/../../tools/msan/blacklist.txt',
[email protected]a030ab62014-06-23 17:14:15409 # Track where uninitialized memory originates from. From fastest to
410 # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2
411 # - track the chain of stores leading from allocation site to use site.
412 'msan_track_origins%': 1,
[email protected]a10ddd2d2013-02-26 20:06:59413
[email protected]7fd639a2014-05-30 23:59:01414 # Enable building with UBSan (Clang's -fsanitize=undefined option).
415 # -fsanitize=undefined only works with clang, but ubsan=1 implies clang=1
416 # See http://clang.llvm.org/docs/UsersManual.html
417 'ubsan%': 0,
418
[email protected]22e15542014-07-18 23:09:24419 # Enable building with UBsan's vptr (Clang's -fsanitize=vptr option).
[email protected]0dbe7af92014-06-26 23:31:40420 # -fsanitize=vptr only works with clang, but ubsan_vptr=1 implies clang=1
421 'ubsan_vptr%': 0,
422 'ubsan_vptr_blacklist%': '<(PRODUCT_DIR)/../../tools/ubsan_vptr/blacklist.txt',
423
[email protected]c8103a42013-11-12 13:41:30424 # Use the dynamic libraries instrumented by one of the sanitizers
425 # instead of the standard system libraries.
426 'use_instrumented_libraries%': 0,
427
[email protected]22b3f531e2013-12-20 13:07:28428 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of
429 # stdlibc++ as standard library. This is intended to use for instrumented
430 # builds.
431 'use_custom_libcxx%': 0,
432
[email protected]480c6672014-08-04 11:28:06433 # Use system libc++ instead of the default C++ library, usually libstdc++.
434 # This is intended for iOS builds only.
435 'use_system_libcxx%': 0,
436
[email protected]7ce58b22012-09-26 05:17:25437 # Use a modified version of Clang to intercept allocated types and sizes
438 # for allocated objects. clang_type_profiler=1 implies clang=1.
439 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-type-identifier
440 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11
441 'clang_type_profiler%': 0,
442
[email protected]8a6abd12012-05-16 10:04:44443 # Set to true to instrument the code with function call logger.
444 # See src/third_party/cygprofile/cyg-profile.cc for details.
445 'order_profiling%': 0,
446
[email protected]00b0a7f2012-01-25 15:30:46447 # Use the provided profiled order file to link Chrome image with it.
448 # This makes Chrome faster by better using CPU cache when executing code.
449 # This is known as PGO (profile guided optimization).
450 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-effort
451 'order_text_section%' : "",
452
[email protected]1ad5a7b2011-06-24 03:15:13453 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared
454 # libraries on linux x86-64 and arm, plus ASLR.
455 'linux_fpic%': 1,
456
[email protected]bd7b6fe2012-03-05 21:02:40457 # Whether one-click signin is enabled or not.
458 'enable_one_click_signin%': 0,
459
[email protected]b56a9e02014-06-20 09:57:04460 # Whether to back up data before sync.
461 'enable_pre_sync_backup%': 0,
462
[email protected]6a3cd37e2012-04-17 17:13:34463 # Enable Chrome browser extensions
464 'enable_extensions%': 1,
465
[email protected]6ee43a72012-12-07 22:44:40466 # Enable Google Now.
[email protected]9a5bb052014-04-17 16:50:56467 'enable_google_now%': 1,
[email protected]6ee43a72012-12-07 22:44:40468
[email protected]1e54c1c2013-08-12 17:16:05469 # Enable printing support and UI. This variable is used to configure
470 # which parts of printing will be built. 0 disables printing completely,
471 # 1 enables it fully, and 2 enables only the codepath to generate a
472 # Metafile (e.g. usually a PDF or EMF) and disables print preview, cloud
473 # print, UI, etc.
[email protected]658677f2012-06-09 06:04:02474 'enable_printing%': 1,
475
[email protected]3b5e88d2013-09-06 11:03:06476 # Set the version of CLD.
477 # 0: Don't specify the version. This option is for the Finch testing.
478 # 1: Use only CLD1.
479 # 2: Use only CLD2.
[email protected]d8ef2362013-10-22 02:10:00480 'cld_version%': 2,
[email protected]3b5e88d2013-09-06 11:03:06481
[email protected]61753f22014-03-19 12:10:59482 # For CLD2, the size of the tables that should be included in the build
[email protected]e5a7a2a2014-03-27 16:16:03483 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data
484 # tool explicitly.
[email protected]61753f22014-03-19 12:10:59485 # See third_party/cld_2/cld_2.gyp for more information.
486 # 0: Small tables, lower accuracy
487 # 1: Medium tables, medium accuracy
488 # 2: Large tables, high accuracy
489 'cld2_table_size%': 2,
490
[email protected]cf78eec2014-06-24 15:54:26491 # The data acquisition mode for CLD2. Possible values are:
492 # static: CLD2 data is statically linked to the executable.
493 # standalone: CLD2 data is provided in a standalone file that is
494 # bundled with the executable.
495 # component: CLD2 data is provided as a Chrome "component" and is
496 # downloaded via the component updater.
[email protected]916748e2014-06-25 12:57:15497 #
498 # For more information on switching the CLD2 data source, see:
499 # https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-language-detector-cld-data-source-configuration
[email protected]34621d12014-07-16 22:33:10500 #
501 # This string will be exposed in chrome://translate-internals under the
502 # heading "CLD Data Source". This allows easy determination of which
503 # data source the browser was built with.
[email protected]df0c5ef2014-06-26 08:35:01504 'cld2_data_source%': 'static',
[email protected]fb53e652014-04-30 11:27:19505
[email protected]c6ce08072013-07-31 07:48:53506 # Enable spell checker.
507 'enable_spellcheck%': 1,
508
[email protected]dda90ae2011-07-19 22:07:48509 # Webrtc compilation is enabled by default. Set to 0 to disable.
510 'enable_webrtc%': 1,
511
[email protected]cdb756ef2012-04-05 18:34:53512 # Enables use of the session service, which is enabled by default.
513 # Support for disabling depends on the platform.
514 'enable_session_service%': 1,
515
[email protected]6b40bb582012-03-15 20:50:38516 # Enables theme support, which is enabled by default. Support for
517 # disabling depends on the platform.
518 'enable_themes%': 1,
519
[email protected]57e67ac2013-02-22 03:37:22520 # Enables autofill dialog and associated features; disabled by default.
521 'enable_autofill_dialog%' : 0,
522
[email protected]d3340bf512014-05-22 22:27:58523 # Defaults Wallet integration in Autofill dialog to use production
524 # servers. Unofficial builds won't have the proper API keys.
525 'enable_prod_wallet_service%': 0,
526
[email protected]0acdd772012-04-05 22:53:00527 # Enables support for background apps.
528 'enable_background%': 1,
529
[email protected]44879ed2012-04-06 01:11:02530 # Enable the task manager by default.
531 'enable_task_manager%': 1,
[email protected]e1de87f2012-05-02 17:20:45532
[email protected]1a43cc572014-03-07 22:36:32533 # Enables used resource whitelist generation; disabled by default.
534 'enable_resource_whitelist_generation%': 0,
535
[email protected]02494ec2014-05-07 15:05:29536 # Enable FILE support by default.
537 'disable_file_support%': 0,
538
[email protected]9bfe0ab2012-08-30 13:18:11539 # Enable FTP support by default.
540 'disable_ftp_support%': 0,
541
[email protected]847aaab82014-05-07 14:05:46542 # Use native android functions in place of ICU. Not supported by most
543 # components.
544 'use_icu_alternatives_on_android%': 0,
545
[email protected]ef4cb642013-09-14 22:48:02546 # XInput2 multitouch support is enabled by default (use_xi2_mt=2).
547 # Setting to zero value disables XI2 MT. When XI2 MT is enabled,
[email protected]22d6dd72012-05-15 07:29:55548 # the input value also defines the required XI2 minor minimum version.
549 # For example, use_xi2_mt=2 means XI2.2 or above version is required.
[email protected]ef4cb642013-09-14 22:48:02550 'use_xi2_mt%': 2,
[email protected]22d6dd72012-05-15 07:29:55551
[email protected]9061bee82012-01-16 11:45:17552 # Use of precompiled headers on Windows.
553 #
[email protected]9061bee82012-01-16 11:45:17554 # This variable may be explicitly set to 1 (enabled) or 0
555 # (disabled) in ~/.gyp/include.gypi or via the GYP command line.
556 # This setting will override the default.
557 #
[email protected]c3340fb32012-12-20 20:45:39558 # See
[email protected]9061bee82012-01-16 11:45:17559 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders
560 # for details.
[email protected]d5cf9fb2011-09-27 00:15:16561 'chromium_win_pch%': 0,
562
[email protected]acad4962014-08-04 19:05:02563 # Clang stuff.
564 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts',
[email protected]3bb37e62012-04-19 03:40:08565 # Set this to true when building with Clang.
566 # See http://code.google.com/p/chromium/wiki/Clang for details.
[email protected]acad4962014-08-04 19:05:02567 # If this is set, clang is used as both host and target compiler in
568 # cross-compile builds.
[email protected]3bb37e62012-04-19 03:40:08569 'clang%': 0,
570
[email protected]18e0f39b2012-01-17 16:47:34571 # Enable plug-in installation by default.
572 'enable_plugin_installation%': 1,
573
[email protected]62424a52012-03-18 03:09:50574 # Specifies whether to use canvas_skia.cc in place of platform
[email protected]4ddae4b2012-03-15 17:32:42575 # specific implementations of gfx::Canvas. Affects text drawing in the
[email protected]d18e50312012-01-25 17:49:35576 # Chrome UI.
577 # TODO(asvitkine): Enable this on all platforms and delete this flag.
578 # http://crbug.com/105550
[email protected]62424a52012-03-18 03:09:50579 'use_canvas_skia%': 0,
[email protected]d18e50312012-01-25 17:49:35580
[email protected]a9318c72012-03-01 01:29:47581 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work
582 # with one of those tools.
583 'build_for_tool%': '',
584
[email protected]37138132013-01-17 23:08:52585 # If no directory is specified then a temporary directory will be used.
586 'test_isolation_outdir%': '',
[email protected]5b38a522013-03-20 17:00:47587 # True if isolate should fail if the isolate files refer to files
588 # that are missing.
589 'test_isolation_fail_on_missing': 0,
[email protected]01971642012-03-07 14:39:56590
[email protected]49ae3e52012-04-12 09:50:12591 'wix_path%': '<(DEPTH)/third_party/wix',
592
[email protected]0850e842013-01-19 03:44:31593 # Managed users are enabled by default.
594 'enable_managed_users%': 1,
595
[email protected]1591c44d2013-07-15 13:28:43596 # Platform natively supports discardable memory.
597 'native_discardable_memory%': 0,
598
599 # Platform sends memory pressure signals natively.
600 'native_memory_pressure_signals%': 0,
601
[email protected]9be0a7f2014-05-08 06:05:33602 'data_reduction_fallback_host%' : '',
[email protected]324856d2014-01-14 11:17:30603 'data_reduction_dev_host%' : '',
[email protected]9be0a7f2014-05-08 06:05:33604 'spdy_proxy_auth_origin%' : '',
[email protected]199def22013-02-21 17:52:29605 'spdy_proxy_auth_property%' : '',
[email protected]f37e9412013-05-27 23:18:25606 'spdy_proxy_auth_value%' : '',
[email protected]d8dd60e2013-10-08 00:49:43607 'data_reduction_proxy_probe_url%' : '',
[email protected]bec6a992014-06-19 01:03:21608 'data_reduction_proxy_warmup_url%' : '',
[email protected]f4b492e92014-05-31 22:19:48609 'data_reduction_proxy_ssl_origin%' : '',
610 'data_reduction_proxy_alt_origin%' : '',
611 'data_reduction_proxy_alt_fallback_origin%' : '',
[email protected]5e131c9f2013-07-10 19:21:05612 'enable_mdns%' : 0,
[email protected]2188c8d2014-03-21 00:58:56613 'enable_service_discovery%': 0,
[email protected]4b202ae2014-05-23 07:45:36614 'enable_wifi_bootstrapping%': 0,
[email protected]754a2002014-02-14 16:40:34615 'enable_hangout_services_extension%': 0,
[email protected]199def22013-02-21 17:52:29616
[email protected]877090c2014-03-19 15:25:54617 # Enable the Syzygy optimization step.
618 'syzygy_optimize%': 0,
619
[email protected]145eacd2014-05-09 23:18:16620 # Enable hole punching for the protected video.
621 'video_hole%': 0,
622
[email protected]3bdb0992014-05-16 21:30:51623 # Automatically select platforms under ozone. Turn this off to
624 # build only explicitly selected platforms.
625 'ozone_auto_platforms%': 1,
626
torneed51a582014-08-28 18:28:17627 # If this is set clang is used as host compiler, but not as target
628 # compiler. Always do this by default.
629 'host_clang%': 1,
630
[email protected]bb6aba32011-01-07 19:04:43631 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34632 # A flag for POSIX platforms
[email protected]c49ab0c2011-05-18 17:25:37633 ['OS=="win"', {
[email protected]79e2336c2011-05-12 18:18:34634 'os_posix%': 0,
[email protected]c49ab0c2011-05-18 17:25:37635 }, {
636 'os_posix%': 1,
[email protected]79e2336c2011-05-12 18:18:34637 }],
638
[email protected]df9167b2011-11-14 19:15:25639 # A flag for BSD platforms
640 ['OS=="freebsd" or OS=="openbsd"', {
641 'os_bsd%': 1,
642 }, {
643 'os_bsd%': 0,
644 }],
645
[email protected]c329adf82011-10-05 14:34:57646 # NSS usage.
[email protected]e0b85a52011-10-06 03:30:42647 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_openssl==0', {
[email protected]c329adf82011-10-05 14:34:57648 'use_nss%': 1,
649 }, {
650 'use_nss%': 0,
651 }],
[email protected]e0b85a52011-10-06 03:30:42652
[email protected]e1b2d732014-03-28 16:20:32653 # When OpenSSL is used for SSL and crypto on Unix-like systems, use
654 # OpenSSL's certificate definition.
655 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_openssl==1', {
656 'use_openssl_certs%': 1,
657 }, {
658 'use_openssl_certs%': 0,
659 }],
660
[email protected]49513e02013-11-20 08:36:40661 # libudev usage. This currently only affects the content layer.
[email protected]048ab5f2013-11-22 01:42:47662 ['OS=="linux" and embedded==0', {
[email protected]49513e02013-11-20 08:36:40663 'use_udev%': 1,
664 }, {
665 'use_udev%': 0,
666 }],
667
[email protected]c335f4802013-04-06 04:51:21668 # Flags to use X11 on non-Mac POSIX platforms.
[email protected]1201dd0f2013-05-03 23:39:54669 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', {
[email protected]79e2336c2011-05-12 18:18:34670 'use_x11%': 0,
[email protected]c49ab0c2011-05-18 17:25:37671 }, {
[email protected]c49ab0c2011-05-18 17:25:37672 'use_x11%': 1,
[email protected]79e2336c2011-05-12 18:18:34673 }],
[email protected]9a8175892012-03-20 02:11:58674
[email protected]02968b82013-11-14 02:42:43675 # Flags to use glib.
[email protected]559d8f4f2014-04-23 18:28:51676 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', {
[email protected]c335f4802013-04-06 04:51:21677 'use_glib%': 0,
678 }, {
679 'use_glib%': 1,
[email protected]02968b82013-11-14 02:42:43680 }],
681
[email protected]928362a2013-11-19 20:17:16682 # Flags to use pango and cairo.
[email protected]02968b82013-11-14 02:42:43683 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', {
684 'use_pango%': 0,
[email protected]928362a2013-11-19 20:17:16685 'use_cairo%': 0,
[email protected]02968b82013-11-14 02:42:43686 }, {
[email protected]26bade892013-05-23 21:44:15687 'use_pango%': 1,
[email protected]928362a2013-11-19 20:17:16688 'use_cairo%': 1,
[email protected]c335f4802013-04-06 04:51:21689 }],
690
[email protected]61955d92013-11-13 20:44:52691 # DBus usage.
[email protected]02968b82013-11-14 02:42:43692 ['OS=="linux" and embedded==0', {
[email protected]61955d92013-11-13 20:44:52693 'use_dbus%': 1,
694 }, {
695 'use_dbus%': 0,
696 }],
697
[email protected]efadeacf2011-10-27 19:01:00698 # We always use skia text rendering in Aura on Windows, since GDI
699 # doesn't agree with our BackingStore.
700 # TODO(beng): remove once skia text rendering is on by default.
701 ['use_aura==1 and OS=="win"', {
702 'enable_skia_text%': 1,
703 }],
[email protected]9edeb712011-09-20 21:20:33704
[email protected]63692212010-09-16 00:22:21705 # A flag to enable or disable our compile-time dependency
706 # on gnome-keyring. If that dependency is disabled, no gnome-keyring
707 # support will be available. This option is useful
[email protected]25bc66a22011-09-24 18:32:49708 # for Linux distributions and for Aura.
[email protected]8370a622014-02-19 08:12:29709 ['OS!="linux" or chromeos==1', {
[email protected]63692212010-09-16 00:22:21710 'use_gnome_keyring%': 0,
711 }, {
712 'use_gnome_keyring%': 1,
713 }],
[email protected]0afe5212010-10-01 18:56:11714
[email protected]ce67da1b62014-04-17 19:20:23715 ['OS=="mac" or OS=="ios"', {
716 # Mac and iOS want Title Case strings
[email protected]bb6aba32011-01-07 19:04:43717 'use_titlecase_in_grd_files%': 1,
718 }],
719
[email protected]ff9300872014-01-22 11:09:32720 # Enable loader extensions on Chrome OS.
[email protected]5f887612012-03-01 21:34:06721 ['chromeos==1', {
[email protected]77a848262013-02-22 11:17:25722 'image_loader_extension%': 1,
[email protected]ab2017e2012-02-07 01:54:50723 }, {
[email protected]77a848262013-02-22 11:17:25724 'image_loader_extension%': 0,
[email protected]3d38d8e2011-04-16 20:48:51725 }],
[email protected]7de46352011-09-12 15:39:19726
[email protected]c79d1972013-02-06 18:47:29727 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', {
[email protected]f032fe92012-06-12 19:20:01728 'enable_one_click_signin%': 1,
[email protected]b56a9e02014-06-20 09:57:04729 'enable_pre_sync_backup%': 1,
[email protected]e4b66bf2012-05-29 20:39:51730 }],
731
[email protected]da1c8d692011-09-20 20:35:01732 ['OS=="android"', {
[email protected]55e02302012-08-21 00:50:46733 'enable_extensions%': 0,
[email protected]6ee43a72012-12-07 22:44:40734 'enable_google_now%': 0,
[email protected]3b5e88d2013-09-06 11:03:06735 'cld_version%': 1,
[email protected]c6ce08072013-07-31 07:48:53736 'enable_spellcheck%': 0,
[email protected]55e02302012-08-21 00:50:46737 'enable_themes%': 0,
[email protected]48de0fc2012-08-02 11:03:58738 'remoting%': 0,
[email protected]7d6763422013-04-26 12:06:54739 'arm_neon%': 0,
740 'arm_neon_optional%': 1,
[email protected]1591c44d2013-07-15 13:28:43741 'native_discardable_memory%': 1,
742 'native_memory_pressure_signals%': 1,
[email protected]b25f0032013-08-19 22:26:25743 'enable_printing%': 2,
[email protected]25b8cb32014-01-30 11:04:29744 'enable_task_manager%':0,
[email protected]335b6872014-02-13 20:14:13745 # Set to 1 once we have a notification system for Android.
746 # http://crbug.com/115320
747 'notifications%': 0,
[email protected]145eacd2014-05-09 23:18:16748 'video_hole%': 1,
[email protected]b25f0032013-08-19 22:26:25749 }],
[email protected]b25f0032013-08-19 22:26:25750
[email protected]0d841b7d2013-08-20 20:22:22751 # Android OS includes support for proprietary codecs regardless of
[email protected]24641702014-07-03 17:20:15752 # building Chromium or Google Chrome. We also ship Google Chrome and
753 # Chromecast with proprietary codecs.
754 ['OS=="android" or branding=="Chrome" or chromecast==1', {
[email protected]0d841b7d2013-08-20 20:22:22755 'proprietary_codecs%': 1,
[email protected]d80a06192013-08-23 23:33:41756 }, {
757 'proprietary_codecs%': 0,
[email protected]0d841b7d2013-08-20 20:22:22758 }],
759
[email protected]85f29582013-12-16 18:02:04760 ['OS=="mac" or OS=="ios"', {
[email protected]cef6c76f2013-10-30 16:33:30761 'native_discardable_memory%': 1,
762 'native_memory_pressure_signals%': 1,
763 }],
764
[email protected]8f5999e2013-08-10 18:27:05765 # Enable autofill dialog for Android, Mac and Views-enabled platforms.
766 ['toolkit_views==1 or (OS=="android" and android_webview_build==0) or OS=="mac"', {
[email protected]d3340bf512014-05-22 22:27:58767 'enable_autofill_dialog%': 1,
768
769 'conditions': [
770 ['buildtype=="Official"', {
771 'enable_prod_wallet_service%': 1,
772 }],
773 ]
[email protected]57e67ac2013-02-22 03:37:22774 }],
775
[email protected]f96d63b2014-04-01 19:22:44776 ['OS=="android"', {
[email protected]118347052013-01-12 08:35:43777 'enable_webrtc%': 1,
778 }],
779
[email protected]0d16f292012-07-02 22:10:48780 ['OS=="ios"', {
[email protected]9bfe0ab2012-08-30 13:18:11781 'disable_ftp_support%': 1,
[email protected]c4ac4d12012-09-12 12:02:24782 'enable_extensions%': 0,
[email protected]6ee43a72012-12-07 22:44:40783 'enable_google_now%': 0,
[email protected]3b5e88d2013-09-06 11:03:06784 'cld_version%': 1,
[email protected]c4ac4d12012-09-12 12:02:24785 'enable_printing%': 0,
[email protected]3c6aa862012-11-05 17:11:44786 'enable_session_service%': 0,
[email protected]c4ac4d12012-09-12 12:02:24787 'enable_themes%': 0,
788 'enable_webrtc%': 0,
789 'notifications%': 0,
[email protected]0d16f292012-07-02 22:10:48790 'remoting%': 0,
[email protected]3c6aa862012-11-05 17:11:44791 'safe_browsing%': 0,
[email protected]0850e842013-01-19 03:44:31792 'enable_managed_users%': 0,
[email protected]25b8cb32014-01-30 11:04:29793 'enable_task_manager%': 0,
[email protected]0d16f292012-07-02 22:10:48794 }],
795
[email protected]839d5172011-10-13 17:18:11796 # Use GPU accelerated cross process image transport by default
[email protected]023d8242011-11-22 01:25:27797 # on linux builds with the Aura window manager
[email protected]f83c6f7f2012-01-28 03:23:01798 ['use_aura==1 and OS=="linux"', {
[email protected]1ee7c56c2011-10-19 14:51:33799 'ui_compositor_image_transport%': 1,
[email protected]839d5172011-10-13 17:18:11800 }, {
[email protected]1ee7c56c2011-10-19 14:51:33801 'ui_compositor_image_transport%': 0,
[email protected]839d5172011-10-13 17:18:11802 }],
[email protected]9061bee82012-01-16 11:45:17803
[email protected]c3340fb32012-12-20 20:45:39804 # Turn precompiled headers on by default.
805 ['OS=="win" and buildtype!="Official"', {
[email protected]9061bee82012-01-16 11:45:17806 'chromium_win_pch%': 1
807 }],
[email protected]18e0f39b2012-01-17 16:47:34808
[email protected]321dd1b2014-06-02 21:51:04809 ['chromeos==1 or OS=="android" or OS=="ios" or desktop_linux==1', {
[email protected]18e0f39b2012-01-17 16:47:34810 'enable_plugin_installation%': 0,
811 }, {
812 'enable_plugin_installation%': 1,
813 }],
[email protected]b07806c12012-02-03 22:44:59814
[email protected]50d3c4a42014-04-22 08:29:14815 # Whether PPAPI is enabled.
[email protected]693f63c2014-01-17 06:52:19816 ['OS=="android" or OS=="ios" or embedded==1', {
[email protected]6d17f6392012-12-05 05:24:54817 'enable_plugins%': 0,
818 }, {
819 'enable_plugins%': 1,
820 }],
821
[email protected]f0a58322014-04-16 09:50:23822 # linux_use_bundled_gold: whether to use the gold linker binary checked
823 # into third_party/binutils. Force this off via GYP_DEFINES when you
824 # are using a custom toolchain and need to control -B in ldflags.
noms277720162014-08-26 15:21:08825 # Do not use 32-bit gold on 32-bit hosts as it runs out address space
826 # for component=static_library builds.
827 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', {
[email protected]f0a58322014-04-16 09:50:23828 'linux_use_bundled_gold%': 1,
[email protected]be239492012-02-09 19:00:17829 }, {
[email protected]f0a58322014-04-16 09:50:23830 'linux_use_bundled_gold%': 0,
831 }],
832
833 # linux_use_bundled_binutils: whether to use the binary binutils
834 # checked into third_party/binutils. These are not multi-arch so cannot
835 # be used except on x86 and x86-64 (the only two architectures which
noms277720162014-08-26 15:21:08836 # are currently checke in). Force this off via GYP_DEFINES when you
[email protected]f0a58322014-04-16 09:50:23837 # are using a custom toolchain and need to control -B in cflags.
838 ['OS=="linux" and (target_arch=="x64")', {
839 'linux_use_bundled_binutils%': 1,
840 }, {
841 'linux_use_bundled_binutils%': 0,
[email protected]d1d90a42013-03-26 12:01:34842 }],
843
844 # linux_use_gold_flags: whether to use build flags that rely on gold.
[email protected]fd6d17c2014-04-29 22:01:49845 # On by default for x64 Linux.
846 ['OS=="linux" and target_arch=="x64"', {
[email protected]d1d90a42013-03-26 12:01:34847 'linux_use_gold_flags%': 1,
848 }, {
[email protected]8d726a42012-02-09 03:49:00849 'linux_use_gold_flags%': 0,
[email protected]b07806c12012-02-03 22:44:59850 }],
[email protected]2e22e2f2012-03-15 21:53:10851
[email protected]9dbbabd2014-04-30 23:42:32852 # linux_use_debug_fission: whether to use split DWARF debug info
853 # files. This can reduce link time significantly, but is incompatible
854 # with some utilities such as icecc and ccache. Requires gold and
855 # gcc >= 4.8 or clang.
856 # http://gcc.gnu.org/wiki/DebugFission
857 ['OS=="linux" and target_arch=="x64"', {
858 'linux_use_debug_fission%': 1,
859 }, {
860 'linux_use_debug_fission%': 0,
861 }],
862
[email protected]a95d5302012-11-03 00:02:19863 ['OS=="android" or OS=="ios"', {
[email protected]e6026962012-06-14 21:28:32864 'enable_captive_portal_detection%': 0,
865 }, {
866 'enable_captive_portal_detection%': 1,
867 }],
868
[email protected]3bd47e022012-03-22 04:19:12869 # Enable Skia UI text drawing incrementally on different platforms.
870 # http://crbug.com/105550
871 #
872 # On Aura, this allows per-tile painting to be used in the browser
873 # compositor.
[email protected]04b67b62013-09-14 01:32:17874 ['OS!="android"', {
[email protected]3bd47e022012-03-22 04:19:12875 'use_canvas_skia%': 1,
876 }],
[email protected]adb44342012-07-23 13:36:12877
[email protected]0753ea42012-08-30 20:15:44878 ['chromeos==1', {
879 # When building for ChromeOS we dont want Chromium to use libjpeg_turbo.
880 'use_libjpeg_turbo%': 0,
881 }],
882
[email protected]5be161f2013-06-18 11:09:33883 # Do not enable the Settings App on ChromeOS.
884 ['enable_app_list==1 and chromeos==0', {
[email protected]8a46f5f2012-12-05 00:47:12885 'enable_settings_app%': 1,
886 }, {
887 'enable_settings_app%': 0,
888 }],
[email protected]94cdbf42012-12-11 19:49:22889
890 ['OS=="linux" and target_arch=="arm" and chromeos==0', {
891 # Set some defaults for arm/linux chrome builds
[email protected]2fa89ef2014-05-07 18:45:59892 'use_allocator%': 'none',
[email protected]84b00d12f2012-12-14 01:53:43893 # sysroot needs to be an absolute path otherwise it generates
[email protected]94cdbf42012-12-11 19:49:22894 # incorrect results when passed to pkg-config
[email protected]84b00d12f2012-12-14 01:53:43895 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot',
[email protected]94cdbf42012-12-11 19:49:22896 }], # OS=="linux" and target_arch=="arm" and chromeos==0
[email protected]eb5f1672013-01-31 07:56:46897
[email protected]42972b62013-08-28 05:46:42898 ['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chromeos==0', {
[email protected]e2aaaac2013-05-08 07:20:09899 'conditions': [
900 ['target_arch=="x64"', {
[email protected]b32bf9fe2013-06-05 23:07:43901 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_amd64-sysroot',
[email protected]e2aaaac2013-05-08 07:20:09902 }],
903 ['target_arch=="ia32"', {
[email protected]b32bf9fe2013-06-05 23:07:43904 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_wheezy_i386-sysroot',
[email protected]e2aaaac2013-05-08 07:20:09905 }],
906 ],
[email protected]42972b62013-08-28 05:46:42907 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and chromeos==0
[email protected]e2aaaac2013-05-08 07:20:09908
[email protected]59e85f472013-06-28 18:20:44909 ['OS=="linux" and target_arch=="mipsel"', {
[email protected]f1478932013-03-05 20:50:07910 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot',
[email protected]801978d32013-03-09 02:51:28911 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu-gcc',
[email protected]eb5f1672013-01-31 07:56:46912 }],
[email protected]5b38a522013-03-20 17:00:47913
914 # Whether tests targets should be run, archived or just have the
[email protected]93fe4002013-04-10 00:17:01915 # dependencies verified. All the tests targets have the '_run' suffix,
[email protected]5b38a522013-03-20 17:00:47916 # e.g. base_unittests_run runs the target base_unittests. The test
[email protected]10d8ac32013-10-31 13:34:31917 # target always calls tools/swarming_client/isolate.py. See the script's
[email protected]5b38a522013-03-20 17:00:47918 # --help for more information and the valid --mode values. Meant to be
919 # overriden with GYP_DEFINES.
[email protected]93fe4002013-04-10 00:17:01920 # TODO(maruel): Remove the conditions as more configurations are
921 # supported.
922 # NOTE: The check for disable_nacl==0 and component=="static_library"
923 # can't be used here because these variables are not defined yet, but it
924 # is still not supported.
[email protected]e51e35652013-12-19 02:39:08925 ['OS!="ios" and OS!="android" and chromeos==0', {
[email protected]5b38a522013-03-20 17:00:47926 'test_isolation_mode%': 'check',
927 }, {
928 'test_isolation_mode%': 'noop',
929 }],
[email protected]9d5cb982014-06-24 23:37:20930 # Whether Android build uses OpenMAX DL FFT.
931 ['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target_arch=="ia32" or target_arch=="x64" or target_arch=="arm64" or target_arch=="mipsel")', {
932 # Currently only supported on Android ARMv7+, ARM64, ia32, x64 and mipsel.
[email protected]353fa4a2014-05-02 17:36:22933 # When enabled, this will also enable WebAudio support on
[email protected]9d5cb982014-06-24 23:37:20934 # Android for these architectures. Default is enabled. Whether
[email protected]353fa4a2014-05-02 17:36:22935 # WebAudio is actually available depends on runtime settings
936 # and flags.
[email protected]330f3a32013-04-23 05:47:58937 'use_openmax_dl_fft%': 1,
[email protected]d29d61b2013-04-17 04:00:53938 }, {
939 'use_openmax_dl_fft%': 0,
940 }],
[email protected]5e131c9f2013-07-10 19:21:05941 ['OS=="win" or OS=="linux"', {
942 'enable_mdns%' : 1,
[email protected]2abbc1a2013-08-07 22:09:06943 }],
944
945 # Turns on compiler optimizations in V8 in Debug build, except
946 # on android_clang, where we're hitting a weird linker error.
947 # TODO(dpranke): http://crbug.com/266155 .
948 ['OS=="android"', {
[email protected]6268e01b42013-10-19 22:44:19949 'v8_optimized_debug%': 1,
[email protected]2abbc1a2013-08-07 22:09:06950 }, {
[email protected]6268e01b42013-10-19 22:44:19951 'v8_optimized_debug%': 2,
[email protected]2abbc1a2013-08-07 22:09:06952 }],
[email protected]02968b82013-11-14 02:42:43953
954 # Disable various features by default on embedded.
955 ['embedded==1', {
956 'remoting%': 0,
957 'enable_printing%': 0,
958 }],
[email protected]b390dd7d2014-03-20 14:49:41959
[email protected]7ef66c62014-03-20 18:20:00960 # By default, use ICU data file (icudtl.dat) on all platforms
[email protected]24641702014-07-03 17:20:15961 # except when building Android WebView or Chromecast.
[email protected]7ef66c62014-03-20 18:20:00962 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium).
[email protected]7cd31432014-05-10 12:16:52963 # Set the data reduction proxy origin for Android Webview.
[email protected]967767d2014-07-16 05:46:24964 ['android_webview_build==0 and android_webview_telemetry_build==0 and chromecast==0', {
[email protected]7ef66c62014-03-20 18:20:00965 'icu_use_data_file_flag%' : 1,
[email protected]7cd31432014-05-10 12:16:52966 'spdy_proxy_auth_origin%': '',
967 'data_reduction_proxy_probe_url%': '',
[email protected]bec6a992014-06-19 01:03:21968 'data_reduction_proxy_warmup_url%': '',
[email protected]7cd31432014-05-10 12:16:52969 'data_reduction_dev_host%': '',
970 'data_reduction_fallback_host%': '',
[email protected]7ef66c62014-03-20 18:20:00971 }, {
972 'icu_use_data_file_flag%' : 0,
[email protected]7cd31432014-05-10 12:16:52973 'spdy_proxy_auth_origin%': 'https://proxy.googlezip.net:443/',
974 'data_reduction_proxy_probe_url%': 'http://check.googlezip.net/connect',
[email protected]bec6a992014-06-19 01:03:21975 'data_reduction_proxy_warmup_url%': 'http://www.gstatic.com/generate_204',
[email protected]7cd31432014-05-10 12:16:52976 'data_reduction_dev_host%': 'http://proxy-dev.googlezip.net:80/',
977 'data_reduction_fallback_host%': 'http://compress.googlezip.net:80/',
[email protected]7ef66c62014-03-20 18:20:00978 }],
[email protected]4b202ae2014-05-23 07:45:36979 ['OS=="win" or OS=="mac"', {
980 'enable_wifi_bootstrapping%' : 1,
981 }],
[email protected]91464ea2014-07-18 05:32:11982
983 # Path to sas.dll, which provides the SendSAS function.
984 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.85).aspx
985 ['target_arch=="x64"', {
986 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/amd64',
987 }, {
988 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x86',
989 }],
mlamouri23668752014-08-28 20:56:45990
991 # Turn on JNI generation optimizations on non-WebView builds.
992 ['OS=="android" and android_webview_build==0', {
993 'optimize_jni_generation%': 1,
994 }, {
995 'optimize_jni_generation%': 0,
996 }],
[email protected]b3f23ba2010-04-26 22:58:17997 ],
[email protected]2b113652012-09-17 17:01:39998
[email protected]a3a720f2013-04-25 19:35:42999 # Set this to 1 to enable use of concatenated impulse responses
1000 # for the HRTF panner in WebAudio.
[email protected]508afb72013-05-02 22:37:261001 'use_concatenated_impulse_responses': 1,
[email protected]a3a720f2013-04-25 19:35:421002
[email protected]f2817cf2013-05-16 11:39:541003 # You can set the variable 'use_official_google_api_keys' to 1
1004 # to use the Google-internal file containing official API keys
1005 # for Google Chrome even in a developer build. Setting this
1006 # variable explicitly to 1 will cause your build to fail if the
1007 # internal file is missing.
[email protected]2b113652012-09-17 17:01:391008 #
[email protected]f2817cf2013-05-16 11:39:541009 # The variable is documented here, but not handled in this file;
1010 # see //google_apis/determine_use_official_keys.gypi for the
1011 # implementation.
[email protected]2b113652012-09-17 17:01:391012 #
[email protected]f2817cf2013-05-16 11:39:541013 # Set the variable to 0 to not use the internal file, even when
1014 # it exists in your checkout.
[email protected]2b113652012-09-17 17:01:391015 #
[email protected]f2817cf2013-05-16 11:39:541016 # Leave it unset in your include.gypi to have the variable
1017 # implicitly set to 1 if you have
1018 # src/google_apis/internal/google_chrome_api_keys.h in your
1019 # checkout, and implicitly set to 0 if not.
1020 #
1021 # Note that official builds always behave as if the variable
[email protected]2b113652012-09-17 17:01:391022 # was explicitly set to 1, i.e. they always use official keys,
1023 # and will fail to build if the internal file is missing.
[email protected]f2817cf2013-05-16 11:39:541024 #
1025 # NOTE: You MUST NOT explicitly set the variable to 2 in your
1026 # include.gypi or by other means. Due to subtleties of GYP, this
1027 # is not the same as leaving the variable unset, even though its
1028 # default value in
1029 # //google_apis/determine_use_official_keys.gypi is 2.
[email protected]2b113652012-09-17 17:01:391030
1031 # Set these to bake the specified API keys and OAuth client
1032 # IDs/secrets into your build.
1033 #
1034 # If you create a build without values baked in, you can instead
1035 # set environment variables to provide the keys at runtime (see
1036 # src/google_apis/google_api_keys.h for details). Features that
1037 # require server-side APIs may fail to work if no keys are
1038 # provided.
1039 #
1040 # Note that if you are building an official build or if
1041 # use_official_google_api_keys has been set to 1 (explicitly or
1042 # implicitly), these values will be ignored and the official
1043 # keys will be used instead.
1044 'google_api_key%': '',
1045 'google_default_client_id%': '',
1046 'google_default_client_secret%': '',
[email protected]d33d2222014-06-04 15:39:581047 # Native Client is enabled by default.
1048 'disable_nacl%': '0',
[email protected]e14a9f92009-08-05 19:26:071049 },
1050
[email protected]e72e55b2011-01-06 22:19:301051 # Copy conditionally-set variables out one scope.
[email protected]e14a9f92009-08-05 19:26:071052 'branding%': '<(branding)',
1053 'buildtype%': '<(buildtype)',
[email protected]e0d00142009-09-18 22:10:271054 'target_arch%': '<(target_arch)',
[email protected]ce2cad72014-02-13 18:17:351055 'target_subarch%': '<(target_subarch)',
petarjc8a5da742014-08-27 14:33:361056 'mips_arch_variant%': '<(mips_arch_variant)',
[email protected]cf185b32010-01-12 04:29:591057 'host_arch%': '<(host_arch)',
[email protected]c153e5352009-09-22 12:37:441058 'toolkit_views%': '<(toolkit_views)',
[email protected]1ee7c56c2011-10-19 14:51:331059 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
[email protected]41423092011-08-25 15:39:581060 'use_aura%': '<(use_aura)',
[email protected]ed329be2012-01-03 22:02:161061 'use_ash%': '<(use_ash)',
[email protected]2a76009b2013-08-07 21:02:311062 'use_cras%': '<(use_cras)',
[email protected]e0b85a52011-10-06 03:30:421063 'use_openssl%': '<(use_openssl)',
[email protected]e1b2d732014-03-28 16:20:321064 'use_openssl_certs%': '<(use_openssl_certs)',
[email protected]c329adf82011-10-05 14:34:571065 'use_nss%': '<(use_nss)',
[email protected]49513e02013-11-20 08:36:401066 'use_udev%': '<(use_udev)',
[email protected]df9167b2011-11-14 19:15:251067 'os_bsd%': '<(os_bsd)',
[email protected]79e2336c2011-05-12 18:18:341068 'os_posix%': '<(os_posix)',
[email protected]61955d92013-11-13 20:44:521069 'use_dbus%': '<(use_dbus)',
[email protected]258dca42011-09-21 00:17:191070 'use_glib%': '<(use_glib)',
[email protected]26bade892013-05-23 21:44:151071 'use_pango%': '<(use_pango)',
[email protected]928362a2013-11-19 20:17:161072 'use_cairo%': '<(use_cairo)',
[email protected]ff78e4e2013-05-03 19:19:151073 'use_ozone%': '<(use_ozone)',
[email protected]c0c72dd52013-10-21 23:09:481074 'use_ozone_evdev%': '<(use_ozone_evdev)',
[email protected]89dcd662013-12-12 23:06:501075 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
[email protected]d628ab412013-09-07 03:26:371076 'desktop_linux%': '<(desktop_linux)',
[email protected]79e2336c2011-05-12 18:18:341077 'use_x11%': '<(use_x11)',
[email protected]63692212010-09-16 00:22:211078 'use_gnome_keyring%': '<(use_gnome_keyring)',
[email protected]0afe5212010-10-01 18:56:111079 'linux_fpic%': '<(linux_fpic)',
[email protected]c153e5352009-09-22 12:37:441080 'chromeos%': '<(chromeos)',
[email protected]24641702014-07-03 17:20:151081 'chromecast%': '<(chromecast)',
[email protected]7ddea9802012-02-22 23:08:051082 'enable_viewport%': '<(enable_viewport)',
[email protected]1efbaaa2012-04-24 02:43:241083 'enable_hidpi%': '<(enable_hidpi)',
[email protected]f56797b2011-09-25 00:04:351084 'use_xi2_mt%':'<(use_xi2_mt)',
[email protected]77a848262013-02-22 11:17:251085 'image_loader_extension%': '<(image_loader_extension)',
[email protected]9c1949e2009-10-02 19:59:541086 'fastbuild%': '<(fastbuild)',
[email protected]19677402014-06-18 13:10:041087 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)',
[email protected]c73363762014-04-16 21:11:461088 'win_z7%': '<(win_z7)',
[email protected]20960e072011-09-20 20:59:011089 'dcheck_always_on%': '<(dcheck_always_on)',
[email protected]a1e87422013-07-09 21:47:011090 'tracing_like_official_build%': '<(tracing_like_official_build)',
[email protected]7d6763422013-04-26 12:06:541091 'arm_version%': '<(arm_version)',
[email protected]eafc0b452010-02-26 21:53:431092 'arm_neon%': '<(arm_neon)',
[email protected]7d6763422013-04-26 12:06:541093 'arm_neon_optional%': '<(arm_neon_optional)',
[email protected]4d83eb72010-03-04 16:42:231094 'sysroot%': '<(sysroot)',
[email protected]a23d7142014-02-14 16:58:451095 'chroot_cmd%': '<(chroot_cmd)',
[email protected]945361a2011-09-30 04:38:431096 'system_libdir%': '<(system_libdir)',
[email protected]8974e042010-06-21 18:06:521097 'component%': '<(component)',
[email protected]1a43cc572014-03-07 22:36:321098 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_generation)',
[email protected]bb6aba32011-01-07 19:04:431099 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)',
[email protected]9e94cca2011-02-04 17:38:171100 'use_third_party_translations%': '<(use_third_party_translations)',
[email protected]9a425422011-01-11 00:53:181101 'remoting%': '<(remoting)',
[email protected]bd7b6fe2012-03-05 21:02:401102 'enable_one_click_signin%': '<(enable_one_click_signin)',
[email protected]b56a9e02014-06-20 09:57:041103 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)',
[email protected]dda90ae2011-07-19 22:07:481104 'enable_webrtc%': '<(enable_webrtc)',
[email protected]d5cf9fb2011-09-27 00:15:161105 'chromium_win_pch%': '<(chromium_win_pch)',
[email protected]1ec68c42011-06-01 13:56:251106 'configuration_policy%': '<(configuration_policy)',
[email protected]4b58e7d2011-07-11 10:22:561107 'safe_browsing%': '<(safe_browsing)',
[email protected]418653fdf2014-07-02 07:38:211108 'enable_web_speech%': '<(enable_web_speech)',
[email protected]7cce3232011-10-28 10:41:571109 'notifications%': '<(notifications)',
[email protected]5d451ad2011-02-11 16:43:461110 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
[email protected]970fd4e2012-12-19 11:09:371111 'mac_want_real_dsym%': '<(mac_want_real_dsym)',
[email protected]92799b632011-08-15 14:33:061112 'asan%': '<(asan)',
[email protected]20a127f2014-01-16 03:25:031113 'asan_coverage%': '<(asan_coverage)',
[email protected]1b9654122014-04-28 12:11:151114 'use_sanitizer_options%': '<(use_sanitizer_options)',
[email protected]1612e552014-02-15 04:49:181115 'syzyasan%': '<(syzyasan)',
[email protected]877090c2014-03-19 15:25:541116 'syzygy_optimize%': '<(syzygy_optimize)',
[email protected]062522a2013-06-13 15:49:551117 'lsan%': '<(lsan)',
[email protected]a10ddd2d2013-02-26 20:06:591118 'msan%': '<(msan)',
[email protected]190d4ce62014-01-17 20:24:531119 'msan_blacklist%': '<(msan_blacklist)',
[email protected]a030ab62014-06-23 17:14:151120 'msan_track_origins%': '<(msan_track_origins)',
[email protected]c9a829272012-07-04 07:51:121121 'tsan%': '<(tsan)',
[email protected]7bdd7d7c2012-11-01 10:36:161122 'tsan_blacklist%': '<(tsan_blacklist)',
[email protected]7fd639a2014-05-30 23:59:011123 'ubsan%': '<(ubsan)',
[email protected]0dbe7af92014-06-26 23:31:401124 'ubsan_vptr%': '<(ubsan_vptr)',
1125 'ubsan_vptr_blacklist%': '<(ubsan_vptr_blacklist)',
[email protected]c8103a42013-11-12 13:41:301126 'use_instrumented_libraries%': '<(use_instrumented_libraries)',
[email protected]22b3f531e2013-12-20 13:07:281127 'use_custom_libcxx%': '<(use_custom_libcxx)',
[email protected]480c6672014-08-04 11:28:061128 'use_system_libcxx%': '<(use_system_libcxx)',
[email protected]7ce58b22012-09-26 05:17:251129 'clang_type_profiler%': '<(clang_type_profiler)',
[email protected]8a6abd12012-05-16 10:04:441130 'order_profiling%': '<(order_profiling)',
[email protected]00b0a7f2012-01-25 15:30:461131 'order_text_section%': '<(order_text_section)',
[email protected]6a3cd37e2012-04-17 17:13:341132 'enable_extensions%': '<(enable_extensions)',
[email protected]18e0f39b2012-01-17 16:47:341133 'enable_plugin_installation%': '<(enable_plugin_installation)',
[email protected]6d17f6392012-12-05 05:24:541134 'enable_plugins%': '<(enable_plugins)',
[email protected]cdb756ef2012-04-05 18:34:531135 'enable_session_service%': '<(enable_session_service)',
[email protected]6b40bb582012-03-15 20:50:381136 'enable_themes%': '<(enable_themes)',
[email protected]57e67ac2013-02-22 03:37:221137 'enable_autofill_dialog%': '<(enable_autofill_dialog)',
[email protected]d3340bf512014-05-22 22:27:581138 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)',
[email protected]0acdd772012-04-05 22:53:001139 'enable_background%': '<(enable_background)',
[email protected]f0a58322014-04-16 09:50:231140 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)',
1141 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)',
[email protected]8d726a42012-02-09 03:49:001142 'linux_use_gold_flags%': '<(linux_use_gold_flags)',
[email protected]9dbbabd2014-04-30 23:42:321143 'linux_use_debug_fission%': '<(linux_use_debug_fission)',
[email protected]62424a52012-03-18 03:09:501144 'use_canvas_skia%': '<(use_canvas_skia)',
[email protected]0ef3a522012-05-15 14:56:331145 'test_isolation_mode%': '<(test_isolation_mode)',
1146 'test_isolation_outdir%': '<(test_isolation_outdir)',
[email protected]5b38a522013-03-20 17:00:471147 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)',
[email protected]658677f2012-06-09 06:04:021148 'enable_printing%': '<(enable_printing)',
[email protected]c6ce08072013-07-31 07:48:531149 'enable_spellcheck%': '<(enable_spellcheck)',
[email protected]6ee43a72012-12-07 22:44:401150 'enable_google_now%': '<(enable_google_now)',
[email protected]3b5e88d2013-09-06 11:03:061151 'cld_version%': '<(cld_version)',
[email protected]61753f22014-03-19 12:10:591152 'cld2_table_size%': '<(cld2_table_size)',
[email protected]cf78eec2014-06-24 15:54:261153 'cld2_data_source%': '<(cld2_data_source)',
[email protected]e6026962012-06-14 21:28:321154 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
[email protected]02494ec2014-05-07 15:05:291155 'disable_file_support%': '<(disable_file_support)',
[email protected]9bfe0ab2012-08-30 13:18:111156 'disable_ftp_support%': '<(disable_ftp_support)',
[email protected]847aaab82014-05-07 14:05:461157 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)',
[email protected]44879ed2012-04-06 01:11:021158 'enable_task_manager%': '<(enable_task_manager)',
[email protected]740ebed2012-06-27 19:14:061159 'sas_dll_path%': '<(sas_dll_path)',
[email protected]49ae3e52012-04-12 09:50:121160 'wix_path%': '<(wix_path)',
[email protected]e190d272012-08-30 17:36:441161 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
[email protected]adb44342012-07-23 13:36:121162 'use_system_libjpeg%': '<(use_system_libjpeg)',
[email protected]d999c3cb2013-03-12 10:22:361163 'android_webview_build%': '<(android_webview_build)',
[email protected]967767d2014-07-16 05:46:241164 'android_webview_telemetry_build%': '<(android_webview_telemetry_build)',
[email protected]7ef66c62014-03-20 18:20:001165 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)',
[email protected]5660f192013-04-02 16:55:461166 'gyp_managed_install%': 0,
[email protected]97d63ec2013-06-25 18:42:071167 'create_standalone_apk%': 1,
[email protected]dc4e8b82012-11-15 03:58:161168 'enable_app_list%': '<(enable_app_list)',
[email protected]cb800562012-11-20 22:36:071169 'use_default_render_theme%': '<(use_default_render_theme)',
[email protected]dc4e8b82012-11-15 03:58:161170 'enable_settings_app%': '<(enable_settings_app)',
[email protected]2b113652012-09-17 17:01:391171 'google_api_key%': '<(google_api_key)',
1172 'google_default_client_id%': '<(google_default_client_id)',
1173 'google_default_client_secret%': '<(google_default_client_secret)',
[email protected]0850e842013-01-19 03:44:311174 'enable_managed_users%': '<(enable_managed_users)',
[email protected]1591c44d2013-07-15 13:28:431175 'native_discardable_memory%': '<(native_discardable_memory)',
1176 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)',
[email protected]3f0ed2172013-11-04 20:27:291177 'data_reduction_fallback_host%': '<(data_reduction_fallback_host)',
[email protected]324856d2014-01-14 11:17:301178 'data_reduction_dev_host%': '<(data_reduction_dev_host)',
[email protected]199def22013-02-21 17:52:291179 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)',
1180 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
[email protected]f37e9412013-05-27 23:18:251181 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
[email protected]d8dd60e2013-10-08 00:49:431182 'data_reduction_proxy_probe_url%': '<(data_reduction_proxy_probe_url)',
[email protected]bec6a992014-06-19 01:03:211183 'data_reduction_proxy_warmup_url%': '<(data_reduction_proxy_warmup_url)',
[email protected]f4b492e92014-05-31 22:19:481184 'data_reduction_proxy_ssl_origin%' : '<(data_reduction_proxy_ssl_origin)',
1185 'data_reduction_proxy_alt_origin%' : '<(data_reduction_proxy_alt_origin)',
1186 'data_reduction_proxy_alt_fallback_origin%' : '<(data_reduction_proxy_alt_fallback_origin)',
[email protected]5e131c9f2013-07-10 19:21:051187 'enable_mdns%' : '<(enable_mdns)',
[email protected]2188c8d2014-03-21 00:58:561188 'enable_service_discovery%' : '<(enable_service_discovery)',
[email protected]4b202ae2014-05-23 07:45:361189 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)',
[email protected]754a2002014-02-14 16:40:341190 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)',
[email protected]6268e01b42013-10-19 22:44:191191 'v8_optimized_debug%': '<(v8_optimized_debug)',
[email protected]d80a06192013-08-23 23:33:411192 'proprietary_codecs%': '<(proprietary_codecs)',
[email protected]e71a3622013-12-04 07:32:411193 'use_goma%': '<(use_goma)',
1194 'gomadir%': '<(gomadir)',
[email protected]145eacd2014-05-09 23:18:161195 'video_hole%': '<(video_hole)',
[email protected]01971642012-03-07 14:39:561196
Sadrul Habib Chowdhuryec96ebf2014-09-05 19:13:341197 # Whether or not we are building the Athena shell.
1198 'use_athena%': '0',
1199
[email protected]2f325672012-10-31 23:29:371200 # Use system protobuf instead of bundled one.
1201 'use_system_protobuf%': 0,
1202
[email protected]371e1092011-10-12 20:37:361203 # Use system yasm instead of bundled one.
1204 'use_system_yasm%': 0,
1205
[email protected]ea02e962013-04-26 11:18:161206 # Use system ICU instead of bundled one.
1207 'use_system_icu%' : 0,
1208
[email protected]cd00bd862012-02-29 00:40:361209 # Default to enabled PIE; this is important for ASLR but we may need to be
1210 # able to turn it off for various reasons.
1211 'linux_disable_pie%': 0,
1212
[email protected]caa95c82009-11-23 22:39:321213 # The release channel that this build targets. This is used to restrict
1214 # channel-specific build options, like which installer packages to create.
1215 # The default is 'all', which does no channel-specific filtering.
1216 'channel%': 'all',
1217
[email protected]b3fb8092009-03-12 19:09:241218 # Override chromium_mac_pch and set it to 0 to suppress the use of
1219 # precompiled headers on the Mac. Prefix header injection may still be
1220 # used, but prefix headers will not be precompiled. This is useful when
1221 # using distcc to distribute a build to compile slaves that don't
1222 # share the same compiler executable as the system driving the compilation,
1223 # because precompiled headers rely on pointers into a specific compiler
1224 # executable's image. Setting this to 0 is needed to use an experimental
1225 # Linux-Mac cross compiler distcc farm.
1226 'chromium_mac_pch%': 1,
1227
[email protected]27b687ec42012-03-26 22:22:151228 # The default value for mac_strip in target_defaults. This cannot be
1229 # set there, per the comment about variable% in a target_defaults.
[email protected]70d0f782013-11-14 06:22:291230 'mac_strip_release%': 0,
[email protected]27b687ec42012-03-26 22:22:151231
[email protected]c0a12772013-08-22 00:08:311232 # Set to 1 to enable java code coverage. Instruments classes during build
1233 # to produce .ec files during runtime.
1234 'emma_coverage%': 0,
1235
[email protected]9662d922013-10-04 22:02:441236 # EMMA filter string consisting of a list of inclusion/exclusion patterns
1237 # separated with whitespace and/or comma. Only has effect if
1238 # 'emma_coverage=1'.
1239 'emma_filter%': '',
1240
[email protected]22860352013-12-11 03:02:101241 # Set to 1 to enable running Android lint on java/class files.
[email protected]2faf2bf2014-08-06 19:12:241242 'android_lint%': 1,
[email protected]22860352013-12-11 03:02:101243
[email protected]7477ea6f2009-12-22 23:28:151244 # Although base/allocator lets you select a heap library via an
[email protected]7e0d664a2009-12-03 21:07:471245 # environment variable, the libcmt shim it uses sometimes gets in
1246 # the way. To disable it entirely, and switch to normal msvcrt, do e.g.
1247 # 'win_use_allocator_shim': 0,
1248 # 'win_release_RuntimeLibrary': 2
1249 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
[email protected]8974e042010-06-21 18:06:521250 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt
[email protected]279cd4212009-09-11 22:32:111251
[email protected]e5b2eaa2009-04-14 01:39:121252 # TODO(bradnelson): eliminate this when possible.
1253 # To allow local gyp files to prevent release.vsprops from being included.
1254 # Yes(1) means include release.vsprops.
1255 # Once all vsprops settings are migrated into gyp, this can go away.
1256 'msvs_use_common_release%': 1,
[email protected]606116d22009-05-06 22:38:231257
[email protected]cbd5fd52009-08-26 00:14:271258 # TODO(bradnelson): eliminate this when possible.
1259 # To allow local gyp files to override additional linker options for msvs.
1260 # Yes(1) means set use the common linker options.
[email protected]48c7af72009-07-03 22:00:191261 'msvs_use_common_linker_extras%': 1,
1262
[email protected]1ffb6502009-06-02 07:46:241263 # TODO(sgk): eliminate this if possible.
1264 # It would be nicer to support this via a setting in 'target_defaults'
1265 # in chrome/app/locales/locales.gypi overriding the setting in the
1266 # 'Debug' configuration in the 'target_defaults' dict below,
1267 # but that doesn't work as we'd like.
1268 'msvs_debug_link_incremental%': '2',
1269
[email protected]1f790ef2011-01-11 20:45:361270 # Needed for some of the largest modules.
1271 'msvs_debug_link_nonincremental%': '1',
1272
[email protected]6f390be2012-08-16 18:57:101273 # Turns on Use Library Dependency Inputs for linking chrome.dll on Windows
[email protected]5ab8f482011-08-18 18:30:061274 # to get incremental linking to be faster in debug builds.
[email protected]8f1da83d2012-08-06 21:49:261275 'incremental_chrome_dll%': '0',
[email protected]5ab8f482011-08-18 18:30:061276
[email protected]1ff64292013-07-18 20:37:151277 # Experimental setting to break chrome.dll into multiple pieces based on
1278 # process type.
1279 'chrome_multiple_dll%': '0',
[email protected]56c248b2013-05-08 17:51:021280
[email protected]72589062014-03-14 16:48:301281 # Experimental setting to optimize Chrome's DLLs with PGO.
1282 'chrome_pgo_phase%': '0',
1283
[email protected]3bb37e62012-04-19 03:40:081284 # Clang stuff.
1285 'clang%': '<(clang)',
[email protected]acad4962014-08-04 19:05:021286 'host_clang%': '<(host_clang)',
1287 'make_clang_dir%': '<(make_clang_dir)',
[email protected]58680ce2010-09-18 00:09:151288
[email protected]d04384ab2014-03-13 20:46:011289 # Control which version of clang to use when building for iOS. If set to
1290 # '1', uses the version of clang that ships with Xcode. If set to '0', uses
1291 # the version of clang that ships with the Chromium source. This variable
1292 # is automatically set to '1' when using the Xcode generator.
[email protected]ce2cad72014-02-13 18:17:351293 'clang_xcode%': 0,
1294
[email protected]5e781232011-01-28 02:57:591295 # These two variables can be set in GYP_DEFINES while running
1296 # |gclient runhooks| to let clang run a plugin in every compilation.
1297 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
1298 # Example:
[email protected]93120fe2011-02-03 20:46:421299 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dylib clang_add_plugin=print-fns' gclient runhooks
[email protected]5e781232011-01-28 02:57:591300
1301 'clang_load%': '',
1302 'clang_add_plugin%': '',
1303
[email protected]c9cc9442013-12-28 21:27:441304 # Tell ld64 to write map files describing binary layout. Useful
1305 # for looking at what contributes to binary size, e.g. with
1306 # https://github.com/nico/bloat
1307 'mac_write_linker_maps%': 0,
1308
[email protected]da1c8d692011-09-20 20:35:011309 # The default type of gtest.
1310 'gtest_target_type%': 'executable',
1311
[email protected]7664ab32011-02-01 23:35:251312 # Enable sampling based profiler.
1313 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
1314 'profiling%': '0',
[email protected]0358c4832013-06-23 14:17:581315 # Profile without optimizing out stack frames when profiling==1.
1316 'profiling_full_stack_frames%': '0',
[email protected]7664ab32011-02-01 23:35:251317
[email protected]36532f332010-08-25 00:22:011318 # And if we want to dump symbols for Breakpad-enabled builds.
[email protected]8ebfecb2013-11-14 05:30:311319 'linux_dump_symbols%': 0,
[email protected]36532f332010-08-25 00:22:011320 # And if we want to strip the binary after dumping symbols.
[email protected]05cb6962009-10-01 23:29:031321 'linux_strip_binary%': 0,
[email protected]2578ea12014-01-17 06:02:511322 # If we want stack unwind support for backtrace().
1323 'debug_unwind_tables%': 1,
1324 'release_unwind_tables%': 1,
[email protected]05cb6962009-10-01 23:29:031325
[email protected]8d949f1a02014-04-10 14:01:571326 # Override where to find binutils
1327 'binutils_version%': 0,
1328 'binutils_dir%': '',
1329
[email protected]46ce5b562010-06-16 18:39:531330 # Enable TCMalloc.
[email protected]2fa89ef2014-05-07 18:45:591331 # Default of 'use_allocator' is set to 'none' if OS=='android' later.
1332 'use_allocator%': 'tcmalloc',
[email protected]01699e22009-11-11 19:24:241333
[email protected]556c5d72010-06-10 05:45:011334 # Set to 1 to link against libgnome-keyring instead of using dlopen().
1335 'linux_link_gnome_keyring%': 0,
[email protected]abcc9ac2011-05-16 20:04:351336 # Set to 1 to link against gsettings APIs instead of using dlopen().
1337 'linux_link_gsettings%': 0,
[email protected]556c5d72010-06-10 05:45:011338
[email protected]a63e8d22013-03-23 16:17:081339 # Enable use of OpenMAX DL FFT routines.
1340 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)',
[email protected]fc3ab0c2013-04-17 15:26:341341
[email protected]9821d0d2010-04-16 22:40:371342 # Enable new NPDevice API.
1343 'enable_new_npdevice_api%': 0,
[email protected]ed154592010-04-29 00:18:501344
1345 # Enable EGLImage support in OpenMAX
[email protected]58023be2011-02-04 20:34:141346 'enable_eglimage%': 1,
[email protected]ed154592010-04-29 00:18:501347
[email protected]e72e55b2011-01-06 22:19:301348 # .gyp files or targets should set chromium_code to 1 if they build
1349 # Chromium-specific code, as opposed to external code. This variable is
1350 # used to control such things as the set of warnings to enable, and
1351 # whether warnings are treated as errors.
1352 'chromium_code%': 0,
1353
[email protected]41300ff2014-04-07 08:17:251354 # Disable fatal linker warnings, similarly to how we make it possible
1355 # to disable -Werror (e.g. for different toolchain versions).
1356 'disable_fatal_linker_warnings%': 0,
1357
[email protected]8d726a42012-02-09 03:49:001358 'release_valgrind_build%': 0,
1359
[email protected]b1eb341c2011-11-09 18:46:071360 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600
1361 'enable_wexit_time_destructors%': 0,
1362
[email protected]d69acbc2014-02-10 21:14:461363 # Build libpeerconnection as a static library by default.
1364 'libpeer_target_type%': 'static_library',
1365
[email protected]9e1149d72012-07-24 01:27:171366 # Set to 1 to compile with the OpenGL ES 2.0 conformance tests.
1367 'internal_gles2_conform_tests%': 0,
1368
[email protected]5c18edd2013-11-19 22:04:111369 # Set to 1 to compile the filter fuzzer.
1370 'internal_filter_fuzzer%': 0,
1371
[email protected]e72e55b2011-01-06 22:19:301372 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_'
1373 # so Cocoa is happy (http://crbug.com/20441).
1374 'locales': [
1375 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
1376 'en-US', 'es-419', 'es', 'et', 'fa', 'fi', 'fil', 'fr', 'gu', 'he',
1377 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv',
[email protected]b6fbd6742013-03-15 11:15:411378 'ml', 'mr', 'ms', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru',
[email protected]e72e55b2011-01-06 22:19:301379 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk',
1380 'vi', 'zh-CN', 'zh-TW',
1381 ],
1382
[email protected]cc0322d2011-07-24 09:29:191383 # Pseudo locales are special locales which are used for testing and
1384 # debugging. They don't get copied to the final app. For more info,
1385 # check out https://sites.google.com/a/chromium.org/dev/Home/fake-bidi
1386 'pseudo_locales': [
1387 'fake-bidi',
1388 ],
1389
[email protected]bb6aba32011-01-07 19:04:431390 'grit_defines': [],
1391
[email protected]bd3bd442011-03-28 07:58:511392 # If debug_devtools is set to 1, JavaScript files for DevTools are
1393 # stored as is and loaded from disk. Otherwise, a concatenated file
1394 # is stored in resources.pak. It is still possible to load JS files
1395 # from disk by passing --debug-devtools cmdline switch.
1396 'debug_devtools%': 0,
1397
[email protected]464750f2011-10-24 23:16:181398 # The Java Bridge is not compiled in by default.
1399 'java_bridge%': 0,
1400
[email protected]1e013672012-06-29 22:12:201401 # Code signing for iOS binaries. The bots need to be able to disable this.
1402 'chromium_ios_signing%': 1,
1403
[email protected]33e1c372011-12-14 16:32:071404 # This flag is only used when disable_nacl==0 and disables all those
1405 # subcomponents which would require the installation of a native_client
1406 # untrusted toolchain.
1407 'disable_nacl_untrusted%': 0,
1408
[email protected]407dfa632011-12-23 11:59:351409 # Disable Dart by default.
1410 'enable_dart%': 0,
1411
[email protected]d33d2222014-06-04 15:39:581412 # Copy out the setting of disable_nacl.
1413 'disable_nacl%': '<(disable_nacl)',
[email protected]836285f22012-04-03 16:19:261414
[email protected]1e40ba002013-03-07 22:07:331415 # Portable Native Client is enabled by default.
1416 'disable_pnacl%': 0,
1417
[email protected]fa9d4e262012-08-21 04:39:001418 # Whether to build full debug version for Debug configuration on Android.
1419 # Compared to full debug version, the default Debug configuration on Android
1420 # has no full v8 debug, has size optimization and linker gc section, so that
1421 # we can build a debug version with acceptable size and performance.
1422 'android_full_debug%': 0,
1423
[email protected]65885272012-10-05 23:55:501424 # Sets the default version name and code for Android app, by default we
1425 # do a developer build.
1426 'android_app_version_name%': 'Developer Build',
1427 'android_app_version_code%': 0,
1428
[email protected]014d1ff12013-07-02 01:52:331429 # Contains data about the attached devices for gyp_managed_install.
1430 'build_device_config_path': '<(PRODUCT_DIR)/build_devices.cfg',
1431
[email protected]dd0ef2f2014-04-16 21:52:491432 'sas_dll_exists': '<!pymod_do_main(dir_exists "<(sas_dll_path)")',
1433 'wix_exists': '<!pymod_do_main(dir_exists "<(wix_path)")',
[email protected]49ae3e52012-04-12 09:50:121434
[email protected]1f8d9402012-07-06 22:47:561435 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files',
1436 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files',
[email protected]1ab48032012-07-02 21:48:051437
[email protected]fd6d8822012-12-08 06:56:111438 # Whether we are using the rlz library or not. Platforms like Android send
1439 # rlz codes for searches but do not use the library.
[email protected]b6a5ac92012-10-29 18:17:221440 'enable_rlz%': 0,
1441
[email protected]3b4038e2013-07-28 08:59:541442 # Turns on the i18n support in V8.
1443 'v8_enable_i18n_support': 1,
1444
[email protected]6a694912014-01-17 14:17:401445 # Compile d8 for the host toolset.
1446 'v8_toolset_for_d8': 'host',
1447
[email protected]d98df122013-08-12 13:56:431448 # Use the chromium skia by default.
1449 'use_system_skia%': '0',
1450
[email protected]2c14260f2013-09-11 11:48:221451 # Use brlapi from brltty for braille display support.
1452 'use_brlapi%': 0,
1453
[email protected]c66b5aa2013-09-12 13:29:411454 # Relative path to icu.gyp from this file.
1455 'icu_gyp_path': '../third_party/icu/icu.gyp',
1456
[email protected]8c64e282013-11-28 16:05:141457 # IPC fuzzer is disabled by default.
1458 'enable_ipc_fuzzer%': 0,
1459
[email protected]f35bcea82013-12-04 04:37:061460
[email protected]1eec679e2013-12-13 22:10:271461 # Force disable libstdc++ debug mode.
1462 'disable_glibcxx_debug%': 0,
1463
[email protected]8063669f2014-04-01 01:50:291464 # Set to 1 to compile with MSE support for MPEG2 TS
1465 'enable_mpeg2ts_stream_parser%': 0,
1466
[email protected]ec13bd72014-04-16 19:04:301467 # Support ChromeOS touchpad gestures with ozone.
1468 'use_evdev_gestures%': 0,
1469
[email protected]3bdb0992014-05-16 21:30:511470 # Default ozone platform (if no --ozone-platform flag).
1471 'ozone_platform%': "",
1472
1473 # Ozone platforms to include in the build.
1474 'ozone_platform_caca%': 0,
1475 'ozone_platform_dri%': 0,
1476 'ozone_platform_egltest%': 0,
[email protected]26ce20d52014-05-29 17:22:501477 'ozone_platform_gbm%': 0,
[email protected]3bdb0992014-05-16 21:30:511478 'ozone_platform_ozonex%': 0,
1479 'ozone_platform_test%': 0,
1480
[email protected]54d5b0652014-05-22 08:52:051481 # Chrome OS: whether to build ChromeVox from sources in the Chromium
1482 # repository rather than using precompiled JavaScript in
1483 # chrome/third_party/chromevox. This is still experimental.
[email protected]d7a6ba72014-06-26 18:00:551484 'use_migrated_chromevox%': 1,
[email protected]54d5b0652014-05-22 08:52:051485
[email protected]b3819c2e2014-05-18 14:13:071486 # Chrome OS: whether to also build the upcoming version of
1487 # ChromeVox, which can then be enabled via a command-line switch.
1488 'use_chromevox_next%': 0,
1489
[email protected]912c55c2009-07-31 23:33:551490 'conditions': [
[email protected]480c6672014-08-04 11:28:061491 # The version of clang shipped upstream does not find C++ headers when
1492 # using -stdlib=libc++ so we instead need to use the version of clang
1493 # coming with Xcode.
1494 ['OS=="ios" and use_system_libcxx==1', {
1495 'clang_xcode%': 1,
1496 }],
[email protected]877090c2014-03-19 15:25:541497 # Enable the Syzygy optimization step for the official builds.
1498 ['OS=="win" and buildtype=="Official" and syzyasan!=1', {
1499 'syzygy_optimize%': 1,
1500 }, {
1501 'syzygy_optimize%': 0,
1502 }],
[email protected]9c233692014-04-09 20:20:451503 # Get binutils version so we can enable debug fission if we can.
1504 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1505 'conditions': [
1506 # compiler_version doesn't work with clang
1507 # TODO(mithro): Land https://codereview.chromium.org/199793014/ so
1508 # compiler_version works with clang.
1509 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so
1510 # that it takes effect here.
[email protected]0dbe7af92014-06-26 23:31:401511 ['clang==0 and asan==0 and lsan==0 and tsan==0 and msan==0 and ubsan==0 and ubsan_vptr==0', {
[email protected]707ad51b2014-04-23 08:20:161512 'binutils_version%': '<!pymod_do_main(compiler_version target assembler)',
[email protected]9c233692014-04-09 20:20:451513 }],
1514 # On Android we know the binutils version in the toolchain.
1515 ['OS=="android"', {
1516 'binutils_version%': 222,
1517 }],
noms277720162014-08-26 15:21:081518 ['host_arch=="x64"', {
1519 'binutils_dir%': 'third_party/binutils/Linux_x64/Release/bin',
1520 }],
1521 ['host_arch=="ia32"', {
1522 'binutils_dir%': 'third_party/binutils/Linux_ia32/Release/bin',
1523 }],
[email protected]9c233692014-04-09 20:20:451524 # Our version of binutils in third_party/binutils
[email protected]f0a58322014-04-16 09:50:231525 ['linux_use_bundled_binutils==1', {
[email protected]9c233692014-04-09 20:20:451526 'binutils_version%': 224,
[email protected]9c233692014-04-09 20:20:451527 }],
1528 ],
1529 }, {
1530 'binutils_version%': 0,
1531 }],
[email protected]5f683172013-04-27 01:53:191532 # The version of GCC in use, set later in platforms that use GCC and have
1533 # not explicitly chosen to build with clang. Currently, this means all
1534 # platforms except Windows, Mac and iOS.
1535 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that
1536 # it takes effect here.
[email protected]0dbe7af92014-06-26 23:31:401537 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsan==0 and tsan==0 and msan==0 and ubsan_vptr==0', {
[email protected]ffa01d22014-01-14 00:14:491538 'conditions': [
fdegans6b767132014-09-09 10:09:291539 ['OS=="android" and android_webview_build==0', {
1540 'host_gcc_version%': '<!pymod_do_main(compiler_version host compiler)',
1541 # We directly set the gcc version since we know what we use.
1542 'gcc_version%': 49,
[email protected]ffa01d22014-01-14 00:14:491543 }],
fdegans6b767132014-09-09 10:09:291544 ['OS=="android" and android_webview_build==1', {
torneed51a582014-08-28 18:28:171545 # Android WebView uses a hermetic clang toolchain for host builds.
1546 'host_gcc_version%': 0,
fdegans6b767132014-09-09 10:09:291547 # Android WebView uses the GCC toolchain from the Android build.
1548 'gcc_version%': 48,
1549 }],
1550 ['OS!="android"', {
[email protected]313fcf632014-05-27 13:58:591551 'host_gcc_version%': '<!pymod_do_main(compiler_version host compiler)',
fdegans6b767132014-09-09 10:09:291552 'gcc_version%': '<!pymod_do_main(compiler_version target compiler)',
[email protected]313fcf632014-05-27 13:58:591553 }],
[email protected]ffa01d22014-01-14 00:14:491554 ],
[email protected]5f683172013-04-27 01:53:191555 }, {
[email protected]707ad51b2014-04-23 08:20:161556 'host_gcc_version%': 0,
[email protected]5f683172013-04-27 01:53:191557 'gcc_version%': 0,
1558 }],
[email protected]dd0ef2f2014-04-16 21:52:491559 ['OS=="win" and "<!pymod_do_main(dir_exists <(windows_sdk_default_path))"=="True"', {
[email protected]1f8d9402012-07-06 22:47:561560 'windows_sdk_path%': '<(windows_sdk_default_path)',
1561 }, {
1562 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0',
1563 }],
[email protected]dd0ef2f2014-04-16 21:52:491564 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"=="True"', {
[email protected]1f8d9402012-07-06 22:47:561565 'directx_sdk_path%': '<(directx_sdk_default_path)',
1566 }, {
1567 'directx_sdk_path%': '$(DXSDK_DIR)',
1568 }],
[email protected]54184ce72012-10-18 07:11:261569 ['OS=="win"', {
1570 'windows_driver_kit_path%': '$(WDK_DIR)',
1571 }],
[email protected]1e013672012-06-29 22:12:201572 ['os_posix==1 and OS!="mac" and OS!="ios"', {
[email protected]cbd5fd52009-08-26 00:14:271573 'conditions': [
petarjc8a5da742014-08-27 14:33:361574 ['target_arch=="mipsel" or target_arch=="mips64el"', {
[email protected]eb5f1672013-01-31 07:56:461575 'werror%': '',
1576 'disable_nacl%': 1,
[email protected]eb5f1672013-01-31 07:56:461577 'nacl_untrusted_build%': 0,
[email protected]2fa89ef2014-05-07 18:45:591578 'use_allocator%': 'none',
[email protected]59e85f472013-06-28 18:20:441579 }],
1580 ['OS=="linux" and target_arch=="mipsel"', {
[email protected]eb5f1672013-01-31 07:56:461581 'sysroot%': '<(sysroot)',
[email protected]801978d32013-03-09 02:51:281582 'CXX%': '<(CXX)',
[email protected]eb5f1672013-01-31 07:56:461583 }],
[email protected]4c9cc6c2009-10-01 18:54:571584 # All Chrome builds have breakpad symbols, but only process the
1585 # symbols from official builds.
[email protected]c913cb82010-08-31 19:44:081586 ['(branding=="Chrome" and buildtype=="Official")', {
[email protected]4c9cc6c2009-10-01 18:54:571587 'linux_dump_symbols%': 1,
[email protected]2578ea12014-01-17 06:02:511588
1589 # Omit unwind support in official release builds to save space. We
1590 # can use breakpad for these builds.
1591 'release_unwind_tables%': 0,
noms277720162014-08-26 15:21:081592
1593 'conditions': [
1594 # For official builds, use a 64-bit linker to avoid running out
1595 # of address space. The buildbots should have a 64-bit kernel
1596 # and a 64-bit libc installed.
1597 ['host_arch=="ia32" and target_arch=="ia32"', {
1598 'linux_use_bundled_gold%': '1',
1599 'binutils_dir%': 'third_party/binutils/Linux_x64/Release/bin',
1600 }],
1601 ],
[email protected]4c9cc6c2009-10-01 18:54:571602 }],
[email protected]cbd5fd52009-08-26 00:14:271603 ],
[email protected]1e013672012-06-29 22:12:201604 }], # os_posix==1 and OS!="mac" and OS!="ios"
[email protected]0d16f292012-07-02 22:10:481605 ['OS=="ios"', {
1606 'disable_nacl%': 1,
[email protected]a95d5302012-11-03 00:02:191607 'enable_background%': 0,
[email protected]7ef66c62014-03-20 18:20:001608 'icu_use_data_file_flag%': 1,
[email protected]418653fdf2014-07-02 07:38:211609 'enable_web_speech%': 0,
[email protected]4e3996f92012-07-17 10:41:131610 'use_system_libxml%': 1,
[email protected]073bef82012-07-24 18:03:471611 'use_system_sqlite%': 1,
[email protected]b6fbd6742013-03-15 11:15:411612 'locales==': [
[email protected]47cf7a32013-09-03 22:16:391613 'ar', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'en-US', 'es', 'es-MX',
[email protected]27a1d6b2014-07-23 17:14:531614 'fi', 'fr', 'he', 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'ms',
1615 'nb', 'nl', 'pl', 'pt', 'pt-PT', 'ro', 'ru', 'sk', 'sv', 'th', 'tr',
1616 'uk', 'vi', 'zh-CN', 'zh-TW',
[email protected]b6fbd6742013-03-15 11:15:411617 ],
[email protected]57871bc2012-08-20 16:28:121618
1619 # The Mac SDK is set for iOS builds and passed through to Mac
1620 # sub-builds. This allows the Mac sub-build SDK in an iOS build to be
1621 # overridden from the command line the same way it is for a Mac build.
1622 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py 10.6)',
[email protected]2c261532012-10-06 00:46:291623
[email protected]523f128d2013-08-06 17:36:111624 # iOS SDK and deployment target support. The |ios_sdk| value is left
1625 # blank so that when it is set in the project files it will be the
1626 # "current" iOS SDK. Forcing a specific SDK even if it is "current"
1627 # causes Xcode to spit out a warning for every single project file for
1628 # not using the "current" SDK.
[email protected]2c261532012-10-06 00:46:291629 'ios_sdk%': '',
1630 'ios_sdk_path%': '',
[email protected]7c613ee92014-08-14 21:22:311631 'ios_deployment_target%': '7.0',
[email protected]fcd634182012-10-09 10:50:321632
1633 'conditions': [
1634 # ios_product_name is set to the name of the .app bundle as it should
1635 # appear on disk.
1636 ['branding=="Chrome"', {
1637 'ios_product_name%': 'Chrome',
1638 }, { # else: branding!="Chrome"
1639 'ios_product_name%': 'Chromium',
1640 }],
1641 ['branding=="Chrome" and buildtype=="Official"', {
1642 'ios_breakpad%': 1,
1643 }, { # else: branding!="Chrome" or buildtype!="Official"
1644 'ios_breakpad%': 0,
1645 }],
1646 ],
1647 }], # OS=="ios"
[email protected]da1c8d692011-09-20 20:35:011648 ['OS=="android"', {
1649 # Location of Android NDK.
1650 'variables': {
1651 'variables': {
[email protected]1ffa4b62014-02-19 18:20:221652 # Unfortunately we have to use absolute paths to the SDK/NDK because
1653 # they're passed to ant which uses a different relative path from
1654 # gyp.
1655 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_tools/ndk/',
1656 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_tools/sdk/',
1657 'android_host_arch%': '<!(uname -m)',
1658 # Android API-level of the SDK used for compilation.
[email protected]7ced8ad2014-07-16 21:47:171659 'android_sdk_version%': '20',
[email protected]c91e7672014-07-14 20:04:491660 'android_sdk_build_tools_version%': '20.0.0',
[email protected]1ffa4b62014-02-19 18:20:221661 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')",
[email protected]da1c8d692011-09-20 20:35:011662 },
[email protected]5061d152013-01-16 17:45:571663 # Copy conditionally-set variables out one scope.
[email protected]da1c8d692011-09-20 20:35:011664 'android_ndk_root%': '<(android_ndk_root)',
[email protected]5061d152013-01-16 17:45:571665 'android_sdk_root%': '<(android_sdk_root)',
[email protected]e20a8ad2013-03-18 15:05:041666 'android_sdk_version%': '<(android_sdk_version)',
[email protected]225ec632013-04-03 18:20:221667 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport',
[email protected]625eb032014-02-13 21:48:251668 'host_os%': '<(host_os)',
[email protected]5061d152013-01-16 17:45:571669
[email protected]e20a8ad2013-03-18 15:05:041670 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_version)',
[email protected]aeaf01212014-02-19 00:52:521671 # Android SDK build tools (e.g. dx, aapt, aidl)
1672 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_build_tools_version)',
[email protected]5061d152013-01-16 17:45:571673
[email protected]5cfec2b2013-03-05 20:54:331674 # Android API level 14 is ICS (Android 4.0) which is the minimum
1675 # platform requirement for Chrome on Android, we use it for native
1676 # code compilation.
[email protected]5061d152013-01-16 17:45:571677 'conditions': [
1678 ['target_arch == "ia32"', {
1679 'android_app_abi%': 'x86',
1680 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gdbserver/gdbserver',
[email protected]5cfec2b2013-03-05 20:54:331681 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/arch-x86',
[email protected]bda44542014-04-29 08:54:161682 'android_ndk_lib_dir%': 'usr/lib',
fdegans6b767132014-09-09 10:09:291683 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
[email protected]5061d152013-01-16 17:45:571684 }],
[email protected]be0090f22014-03-18 17:43:481685 ['target_arch == "x64"', {
1686 'android_app_abi%': 'x86_64',
[email protected]84b50a582014-07-17 23:45:371687 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64/gdbserver/gdbserver',
1688 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/arch-x86_64',
[email protected]bda44542014-04-29 08:54:161689 'android_ndk_lib_dir%': 'usr/lib64',
[email protected]84b50a582014-07-17 23:45:371690 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
[email protected]be0090f22014-03-18 17:43:481691 }],
[email protected]5061d152013-01-16 17:45:571692 ['target_arch=="arm"', {
1693 'conditions': [
[email protected]7d6763422013-04-26 12:06:541694 ['arm_version<7', {
[email protected]5061d152013-01-16 17:45:571695 'android_app_abi%': 'armeabi',
1696 }, {
1697 'android_app_abi%': 'armeabi-v7a',
1698 }],
1699 ],
1700 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gdbserver/gdbserver',
[email protected]5cfec2b2013-03-05 20:54:331701 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/arch-arm',
[email protected]bda44542014-04-29 08:54:161702 'android_ndk_lib_dir%': 'usr/lib',
fdegans6b767132014-09-09 10:09:291703 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-androideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
[email protected]5061d152013-01-16 17:45:571704 }],
[email protected]7a2f984a2014-03-20 18:35:491705 ['target_arch == "arm64"', {
[email protected]fa846092014-03-25 04:01:001706 'android_app_abi%': 'arm64-v8a',
[email protected]84b50a582014-07-17 23:45:371707 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm64/gdbserver/gdbserver',
1708 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/arch-arm64',
[email protected]bda44542014-04-29 08:54:161709 'android_ndk_lib_dir%': 'usr/lib',
[email protected]84b50a582014-07-17 23:45:371710 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
[email protected]7a2f984a2014-03-20 18:35:491711 }],
[email protected]23eea4a42013-04-27 04:10:261712 ['target_arch == "mipsel"', {
1713 'android_app_abi%': 'mips',
1714 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/gdbserver/gdbserver',
1715 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/arch-mips',
[email protected]bda44542014-04-29 08:54:161716 'android_ndk_lib_dir%': 'usr/lib',
fdegans6b767132014-09-09 10:09:291717 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
[email protected]23eea4a42013-04-27 04:10:261718 }],
petarjc8a5da742014-08-27 14:33:361719 ['target_arch == "mips64el"', {
1720 'android_app_abi%': 'mips64',
1721 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips64/gdbserver/gdbserver',
1722 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/arch-mips64',
1723 'android_ndk_lib_dir%': 'usr/lib64',
1724 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1725 'gcc_version%': 49,
1726 }],
[email protected]5061d152013-01-16 17:45:571727 ],
[email protected]da1c8d692011-09-20 20:35:011728 },
[email protected]5061d152013-01-16 17:45:571729 # Copy conditionally-set variables out one scope.
1730 'android_app_abi%': '<(android_app_abi)',
1731 'android_gdbserver%': '<(android_gdbserver)',
[email protected]da1c8d692011-09-20 20:35:011732 'android_ndk_root%': '<(android_ndk_root)',
[email protected]941c6ab2014-03-24 04:07:341733 'android_ndk_sysroot%': '<(android_ndk_sysroot)',
[email protected]5061d152013-01-16 17:45:571734 'android_sdk_root%': '<(android_sdk_root)',
1735 'android_sdk_version%': '<(android_sdk_version)',
1736 'android_toolchain%': '<(android_toolchain)',
1737
[email protected]da1c8d692011-09-20 20:35:011738 'android_ndk_include': '<(android_ndk_sysroot)/usr/include',
[email protected]bda44542014-04-29 08:54:161739 'android_ndk_lib': '<(android_ndk_sysroot)/<(android_ndk_lib_dir)',
[email protected]6bfda61f2013-08-09 06:48:181740 'android_sdk_tools%': '<(android_sdk_tools)',
[email protected]e20a8ad2013-03-18 15:05:041741 'android_sdk%': '<(android_sdk)',
1742 'android_sdk_jar%': '<(android_sdk)/android.jar',
[email protected]da1c8d692011-09-20 20:35:011743
[email protected]225ec632013-04-03 18:20:221744 'android_stlport_root': '<(android_stlport_root)',
[email protected]225ec632013-04-03 18:20:221745 'android_stlport_include': '<(android_stlport_root)/stlport',
[email protected]225ec632013-04-03 18:20:221746 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_abi)',
[email protected]625eb032014-02-13 21:48:251747 'host_os%': '<(host_os)',
[email protected]225ec632013-04-03 18:20:221748
[email protected]8ecd30e2014-07-04 19:58:341749 # Location of the "objcopy" binary, used by both gyp and scripts.
1750 'android_objcopy%' : '<!(/bin/echo -n <(android_toolchain)/*-objcopy)',
1751
[email protected]c0f76312012-08-16 13:52:041752 # Location of the "strip" binary, used by both gyp and scripts.
1753 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)',
1754
[email protected]225ec632013-04-03 18:20:221755 # Location of the "readelf" binary.
1756 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)',
1757
[email protected]d8621ce2013-02-22 00:37:331758 # Determines whether we should optimize JNI generation at the cost of
1759 # breaking assumptions in the build system that when inputs have changed
1760 # the outputs should always change as well. This is meant purely for
1761 # developer builds, to avoid spurious re-linking of native files.
mlamouri23668752014-08-28 20:56:451762 'optimize_jni_generation%': '<(optimize_jni_generation)',
[email protected]d8621ce2013-02-22 00:37:331763
[email protected]da1c8d692011-09-20 20:35:011764 # Always uses openssl.
1765 'use_openssl%': 1,
[email protected]e1b2d732014-03-28 16:20:321766 'use_openssl_certs%': 1,
[email protected]da1c8d692011-09-20 20:35:011767
1768 'proprietary_codecs%': '<(proprietary_codecs)',
[email protected]9c8eb982014-07-09 07:51:501769 'safe_browsing%': 1,
[email protected]418653fdf2014-07-02 07:38:211770 'enable_web_speech%': 0,
[email protected]464750f2011-10-24 23:16:181771 'java_bridge%': 1,
[email protected]48de0fc2012-08-02 11:03:581772 'build_ffmpegsumo%': 0,
[email protected]2fa89ef2014-05-07 18:45:591773 'use_allocator%': 'none',
[email protected]658677f2012-06-09 06:04:021774
[email protected]ad17e342012-07-17 20:45:481775 # Disable Native Client.
1776 'disable_nacl%': 1,
1777
[email protected]58242012012-04-12 16:14:311778 # Android does not support background apps.
[email protected]0acdd772012-04-05 22:53:001779 'enable_background%': 0,
[email protected]5fd2e842012-03-01 00:29:111780
[email protected]cdb756ef2012-04-05 18:34:531781 # Sessions are store separately in the Java side.
1782 'enable_session_service%': 0,
1783
[email protected]ad17e342012-07-17 20:45:481784 'p2p_apis%' : 0,
1785
[email protected]48de0fc2012-08-02 11:03:581786 'gtest_target_type%': 'shared_library',
[email protected]da1c8d692011-09-20 20:35:011787
1788 # Uses system APIs for decoding audio and video.
1789 'use_libffmpeg%': '0',
1790
[email protected]adb44342012-07-23 13:36:121791 # When building as part of the Android system, use system libraries
1792 # where possible to reduce ROM size.
[email protected]d999c3cb2013-03-12 10:22:361793 'use_system_stlport%': '<(android_webview_build)',
[email protected]adb44342012-07-23 13:36:121794
[email protected]da1c8d692011-09-20 20:35:011795 # Copy it out one scope.
[email protected]d999c3cb2013-03-12 10:22:361796 'android_webview_build%': '<(android_webview_build)',
[email protected]71b4fc32014-08-11 11:27:121797
1798 # Default android linker script for shared library exports.
1799 'android_linker_script%': '<(SHARED_INTERMEDIATE_DIR)/android_exports.lst',
[email protected]da1c8d692011-09-20 20:35:011800 }], # OS=="android"
[email protected]24641702014-07-03 17:20:151801 ['embedded==1', {
1802 'use_system_fontconfig%': 0,
1803 }, {
1804 'use_system_fontconfig%': 1,
1805 }],
1806 ['chromecast==1', {
[email protected]bef141592014-08-15 04:28:011807 'enable_mpeg2ts_stream_parser%': 1,
[email protected]24641702014-07-03 17:20:151808 'ffmpeg_branding%': 'Chrome',
1809 'ozone_platform_ozonex%': 1,
1810 'conditions': [
1811 ['target_arch=="arm"', {
1812 'arm_arch%': '',
1813 'arm_tune%': 'cortex-a9',
1814 'arm_thumb%': 1,
[email protected]24641702014-07-03 17:20:151815 'video_hole%': 1,
1816 }],
1817 ],
1818 }],
hjd46eac8f2014-09-09 15:42:311819 ['android_webview_build==1', {
[email protected]b3139552013-05-30 14:16:121820 # When building the WebView in the Android tree, jarjar will remap all
1821 # the class names, so the JNI generator needs to know this.
1822 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt',
1823 }],
[email protected]b9b8f9cf2014-07-17 04:42:261824 ['OS=="linux" and target_arch!="mipsel"', {
[email protected]5b61a7b2014-07-10 07:36:381825 # TODO(thakis): This is here to measure perf for a while.
1826 'clang%': 1,
1827 }], # OS=="mac"
[email protected]e14a9f92009-08-05 19:26:071828 ['OS=="mac"', {
[email protected]70d0f782013-11-14 06:22:291829 'conditions': [
1830 # All Chrome builds have breakpad symbols, but only process the
1831 # symbols from official builds.
1832 ['(branding=="Chrome" and buildtype=="Official")', {
1833 'mac_strip_release%': 1,
1834 }],
[email protected]22860352013-12-11 03:02:101835 ],
[email protected]296bc452013-05-13 21:29:471836 }], # OS=="mac"
1837 ['OS=="mac" or OS=="ios"', {
[email protected]d04384ab2014-03-13 20:46:011838 'clang%': 1,
1839
[email protected]2c261532012-10-06 00:46:291840 'variables': {
1841 # Mac OS X SDK and deployment target support. The SDK identifies
1842 # the version of the system headers that will be used, and
1843 # corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time
1844 # macro. "Maximum allowed" refers to the operating system version
1845 # whose APIs are available in the headers. The deployment target
1846 # identifies the minimum system version that the built products are
1847 # expected to function on. It corresponds to the
1848 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro. To ensure these
1849 # macros are available, #include <AvailabilityMacros.h>. Additional
1850 # documentation on these macros is available at
1851 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTION3
1852 # Chrome normally builds with the Mac OS X 10.6 SDK and sets the
1853 # deployment target to 10.6. Other projects, such as O3D, may
1854 # override these defaults.
1855
1856 # Normally, mac_sdk_min is used to find an SDK that Xcode knows
1857 # about that is at least the specified version. In official builds,
1858 # the SDK must match mac_sdk_min exactly. If the SDK is installed
1859 # someplace that Xcode doesn't know about, set mac_sdk_path to the
1860 # path to the SDK; when set to a non-empty string, SDK detection
1861 # based on mac_sdk_min will be bypassed entirely.
1862 'mac_sdk_min%': '10.6',
1863 'mac_sdk_path%': '',
1864
1865 'mac_deployment_target%': '10.6',
1866 },
1867
1868 'mac_sdk_min': '<(mac_sdk_min)',
1869 'mac_sdk_path': '<(mac_sdk_path)',
1870 'mac_deployment_target': '<(mac_deployment_target)',
1871
[email protected]794fb4782011-12-14 19:10:561872 # Compile in Breakpad support by default so that it can be
1873 # tested, even if it is not enabled by default at runtime.
1874 'mac_breakpad_compiled_in%': 1,
[email protected]e14a9f92009-08-05 19:26:071875 'conditions': [
1876 # mac_product_name is set to the name of the .app bundle as it should
1877 # appear on disk. This duplicates data from
1878 # chrome/app/theme/chromium/BRANDING and
1879 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get
1880 # these names into the build system.
1881 ['branding=="Chrome"', {
1882 'mac_product_name%': 'Google Chrome',
1883 }, { # else: branding!="Chrome"
1884 'mac_product_name%': 'Chromium',
1885 }],
1886
[email protected]e14a9f92009-08-05 19:26:071887 ['branding=="Chrome" and buildtype=="Official"', {
[email protected]2c261532012-10-06 00:46:291888 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py --verify <(mac_sdk_min) --sdk_path=<(mac_sdk_path))',
[email protected]794fb4782011-12-14 19:10:561889 # Enable uploading crash dumps.
1890 'mac_breakpad_uploads%': 1,
1891 # Enable dumping symbols at build time for use by Mac Breakpad.
[email protected]e14a9f92009-08-05 19:26:071892 'mac_breakpad%': 1,
[email protected]794fb4782011-12-14 19:10:561893 # Enable Keystone auto-update support.
[email protected]e14a9f92009-08-05 19:26:071894 'mac_keystone%': 1,
1895 }, { # else: branding!="Chrome" or buildtype!="Official"
[email protected]2c261532012-10-06 00:46:291896 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py <(mac_sdk_min))',
[email protected]794fb4782011-12-14 19:10:561897 'mac_breakpad_uploads%': 0,
[email protected]e14a9f92009-08-05 19:26:071898 'mac_breakpad%': 0,
1899 'mac_keystone%': 0,
1900 }],
1901 ],
[email protected]296bc452013-05-13 21:29:471902 }], # OS=="mac" or OS=="ios"
[email protected]912c55c2009-07-31 23:33:551903 ['OS=="win"', {
1904 'conditions': [
[email protected]a7a15f32013-08-06 06:09:431905 # This is the architecture convention used in WinSDK paths.
1906 ['target_arch=="ia32"', {
1907 'winsdk_arch%': 'x86',
1908 },{
1909 'winsdk_arch%': '<(target_arch)',
1910 }],
[email protected]8974e042010-06-21 18:06:521911 ['component=="shared_library"', {
1912 'win_use_allocator_shim%': 0,
[email protected]45b7c522013-08-21 06:58:221913 },{
1914 # Turn on multiple dll by default on Windows when in static_library.
1915 'chrome_multiple_dll%': 1,
[email protected]8974e042010-06-21 18:06:521916 }],
[email protected]2a794002014-02-22 00:27:111917 ['asan==1', {
1918 'win_use_allocator_shim%': 0,
1919 }],
[email protected]fa0f16e2012-08-20 22:30:041920 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', {
[email protected]6f390be2012-08-16 18:57:101921 # Only enabled by default for ninja because it's buggy in VS.
[email protected]fa0f16e2012-08-20 22:30:041922 # Not enabled for component=static_library because some targets
1923 # are too large and the toolchain fails due to the size of the
1924 # .obj files.
[email protected]6f390be2012-08-16 18:57:101925 'incremental_chrome_dll%': 1,
1926 }],
[email protected]a96cf1422013-11-08 08:55:411927 # Don't do incremental linking for large modules on 32-bit or when
1928 # component=static_library as the toolchain fails due to the size of
1929 # the .ilk files.
1930 ['MSVS_OS_BITS==32 or component=="static_library"', {
[email protected]10bb8c92009-08-07 21:16:031931 'msvs_large_module_debug_link_mode%': '1', # No
1932 },{
1933 'msvs_large_module_debug_link_mode%': '2', # Yes
1934 }],
[email protected]49ee7ef2014-04-12 03:07:461935 ['MSVS_VERSION=="2013e"', {
[email protected]3e2648a2011-03-21 20:58:501936 'msvs_express%': 1,
1937 'secure_atl%': 0,
1938 },{
1939 'msvs_express%': 0,
1940 'secure_atl%': 1,
1941 }],
[email protected]912c55c2009-07-31 23:33:551942 ],
[email protected]ef4fa4072009-12-04 22:46:501943 'nacl_win64_defines': [
1944 # This flag is used to minimize dependencies when building
1945 # Native Client loader for 64-bit Windows.
1946 'NACL_WIN64',
1947 ],
[email protected]912c55c2009-07-31 23:33:551948 }],
[email protected]bb6aba32011-01-07 19:04:431949
[email protected]24641702014-07-03 17:20:151950 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded==0', {
[email protected]8e553f42010-10-25 20:05:441951 'use_cups%': 1,
1952 }, {
1953 'use_cups%': 0,
1954 }],
[email protected]bb6aba32011-01-07 19:04:431955
[email protected]693f63c2014-01-17 06:52:191956 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
[email protected]280755c2013-05-23 10:44:351957 'enable_pepper_cdms%': 1,
1958 }, {
1959 'enable_pepper_cdms%': 0,
1960 }],
1961
[email protected]4b556cf2014-06-10 23:21:531962 ['OS=="android"', {
1963 'enable_browser_cdms%': 1,
1964 }, {
1965 'enable_browser_cdms%': 0,
1966 }],
1967
[email protected]eb5f1672013-01-31 07:56:461968 # Native Client glibc toolchain is enabled
petarjc8a5da742014-08-27 14:33:361969 # by default except on arm, mips and mips64.
1970 ['target_arch=="arm" or target_arch=="mipsel" or target_arch=="mips64el"', {
[email protected]2f7da672012-06-21 08:38:321971 'disable_glibc%': 1,
1972 }, {
1973 'disable_glibc%': 0,
1974 }],
1975
[email protected]19fe8f0b2010-12-07 07:27:271976 # Set the relative path from this file to the GYP file of the JPEG
1977 # library used by Chromium.
[email protected]d9113542012-07-18 17:11:281978 ['use_system_libjpeg==1 or use_libjpeg_turbo==0', {
1979 # Configuration for using the system libjeg is here.
[email protected]19fe8f0b2010-12-07 07:27:271980 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp',
[email protected]d9113542012-07-18 17:11:281981 }, {
1982 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
1983 }],
[email protected]bb6aba32011-01-07 19:04:431984
[email protected]abcc9ac2011-05-16 20:04:351985 # Options controlling the use of GConf (the classic GNOME configuration
1986 # system) and GIO, which contains GSettings (the new GNOME config system).
[email protected]02968b82013-11-14 02:42:431987 ['chromeos==1 or embedded==1', {
[email protected]1c6fe29302011-01-20 22:14:311988 'use_gconf%': 0,
[email protected]abcc9ac2011-05-16 20:04:351989 'use_gio%': 0,
[email protected]1c6fe29302011-01-20 22:14:311990 }, {
1991 'use_gconf%': 1,
[email protected]abcc9ac2011-05-16 20:04:351992 'use_gio%': 1,
[email protected]1c6fe29302011-01-20 22:14:311993 }],
1994
[email protected]4de39f82011-03-28 12:01:291995 # Set up -D and -E flags passed into grit.
[email protected]1660bffd2011-03-23 16:24:291996 ['branding=="Chrome"', {
1997 # TODO(mmoss) The .grd files look for _google_chrome, but for
1998 # consistency they should look for google_chrome_build like C++.
[email protected]4de39f82011-03-28 12:01:291999 'grit_defines': ['-D', '_google_chrome',
2000 '-E', 'CHROMIUM_BUILD=google_chrome'],
[email protected]1660bffd2011-03-23 16:24:292001 }, {
[email protected]4de39f82011-03-28 12:01:292002 'grit_defines': ['-D', '_chromium',
2003 '-E', 'CHROMIUM_BUILD=chromium'],
[email protected]1660bffd2011-03-23 16:24:292004 }],
[email protected]bb6aba32011-01-07 19:04:432005 ['chromeos==1', {
[email protected]d4d81e92012-06-04 20:10:132006 'grit_defines': ['-D', 'chromeos', '-D', 'scale_factors=2x'],
[email protected]bb6aba32011-01-07 19:04:432007 }],
[email protected]d628ab412013-09-07 03:26:372008 ['desktop_linux==1', {
2009 'grit_defines': ['-D', 'desktop_linux'],
2010 }],
[email protected]bb6aba32011-01-07 19:04:432011 ['toolkit_views==1', {
2012 'grit_defines': ['-D', 'toolkit_views'],
2013 }],
[email protected]8dd791d2011-09-16 16:37:302014 ['use_aura==1', {
2015 'grit_defines': ['-D', 'use_aura'],
2016 }],
[email protected]ed329be2012-01-03 22:02:162017 ['use_ash==1', {
2018 'grit_defines': ['-D', 'use_ash'],
2019 }],
[email protected]c329adf82011-10-05 14:34:572020 ['use_nss==1', {
2021 'grit_defines': ['-D', 'use_nss'],
2022 }],
[email protected]ff78e4e2013-05-03 19:19:152023 ['use_ozone==1', {
2024 'grit_defines': ['-D', 'use_ozone'],
2025 }],
[email protected]77a848262013-02-22 11:17:252026 ['image_loader_extension==1', {
2027 'grit_defines': ['-D', 'image_loader_extension'],
2028 }],
[email protected]9a425422011-01-11 00:53:182029 ['remoting==1', {
2030 'grit_defines': ['-D', 'remoting'],
2031 }],
[email protected]bb6aba32011-01-07 19:04:432032 ['use_titlecase_in_grd_files==1', {
2033 'grit_defines': ['-D', 'use_titlecase'],
2034 }],
[email protected]00dc155832011-02-01 18:51:192035 ['use_third_party_translations==1', {
2036 'grit_defines': ['-D', 'use_third_party_translations'],
[email protected]fb6c1022011-06-27 21:58:122037 'locales': [
[email protected]8581e1ba2011-08-22 23:27:162038 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia',
2039 'ka', 'ku', 'kw', 'ms', 'ug'
[email protected]fb6c1022011-06-27 21:58:122040 ],
[email protected]00dc155832011-02-01 18:51:192041 }],
[email protected]da1c8d692011-09-20 20:35:012042 ['OS=="android"', {
[email protected]77e59c52013-05-21 15:29:172043 'grit_defines': ['-t', 'android',
[email protected]7dc76812013-03-26 07:31:572044 '-E', 'ANDROID_JAVA_TAGGED_ONLY=true'],
[email protected]da1c8d692011-09-20 20:35:012045 }],
[email protected]cc1f0572013-07-31 05:41:032046 ['OS=="mac" or OS=="ios"', {
[email protected]d39e3862012-06-26 22:38:232047 'grit_defines': ['-D', 'scale_factors=2x'],
2048 }],
[email protected]ad563d02012-10-03 10:37:032049 ['OS == "ios"', {
2050 'grit_defines': [
[email protected]033346902013-08-20 01:01:122051 '-t', 'ios',
[email protected]ad563d02012-10-03 10:37:032052 # iOS uses a whitelist to filter resources.
2053 '-w', '<(DEPTH)/build/ios/grit_whitelist.txt'
2054 ],
[email protected]b4530c82013-05-09 09:20:012055
[email protected]d04384ab2014-03-13 20:46:012056 # Enable host builds when generating with ninja-ios.
[email protected]b4530c82013-05-09 09:20:012057 'conditions': [
2058 ['"<(GENERATOR)"=="ninja"', {
[email protected]b4530c82013-05-09 09:20:012059 'host_os%': "mac",
[email protected]ce2cad72014-02-13 18:17:352060 }],
[email protected]d04384ab2014-03-13 20:46:012061
2062 # TODO(sdefresne): Remove the target_subarch check once Apple has
2063 # upstreamed the support for "arm64". http://crbug.com/341453
2064 ['target_subarch!="arm32" or "<(GENERATOR)"=="xcode"', {
[email protected]ce2cad72014-02-13 18:17:352065 'clang_xcode%': 1,
2066 }],
[email protected]b4530c82013-05-09 09:20:012067 ],
[email protected]ad563d02012-10-03 10:37:032068 }],
[email protected]6a3cd37e2012-04-17 17:13:342069 ['enable_extensions==1', {
2070 'grit_defines': ['-D', 'enable_extensions'],
2071 }],
[email protected]6ab4ef92013-12-09 08:43:172072 ['enable_plugins!=0', {
[email protected]6ab4ef92013-12-09 08:43:172073 'grit_defines': ['-D', 'enable_plugins'],
2074 }],
[email protected]1e54c1c2013-08-12 17:16:052075 ['enable_printing!=0', {
[email protected]658677f2012-06-09 06:04:022076 'grit_defines': ['-D', 'enable_printing'],
2077 }],
[email protected]b429eb19b2014-01-27 21:07:502078 ['enable_printing==1', {
2079 'grit_defines': ['-D', 'enable_full_printing'],
2080 }],
[email protected]c2aad542012-07-31 20:40:332081 ['enable_themes==1', {
2082 'grit_defines': ['-D', 'enable_themes'],
2083 }],
[email protected]ef1dd5062012-12-17 06:41:332084 ['enable_app_list==1', {
2085 'grit_defines': ['-D', 'enable_app_list'],
2086 }],
[email protected]dc4e8b82012-11-15 03:58:162087 ['enable_settings_app==1', {
2088 'grit_defines': ['-D', 'enable_settings_app'],
2089 }],
[email protected]5411d8202013-01-30 01:32:152090 ['enable_google_now==1', {
2091 'grit_defines': ['-D', 'enable_google_now'],
2092 }],
[email protected]a3a720f2013-04-25 19:35:422093 ['use_concatenated_impulse_responses==1', {
2094 'grit_defines': ['-D', 'use_concatenated_impulse_responses'],
2095 }],
[email protected]f66ddbd2013-06-27 14:17:042096 ['enable_webrtc==1', {
2097 'grit_defines': ['-D', 'enable_webrtc'],
2098 }],
[email protected]754a2002014-02-14 16:40:342099 ['enable_hangout_services_extension==1', {
2100 'grit_defines': ['-D', 'enable_hangout_services_extension'],
2101 }],
[email protected]25b8cb32014-01-30 11:04:292102 ['enable_task_manager==1', {
2103 'grit_defines': ['-D', 'enable_task_manager'],
2104 }],
[email protected]335b6872014-02-13 20:14:132105 ['notifications==1', {
2106 'grit_defines': ['-D', 'enable_notifications'],
2107 }],
[email protected]4b202ae2014-05-23 07:45:362108 ['enable_wifi_bootstrapping==1', {
2109 'grit_defines': ['-D', 'enable_wifi_bootstrapping'],
2110 }],
[email protected]2b9e68e2014-04-15 12:51:252111 ['enable_resource_whitelist_generation==1 and OS!="win"', {
[email protected]e4fdab92014-04-04 00:52:222112 'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelisted_resource_{numeric_id}") {numeric_id}'],
[email protected]1a43cc572014-03-07 22:36:322113 }],
[email protected]2b9e68e2014-04-15 12:51:252114 ['enable_resource_whitelist_generation==1 and OS=="win"', {
2115 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message("whitelisted_resource_{numeric_id}")) {numeric_id}'],
2116 }],
[email protected]2188c8d2014-03-21 00:58:562117 ['enable_mdns==1 or OS=="mac"', {
2118 'grit_defines': ['-D', 'enable_service_discovery'],
2119 'enable_service_discovery%': 1
2120 }],
[email protected]3bb37e62012-04-19 03:40:082121 ['clang_use_chrome_plugins==1 and OS!="win"', {
[email protected]7d389e22013-05-15 00:45:072122 'clang_chrome_plugins_flags': [
2123 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)'
[email protected]c872dc52012-05-19 06:36:312124 ],
[email protected]5d451ad2011-02-11 16:43:462125 }],
[email protected]e12b37ec2014-06-16 11:21:172126 ['asan==1 or msan==1 or lsan==1 or tsan==1', {
[email protected]92799b632011-08-15 14:33:062127 'clang%': 1,
[email protected]3a0278b12014-05-20 15:37:582128 'use_allocator%': 'none',
[email protected]92799b632011-08-15 14:33:062129 }],
[email protected]17b15a162014-07-24 15:41:422130 ['asan==1 and OS=="linux" and chromeos==0', {
[email protected]49d75ae2014-07-22 13:28:082131 'use_custom_libcxx%': 1,
2132 }],
[email protected]7fd639a2014-05-30 23:59:012133 ['ubsan==1', {
2134 'clang%': 1,
2135 }],
[email protected]0dbe7af92014-06-26 23:31:402136 ['ubsan_vptr==1', {
2137 'clang%': 1,
2138 }],
[email protected]f5d8c222012-08-29 17:47:022139 ['asan==1 and OS=="mac"', {
treib0b804d02014-09-01 17:06:482140 # TODO(glider): we do not strip ASan binaries until the dynamic ASan
2141 # runtime is fully adopted. See http://crbug.com/242503.
2142 'mac_strip_release': 0,
[email protected]f5d8c222012-08-29 17:47:022143 }],
[email protected]c9a829272012-07-04 07:51:122144 ['tsan==1', {
[email protected]193149c2014-04-08 23:56:092145 'use_custom_libcxx%': 1,
[email protected]c9a829272012-07-04 07:51:122146 }],
[email protected]a10ddd2d2013-02-26 20:06:592147 ['msan==1', {
[email protected]e12b37ec2014-06-16 11:21:172148 # Use a just-built, MSan-instrumented libc++ instead of the system-wide
2149 # libstdc++. This is required to avoid false positive reports whenever
2150 # the C++ standard library is used.
2151 'use_custom_libcxx%': 1,
2152 # Running the V8-generated code on an ARM simulator is a powerful hack
2153 # that allows the tool to see the memory accesses from JITted code.
2154 # Without this flag, JS code causes false positive reports from MSan.
2155 'v8_target_arch': 'arm64',
[email protected]a10ddd2d2013-02-26 20:06:592156 }],
[email protected]c9a829272012-07-04 07:51:122157
[email protected]7ce58b22012-09-26 05:17:252158 ['OS=="linux" and clang_type_profiler==1', {
2159 'clang%': 1,
2160 'clang_use_chrome_plugins%': 0,
[email protected]b0c45722013-01-23 04:47:322161 'conditions': [
2162 ['host_arch=="x64"', {
2163 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64',
2164 }],
2165 ['host_arch=="ia32"', {
2166 # 32-bit Clang is unsupported. It may not build. Put your 32-bit
2167 # Clang in this directory at your own risk if needed for some
2168 # purpose (e.g. to compare 32-bit and 64-bit behavior like memory
2169 # usage). Any failure by this compiler should not close the tree.
2170 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_ia32',
2171 }],
2172 ],
[email protected]7ce58b22012-09-26 05:17:252173 }],
2174
[email protected]85a75e572014-05-06 20:13:382175 ['OS=="win"', {
2176 # The Clang plugins don't currently work on Windows.
2177 # TODO(hans): One day, this will work. (crbug.com/82385)
2178 'clang_use_chrome_plugins%': 0,
2179 }],
2180
[email protected]a9318c72012-03-01 01:29:472181 # On valgrind bots, override the optimizer settings so we don't inline too
2182 # much and make the stacks harder to figure out.
2183 #
2184 # TODO(rnk): Kill off variables that no one else uses and just implement
2185 # them under a build_for_tool== condition.
2186 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
2187 # gcc flags
2188 'mac_debug_optimization': '1',
2189 'mac_release_optimization': '1',
2190 'release_optimize': '1',
2191 'no_gc_sections': 1,
2192 'debug_extra_cflags': '-g -fno-inline -fno-omit-frame-pointer '
2193 '-fno-builtin -fno-optimize-sibling-calls',
2194 'release_extra_cflags': '-g -fno-inline -fno-omit-frame-pointer '
2195 '-fno-builtin -fno-optimize-sibling-calls',
2196
2197 # MSVS flags for TSan on Pin and Windows.
2198 'win_debug_RuntimeChecks': '0',
2199 'win_debug_disable_iterator_debugging': '1',
2200 'win_debug_Optimization': '1',
2201 'win_debug_InlineFunctionExpansion': '0',
2202 'win_release_InlineFunctionExpansion': '0',
2203 'win_release_OmitFramePointers': '0',
2204
[email protected]2fa89ef2014-05-07 18:45:592205 'use_allocator': 'tcmalloc',
[email protected]a9318c72012-03-01 01:29:472206 'release_valgrind_build': 1,
2207 'werror': '',
2208 'component': 'static_library',
2209 'use_system_zlib': 0,
2210 }],
2211
2212 # Build tweaks for DrMemory.
2213 # TODO(rnk): Combine with tsan config to share the builder.
2214 # http://crbug.com/108155
2215 ['build_for_tool=="drmemory"', {
[email protected]a9318c72012-03-01 01:29:472216 # These runtime checks force initialization of stack vars which blocks
2217 # DrMemory's uninit detection.
2218 'win_debug_RuntimeChecks': '0',
[email protected]49605d42013-10-18 13:58:172219 # Iterator debugging is slow.
[email protected]a9318c72012-03-01 01:29:472220 'win_debug_disable_iterator_debugging': '1',
2221 # Try to disable optimizations that mess up stacks in a release build.
[email protected]c13d00302012-10-18 15:45:162222 # DrM-i#1054 (http://code.google.com/p/drmemory/issues/detail?id=1054)
2223 # /O2 and /Ob0 (disable inline) cannot be used together because of a
2224 # compiler bug, so we use /Ob1 instead.
2225 'win_release_InlineFunctionExpansion': '1',
[email protected]a9318c72012-03-01 01:29:472226 'win_release_OmitFramePointers': '0',
[email protected]6bf3373d2012-08-15 22:27:502227 # Ditto for debug, to support bumping win_debug_Optimization.
2228 'win_debug_InlineFunctionExpansion': 0,
2229 'win_debug_OmitFramePointers': 0,
[email protected]a9318c72012-03-01 01:29:472230 # Keep the code under #ifndef NVALGRIND.
2231 'release_valgrind_build': 1,
2232 }],
[email protected]b6a5ac92012-10-29 18:17:222233
[email protected]fcc89bf2013-10-30 17:37:212234 # Enable RLZ on Win, Mac, iOS and ChromeOS.
2235 ['branding=="Chrome" and (OS=="win" or OS=="mac" or OS=="ios" or chromeos==1)', {
[email protected]b6a5ac92012-10-29 18:17:222236 'enable_rlz%': 1,
2237 }],
[email protected]7d6763422013-04-26 12:06:542238
2239 # Set default compiler flags depending on ARM version.
[email protected]7d6763422013-04-26 12:06:542240 ['arm_version==6 and android_webview_build==0', {
2241 'arm_arch%': 'armv6',
2242 'arm_tune%': '',
[email protected]70f970d2013-12-16 14:11:382243 'arm_fpu%': 'vfp',
2244 'arm_float_abi%': 'softfp',
[email protected]7d6763422013-04-26 12:06:542245 'arm_thumb%': 0,
2246 }],
2247 ['arm_version==7 and android_webview_build==0', {
2248 'arm_arch%': 'armv7-a',
[email protected]7557cd42014-05-28 15:32:592249 'arm_tune%': 'generic-armv7-a',
[email protected]7d6763422013-04-26 12:06:542250 'conditions': [
2251 ['arm_neon==1', {
2252 'arm_fpu%': 'neon',
2253 }, {
2254 'arm_fpu%': 'vfpv3-d16',
2255 }],
2256 ],
[email protected]3f85dac32013-10-29 02:38:462257 # Change the default to hard once the armhf transition is complete.
[email protected]7d6763422013-04-26 12:06:542258 'arm_float_abi%': 'softfp',
2259 'arm_thumb%': 1,
2260 }],
2261
2262 ['android_webview_build==1', {
2263 # The WebView build gets its cpu-specific flags from the Android build system.
2264 'arm_arch%': '',
2265 'arm_tune%': '',
2266 'arm_fpu%': '',
2267 'arm_float_abi%': '',
2268 'arm_thumb%': 0,
2269 }],
[email protected]5ac4b902013-10-22 17:21:292270
2271 # Enable brlapi by default for chromeos.
2272 [ 'chromeos==1', {
2273 'use_brlapi%': 1,
2274 }],
[email protected]f93c2c92013-10-31 18:22:442275
[email protected]3bdb0992014-05-16 21:30:512276 ['use_ozone==1 and ozone_auto_platforms==1', {
2277 # Use test as the default platform.
2278 'ozone_platform%': 'test',
[email protected]4814ed22013-11-01 05:37:262279
[email protected]3bdb0992014-05-16 21:30:512280 # Build all platforms whose deps are in install-build-deps.sh.
2281 # Only these platforms will be compile tested by buildbots.
[email protected]4814ed22013-11-01 05:37:262282 'ozone_platform_dri%': 1,
2283 'ozone_platform_test%': 1,
[email protected]3bdb0992014-05-16 21:30:512284 'ozone_platform_egltest%': 1,
2285 }],
2286
[email protected]da7aed42013-12-17 22:28:312287 ['desktop_linux==1 and use_aura==1 and use_x11==1', {
2288 'use_clipboard_aurax11%': 1,
2289 }],
2290
[email protected]e71a3622013-12-04 07:32:412291 ['OS=="win" and use_goma==1', {
2292 # goma doesn't support pch yet.
2293 'chromium_win_pch': 0,
2294 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1.
2295 'conditions': [
[email protected]c73363762014-04-16 21:11:462296 ['win_z7==0', {
2297 'fastbuild': 1,
[email protected]e71a3622013-12-04 07:32:412298 }],
2299 ],
2300 }],
[email protected]8efc26082014-01-24 13:26:352301
[email protected]2a794002014-02-22 00:27:112302 ['OS=="win" and (clang==1 or asan==1)', {
[email protected]8efc26082014-01-24 13:26:352303 'chromium_win_pch': 0,
2304 }],
2305
[email protected]acad4962014-08-04 19:05:022306 ['host_clang==1', {
2307 'host_cc': '<(make_clang_dir)/bin/clang',
2308 'host_cxx': '<(make_clang_dir)/bin/clang++',
2309 }, {
2310 'host_cc': '<!(which gcc)',
2311 'host_cxx': '<!(which g++)',
2312 }],
2313
leecame6f6b732014-08-24 23:38:092314 # The seccomp-bpf sandbox is only supported on five architectures
[email protected]9f7615ee2013-12-19 21:38:382315 # currently.
2316 # Do not disable seccomp_bpf anywhere without talking to
2317 # [email protected]!
2318 ['((OS=="linux" or OS=="android") and '
2319 '(target_arch=="ia32" or target_arch=="x64" or '
leecame6f6b732014-08-24 23:38:092320 'target_arch=="arm" or target_arch=="mipsel" or '
2321 'target_arch=="arm64"))', {
[email protected]9f7615ee2013-12-19 21:38:382322 'use_seccomp_bpf%': 1,
2323 }, {
2324 'use_seccomp_bpf%': 0,
2325 }],
[email protected]912c55c2009-07-31 23:33:552326 ],
[email protected]a9318c72012-03-01 01:29:472327
[email protected]6a502252013-12-13 11:49:092328 # The path to the ANGLE library.
2329 'angle_path': '<(DEPTH)/third_party/angle',
[email protected]c91dc722013-06-12 22:53:012330
[email protected]35958422011-09-28 02:03:592331 # List of default apps to install in new profiles. The first list contains
2332 # the source files as found in svn. The second list, used only for linux,
[email protected]20cc0bb72011-10-26 00:57:062333 # contains the destination location for each of the files. When a crx
2334 # is added or removed from the list, the chrome/browser/resources/
2335 # default_apps/external_extensions.json file must also be updated.
[email protected]35958422011-09-28 02:03:592336 'default_apps_list': [
2337 'browser/resources/default_apps/external_extensions.json',
2338 'browser/resources/default_apps/gmail.crx',
[email protected]20cc0bb72011-10-26 00:57:062339 'browser/resources/default_apps/search.crx',
[email protected]35958422011-09-28 02:03:592340 'browser/resources/default_apps/youtube.crx',
[email protected]c3875e22012-09-06 01:07:002341 'browser/resources/default_apps/drive.crx',
[email protected]40b38c932012-09-27 20:42:232342 'browser/resources/default_apps/docs.crx',
[email protected]35958422011-09-28 02:03:592343 ],
2344 'default_apps_list_linux_dest': [
2345 '<(PRODUCT_DIR)/default_apps/external_extensions.json',
2346 '<(PRODUCT_DIR)/default_apps/gmail.crx',
[email protected]20cc0bb72011-10-26 00:57:062347 '<(PRODUCT_DIR)/default_apps/search.crx',
[email protected]35958422011-09-28 02:03:592348 '<(PRODUCT_DIR)/default_apps/youtube.crx',
[email protected]c3875e22012-09-06 01:07:002349 '<(PRODUCT_DIR)/default_apps/drive.crx',
[email protected]40b38c932012-09-27 20:42:232350 '<(PRODUCT_DIR)/default_apps/docs.crx',
[email protected]35958422011-09-28 02:03:592351 ],
[email protected]27572d12014-08-11 20:36:042352
2353 # Whether to allow building of the GPU-related isolates.
2354 'archive_gpu_tests%': 0,
[email protected]2f80c312009-02-25 21:26:552355 },
2356 'target_defaults': {
[email protected]1c966092009-08-20 21:19:262357 'variables': {
[email protected]a6e22132010-02-10 20:43:182358 # The condition that operates on chromium_code is in a target_conditions
2359 # section, and will not have access to the default fallback value of
2360 # chromium_code at the top of this file, or to the chromium_code
2361 # variable placed at the root variables scope of .gyp files, because
2362 # those variables are not set at target scope. As a workaround,
2363 # if chromium_code is not set at target scope, define it in target scope
2364 # to contain whatever value it has during early variable expansion.
2365 # That's enough to make it available during target conditional
2366 # processing.
2367 'chromium_code%': '<(chromium_code)',
2368
[email protected]7cd58be2014-03-21 12:39:562369 'component%': '<(component)',
2370
[email protected]24641702014-07-03 17:20:152371 'chromecast%': '<(chromecast)',
2372
[email protected]7e0d664a2009-12-03 21:07:472373 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
2374 'win_release_Optimization%': '2', # 2 = /Os
2375 'win_debug_Optimization%': '0', # 0 = /Od
[email protected]626d2d22011-10-11 15:47:332376
2377 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
[email protected]ef5c5f1b2011-12-17 02:16:242378 # Tri-state: blank is default, 1 on, 0 off
[email protected]65d61e62012-06-01 21:52:112379 'win_release_OmitFramePointers%': '0',
[email protected]ef5c5f1b2011-12-17 02:16:242380 # Tri-state: blank is default, 1 on, 0 off
2381 'win_debug_OmitFramePointers%': '',
[email protected]626d2d22011-10-11 15:47:332382
[email protected]6b0507b2010-05-07 07:41:212383 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx
2384 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off
[email protected]626d2d22011-10-11 15:47:332385
[email protected]6b0507b2010-05-07 07:41:212386 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
[email protected]2ae6e022010-05-07 13:19:152387 'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off,
2388 'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max
[email protected]626d2d22011-10-11 15:47:332389
[email protected]fac10d12010-11-08 16:00:312390 # VS inserts quite a lot of extra checks to algorithms like
2391 # std::partial_sort in Debug build which make them O(N^2)
2392 # instead of O(N*logN). This is particularly slow under memory
2393 # tools like ThreadSanitizer so we want it to be disablable.
2394 # See http://msdn.microsoft.com/en-us/library/aa985982(v=VS.80).aspx
[email protected]907cb98d2014-02-23 07:19:552395 'win_debug_disable_iterator_debugging%': '0',
[email protected]7e0d664a2009-12-03 21:07:472396
[email protected]5d60b0b2013-07-30 20:24:302397 # An application manifest fragment to declare compatibility settings for
2398 # 'executable' targets. Ignored in other target type.
2399 'win_exe_compatibility_manifest%':
2400 '<(DEPTH)\\build\\win\\compatibility.manifest',
2401
[email protected]ffd984b12009-09-11 19:37:002402 'release_extra_cflags%': '',
2403 'debug_extra_cflags%': '',
[email protected]8d726a42012-02-09 03:49:002404
2405 'release_valgrind_build%': '<(release_valgrind_build)',
[email protected]8974e042010-06-21 18:06:522406
[email protected]ef5c5f1b2011-12-17 02:16:242407 # the non-qualified versions are widely assumed to be *nix-only
2408 'win_release_extra_cflags%': '',
2409 'win_debug_extra_cflags%': '',
2410
[email protected]b1eb341c2011-11-09 18:46:072411 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600
2412 'enable_wexit_time_destructors%': '<(enable_wexit_time_destructors)',
2413
[email protected]ef3326702011-10-06 18:06:442414 # Only used by Windows build for now. Can be used to build into a
2415 # differet output directory, e.g., a build_dir_prefix of VS2010_ would
2416 # output files in src/build/VS2010_{Debug,Release}.
2417 'build_dir_prefix%': '',
2418
[email protected]9ac2db692012-06-08 01:01:572419 # Targets are by default not nacl untrusted code.
2420 'nacl_untrusted_build%': 0,
2421
[email protected]9c55d9d2012-11-15 23:28:442422 'pnacl_compile_flags': [
[email protected]7dcd93c2013-11-02 02:05:532423 # pnacl uses the clang compiler so we need to suppress all the
[email protected]9c55d9d2012-11-15 23:28:442424 # same warnings as we do for clang.
2425 # TODO(sbc): Remove these if/when they are removed from the clang
2426 # build.
2427 '-Wno-unused-function',
2428 '-Wno-char-subscripts',
2429 '-Wno-c++11-extensions',
2430 '-Wno-unnamed-type-template-args',
2431 ],
2432
[email protected]8974e042010-06-21 18:06:522433 'conditions': [
2434 ['OS=="win" and component=="shared_library"', {
2435 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
[email protected]49e8e022012-03-16 15:22:162436 'win_release_RuntimeLibrary%': '2', # 2 = /MD (nondebug DLL)
2437 'win_debug_RuntimeLibrary%': '3', # 3 = /MDd (debug DLL)
[email protected]8974e042010-06-21 18:06:522438 }, {
2439 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
2440 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static)
2441 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static)
2442 }],
[email protected]1e013672012-06-29 22:12:202443 ['OS=="ios"', {
2444 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html
2445 'mac_release_optimization%': 's', # Use -Os unless overridden
2446 'mac_debug_optimization%': '0', # Use -O0 unless overridden
2447 }, {
2448 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html
2449 'mac_release_optimization%': '3', # Use -O3 unless overridden
2450 'mac_debug_optimization%': '0', # Use -O0 unless overridden
2451 }],
[email protected]625eb032014-02-13 21:48:252452 ['OS=="android"', {
2453 'host_os%': '<(host_os)', # See comment above chromium_code.
2454 }],
[email protected]8974e042010-06-21 18:06:522455 ],
[email protected]dcbc32cc2014-08-01 21:48:202456 'clang_warning_flags': [
2457 '-Wheader-hygiene',
2458
2459 # Don't die on dtoa code that uses a char as an array index.
2460 # This is required solely for base/third_party/dmg_fp/dtoa.cc.
2461 '-Wno-char-subscripts',
2462
2463 # TODO(thakis): This used to be implied by -Wno-unused-function,
2464 # which we no longer use. Check if it makes sense to remove
2465 # this as well. http://crbug.com/316352
2466 '-Wno-unneeded-internal-declaration',
2467
2468 # Warns on switches on enums that cover all enum values but
2469 # also contain a default: branch. Chrome is full of that.
2470 '-Wno-covered-switch-default',
2471
2472 # Warns when a const char[] is converted to bool.
2473 '-Wstring-conversion',
2474
2475 # C++11-related flags:
2476
2477 # This warns on using ints as initializers for floats in
2478 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|),
2479 # which happens in several places in chrome code. Not sure if
2480 # this is worth fixing.
2481 '-Wno-c++11-narrowing',
2482
2483 # Clang considers the `register` keyword as deprecated, but e.g.
2484 # code generated by flex (used in angle) contains that keyword.
2485 # http://crbug.com/255186
2486 '-Wno-deprecated-register',
2487 ],
[email protected]1c966092009-08-20 21:19:262488 },
[email protected]dcbc32cc2014-08-01 21:48:202489 'includes': [ 'set_clang_warning_flags.gypi', ],
[email protected]c91dc722013-06-12 22:53:012490 'defines': [
[email protected]6d84e0b2013-12-05 12:16:132491 # Don't use deprecated V8 APIs anywhere.
2492 'V8_DEPRECATION_WARNINGS',
[email protected]c91dc722013-06-12 22:53:012493 ],
[email protected]97865022014-06-13 23:18:042494 'include_dirs': [
2495 '<(SHARED_INTERMEDIATE_DIR)',
2496 ],
[email protected]32aa8cc2009-03-04 21:36:392497 'conditions': [
[email protected]d808e212013-03-12 14:06:162498 ['(OS=="mac" or OS=="ios") and asan==1', {
[email protected]5ec8c962013-03-12 11:56:312499 'dependencies': [
2500 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime',
2501 ],
2502 }],
timurrrr6e2f3e262014-08-29 16:51:522503 ['OS=="win" and asan==1 and component=="shared_library"', {
2504 'dependencies': [
2505 '<(DEPTH)/build/win/asan.gyp:asan_dynamic_runtime',
2506 ],
2507 }],
[email protected]2fa89ef2014-05-07 18:45:592508 ['OS=="linux" and use_allocator!="none" and clang_type_profiler==1', {
[email protected]7ce58b22012-09-26 05:17:252509 'cflags_cc!': ['-fno-rtti'],
2510 'cflags_cc+': [
2511 '-frtti',
2512 '-gline-tables-only',
2513 '-fintercept-allocation-functions',
2514 ],
2515 'defines': ['TYPE_PROFILING'],
2516 'dependencies': [
2517 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
2518 ],
2519 }],
[email protected]32aa8cc2009-03-04 21:36:392520 ['branding=="Chrome"', {
2521 'defines': ['GOOGLE_CHROME_BUILD'],
2522 }, { # else: branding!="Chrome"
2523 'defines': ['CHROMIUM_BUILD'],
2524 }],
[email protected]286d9a12012-05-30 16:20:382525 ['OS=="mac" and component=="shared_library"', {
2526 'xcode_settings': {
2527 'DYLIB_INSTALL_NAME_BASE': '@rpath',
2528 'LD_RUNPATH_SEARCH_PATHS': [
2529 # For unbundled binaries.
2530 '@loader_path/.',
2531 # For bundled binaries, to get back from Binary.app/Contents/MacOS.
2532 '@loader_path/../../..',
2533 ],
2534 },
2535 }],
[email protected]6fcbf9d2014-05-09 22:01:282536 ['clang==1 and OS!="win"', {
2537 # This is here so that all files get recompiled after a clang roll and
2538 # when turning clang on or off.
2539 # (defines are passed via the command line, and build systems rebuild
2540 # things when their commandline changes). Nothing should ever read this
2541 # define.
2542 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh --print-revision)'],
2543 }],
[email protected]b6a5ac92012-10-29 18:17:222544 ['enable_rlz==1', {
[email protected]81d9b72d2012-03-26 22:29:172545 'defines': ['ENABLE_RLZ'],
2546 }],
[email protected]63e39a282011-07-13 20:41:282547 ['component=="shared_library"', {
2548 'defines': ['COMPONENT_BUILD'],
2549 }],
[email protected]06c756182010-04-27 18:31:312550 ['toolkit_views==1', {
[email protected]e6970232009-05-12 23:51:172551 'defines': ['TOOLKIT_VIEWS=1'],
2552 }],
[email protected]1ee7c56c2011-10-19 14:51:332553 ['ui_compositor_image_transport==1', {
[email protected]839d5172011-10-13 17:18:112554 'defines': ['UI_COMPOSITOR_IMAGE_TRANSPORT'],
2555 }],
[email protected]41423092011-08-25 15:39:582556 ['use_aura==1', {
2557 'defines': ['USE_AURA=1'],
[email protected]e599f0132011-08-24 19:03:352558 }],
[email protected]ed329be2012-01-03 22:02:162559 ['use_ash==1', {
2560 'defines': ['USE_ASH=1'],
2561 }],
[email protected]91e273a102014-07-22 19:50:472562 ['use_pango==1', {
2563 'defines': ['USE_PANGO=1'],
2564 }],
[email protected]928362a2013-11-19 20:17:162565 ['use_cairo==1', {
2566 'defines': ['USE_CAIRO=1'],
2567 }],
[email protected]2a76009b2013-08-07 21:02:312568 ['use_cras==1', {
2569 'defines': ['USE_CRAS=1'],
2570 }],
[email protected]6ec70cc72013-11-20 05:33:462571 ['use_glib==1', {
2572 'defines': ['USE_GLIB=1'],
2573 }],
[email protected]ff78e4e2013-05-03 19:19:152574 ['use_ozone==1', {
2575 'defines': ['USE_OZONE=1'],
2576 }],
[email protected]cb800562012-11-20 22:36:072577 ['use_default_render_theme==1', {
2578 'defines': ['USE_DEFAULT_RENDER_THEME=1'],
2579 }],
[email protected]e190d272012-08-30 17:36:442580 ['use_libjpeg_turbo==1', {
2581 'defines': ['USE_LIBJPEG_TURBO=1'],
2582 }],
[email protected]2fa2f2d82013-04-29 18:13:122583 ['use_x11==1', {
2584 'defines': ['USE_X11=1'],
2585 }],
[email protected]89dcd662013-12-12 23:06:502586 ['use_clipboard_aurax11==1', {
2587 'defines': ['USE_CLIPBOARD_AURAX11=1'],
2588 }],
[email protected]bd7b6fe2012-03-05 21:02:402589 ['enable_one_click_signin==1', {
2590 'defines': ['ENABLE_ONE_CLICK_SIGNIN'],
2591 }],
[email protected]b56a9e02014-06-20 09:57:042592 ['enable_pre_sync_backup==1', {
2593 'defines': ['ENABLE_PRE_SYNC_BACKUP'],
2594 }],
[email protected]23485ba2013-09-15 00:50:002595 ['use_xi2_mt!=0 and use_x11==1', {
[email protected]f56797b2011-09-25 00:04:352596 'defines': ['USE_XI2_MT=<(use_xi2_mt)'],
2597 }],
[email protected]77a848262013-02-22 11:17:252598 ['image_loader_extension==1', {
2599 'defines': ['IMAGE_LOADER_EXTENSION=1'],
2600 }],
[email protected]7664ab32011-02-01 23:35:252601 ['profiling==1', {
2602 'defines': ['ENABLE_PROFILING=1'],
2603 }],
[email protected]542bf24a2010-06-11 23:08:172604 ['remoting==1', {
2605 'defines': ['ENABLE_REMOTING=1'],
[email protected]c0bac532010-06-11 00:39:002606 }],
[email protected]5b87e782012-02-09 18:19:322607 ['enable_webrtc==1', {
2608 'defines': ['ENABLE_WEBRTC=1'],
2609 }],
[email protected]d01120e62010-05-10 17:04:482610 ['proprietary_codecs==1', {
2611 'defines': ['USE_PROPRIETARY_CODECS'],
damienva6c97632014-08-27 01:47:582612 'conditions': [
2613 ['enable_mpeg2ts_stream_parser==1', {
2614 'defines': ['ENABLE_MPEG2TS_STREAM_PARSER'],
2615 }],
2616 ],
[email protected]d01120e62010-05-10 17:04:482617 }],
[email protected]7ddea9802012-02-22 23:08:052618 ['enable_viewport==1', {
2619 'defines': ['ENABLE_VIEWPORT'],
2620 }],
[email protected]280755c2013-05-23 10:44:352621 ['enable_pepper_cdms==1', {
2622 'defines': ['ENABLE_PEPPER_CDMS'],
2623 }],
[email protected]4b556cf2014-06-10 23:21:532624 ['enable_browser_cdms==1', {
2625 'defines': ['ENABLE_BROWSER_CDMS'],
2626 }],
[email protected]f31e2e52011-07-14 16:01:192627 ['configuration_policy==1', {
2628 'defines': ['ENABLE_CONFIGURATION_POLICY'],
2629 }],
[email protected]7cce3232011-10-28 10:41:572630 ['notifications==1', {
2631 'defines': ['ENABLE_NOTIFICATIONS'],
2632 }],
[email protected]1efbaaa2012-04-24 02:43:242633 ['enable_hidpi==1', {
2634 'defines': ['ENABLE_HIDPI=1'],
2635 }],
[email protected]cef6c76f2013-10-30 16:33:302636 ['native_discardable_memory==1', {
2637 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'],
2638 }],
2639 ['native_memory_pressure_signals==1', {
2640 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'],
2641 }],
[email protected]49513e02013-11-20 08:36:402642 ['use_udev==1', {
2643 'defines': ['USE_UDEV'],
2644 }],
[email protected]9c1949e2009-10-02 19:59:542645 ['fastbuild!=0', {
[email protected]3b0bc5e2013-04-24 11:42:312646 'xcode_settings': {
2647 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
2648 },
[email protected]9c1949e2009-10-02 19:59:542649 'conditions': [
[email protected]0dbe7af92014-06-26 23:31:402650 ['clang==1 and asan==0 and msan==0 and tsan==0 and ubsan_vptr==0', {
[email protected]c86fd472013-04-02 19:42:302651 # Clang creates chubby debug information, which makes linking very
2652 # slow. For now, don't create debug information with clang. See
2653 # http://crbug.com/70000
[email protected]7df38122012-11-05 23:54:432654 'conditions': [
2655 ['OS=="linux"', {
2656 'variables': {
2657 'debug_extra_cflags': '-g0',
2658 },
2659 }],
2660 # Android builds symbols on release by default, disable them.
2661 ['OS=="android"', {
2662 'variables': {
2663 'debug_extra_cflags': '-g0',
2664 'release_extra_cflags': '-g0',
2665 },
2666 }],
2667 ],
2668 }, { # else clang!=1
2669 'conditions': [
[email protected]c86fd472013-04-02 19:42:302670 ['OS=="win" and fastbuild==2', {
2671 # Completely disable debug information.
2672 'msvs_settings': {
2673 'VCLinkerTool': {
2674 'GenerateDebugInformation': 'false',
2675 },
2676 'VCCLCompilerTool': {
2677 'DebugInformationFormat': '0',
2678 },
2679 },
2680 }],
2681 ['OS=="win" and fastbuild==1', {
[email protected]7df38122012-11-05 23:54:432682 'msvs_settings': {
2683 'VCLinkerTool': {
[email protected]6c97ee072013-01-28 10:45:312684 # This tells the linker to generate .pdbs, so that
2685 # we can get meaningful stack traces.
2686 'GenerateDebugInformation': 'true',
[email protected]7df38122012-11-05 23:54:432687 },
2688 'VCCLCompilerTool': {
[email protected]6c97ee072013-01-28 10:45:312689 # No debug info to be generated by compiler.
[email protected]7df38122012-11-05 23:54:432690 'DebugInformationFormat': '0',
2691 },
2692 },
2693 }],
[email protected]c86fd472013-04-02 19:42:302694 ['OS=="linux" and fastbuild==2', {
2695 'variables': {
2696 'debug_extra_cflags': '-g0',
2697 },
2698 }],
2699 ['OS=="linux" and fastbuild==1', {
[email protected]7df38122012-11-05 23:54:432700 'variables': {
2701 'debug_extra_cflags': '-g1',
2702 },
2703 }],
[email protected]c86fd472013-04-02 19:42:302704 ['OS=="android" and fastbuild==2', {
2705 'variables': {
2706 'debug_extra_cflags': '-g0',
2707 'release_extra_cflags': '-g0',
2708 },
2709 }],
2710 ['OS=="android" and fastbuild==1', {
[email protected]7df38122012-11-05 23:54:432711 'variables': {
2712 'debug_extra_cflags': '-g1',
2713 'release_extra_cflags': '-g1',
2714 },
2715 }],
2716 ],
2717 }], # clang!=1
2718 ],
[email protected]9c1949e2009-10-02 19:59:542719 }], # fastbuild!=0
[email protected]19677402014-06-18 13:10:042720 ['dont_embed_build_metadata==1', {
[email protected]b9e9992a2014-06-12 21:01:192721 'defines': [
[email protected]19677402014-06-18 13:10:042722 'DONT_EMBED_BUILD_METADATA',
[email protected]b9e9992a2014-06-12 21:01:192723 ],
[email protected]19677402014-06-18 13:10:042724 }], # dont_embed_build_metadata==1
[email protected]20960e072011-09-20 20:59:012725 ['dcheck_always_on!=0', {
2726 'defines': ['DCHECK_ALWAYS_ON=1'],
2727 }], # dcheck_always_on!=0
[email protected]a1e87422013-07-09 21:47:012728 ['tracing_like_official_build!=0', {
2729 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'],
2730 }], # tracing_like_official_build!=0
[email protected]7e0d664a2009-12-03 21:07:472731 ['win_use_allocator_shim==0', {
2732 'conditions': [
2733 ['OS=="win"', {
2734 'defines': ['NO_TCMALLOC'],
2735 }],
2736 ],
2737 }],
[email protected]ed154592010-04-29 00:18:502738 ['enable_eglimage==1', {
2739 'defines': [
2740 'ENABLE_EGLIMAGE=1',
2741 ],
2742 }],
[email protected]6c65f2b2014-05-07 08:57:462743 ['asan==1', {
2744 'defines': [
2745 'ADDRESS_SANITIZER',
2746 'MEMORY_TOOL_REPLACES_ALLOCATOR',
[email protected]be766bb2014-07-01 19:22:122747 'MEMORY_SANITIZER_INITIAL_SIZE',
[email protected]6c65f2b2014-05-07 08:57:462748 ],
2749 }],
[email protected]1612e552014-02-15 04:49:182750 ['syzyasan==1', {
2751 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs.
[email protected]696de4e62012-11-21 21:18:542752 'msvs_settings': {
2753 'VCLinkerTool': {
2754 'Profile': 'true',
2755 },
2756 },
[email protected]2f047202013-06-14 06:36:392757 'defines': [
[email protected]aee2f332014-03-27 15:08:042758 'SYZYASAN',
[email protected]2f047202013-06-14 06:36:392759 'MEMORY_TOOL_REPLACES_ALLOCATOR',
[email protected]be766bb2014-07-01 19:22:122760 'MEMORY_SANITIZER_INITIAL_SIZE',
[email protected]2f047202013-06-14 06:36:392761 ],
[email protected]1612e552014-02-15 04:49:182762 }],
[email protected]4e4d6042010-08-26 18:34:382763 ['OS=="win"', {
2764 'defines': [
2765 '__STD_C',
2766 '_CRT_SECURE_NO_DEPRECATE',
2767 '_SCL_SECURE_NO_DEPRECATE',
[email protected]2d0aa3242012-10-22 16:23:102768 # This define is required to pull in the new Win8 interfaces from
2769 # system headers like ShObjIdl.h.
2770 'NTDDI_VERSION=0x06020000',
[email protected]37416742013-11-12 07:13:332771 # This is required for ATL to use XP-safe versions of its functions.
2772 '_USING_V110_SDK71_',
[email protected]4e4d6042010-08-26 18:34:382773 ],
2774 'include_dirs': [
2775 '<(DEPTH)/third_party/wtl/include',
2776 ],
[email protected]9619e65d2012-05-23 19:06:522777 'conditions': [
2778 ['win_z7!=0', {
2779 'msvs_settings': {
[email protected]5146e0b2012-08-23 05:49:092780 # Generates debug info when win_z7=1
2781 # even if fastbuild=1 (that makes GenerateDebugInformation false).
2782 'VCLinkerTool': {
2783 'GenerateDebugInformation': 'true',
2784 },
[email protected]9619e65d2012-05-23 19:06:522785 'VCCLCompilerTool': {
2786 'DebugInformationFormat': '1',
2787 }
2788 }
2789 }],
2790 ], # win_z7!=0
[email protected]4e4d6042010-08-26 18:34:382791 }], # OS==win
[email protected]24641702014-07-03 17:20:152792 ['chromecast==1', {
2793 'defines': [
2794 'LOG_DISABLED=0',
2795 ],
2796 'conditions': [
2797 ['target_arch=="arm"', {
2798 'defines': [
2799 # TODO(lcwu): Work around an error when building Chromium
2800 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove
2801 # this define once the toolchain is updated.
2802 # See crbug.com/388933.
2803 '__SOFTFP',
2804 ],
2805 }],
2806 ],
2807 }],
[email protected]44879ed2012-04-06 01:11:022808 ['enable_task_manager==1', {
2809 'defines': [
2810 'ENABLE_TASK_MANAGER=1',
2811 ],
2812 }],
[email protected]6a3cd37e2012-04-17 17:13:342813 ['enable_extensions==1', {
2814 'defines': [
2815 'ENABLE_EXTENSIONS=1',
2816 ],
2817 }],
[email protected]13eb97d2012-01-05 01:07:122818 ['OS=="win" and branding=="Chrome"', {
2819 'defines': ['ENABLE_SWIFTSHADER'],
2820 }],
[email protected]407dfa632011-12-23 11:59:352821 ['enable_dart==1', {
2822 'defines': ['WEBKIT_USING_DART=1'],
2823 }],
[email protected]18e0f39b2012-01-17 16:47:342824 ['enable_plugin_installation==1', {
2825 'defines': ['ENABLE_PLUGIN_INSTALLATION=1'],
2826 }],
[email protected]6d17f6392012-12-05 05:24:542827 ['enable_plugins==1', {
2828 'defines': ['ENABLE_PLUGINS=1'],
2829 }],
[email protected]cdb756ef2012-04-05 18:34:532830 ['enable_session_service==1', {
2831 'defines': ['ENABLE_SESSION_SERVICE=1'],
2832 }],
[email protected]6b40bb582012-03-15 20:50:382833 ['enable_themes==1', {
2834 'defines': ['ENABLE_THEMES=1'],
2835 }],
[email protected]57e67ac2013-02-22 03:37:222836 ['enable_autofill_dialog==1', {
2837 'defines': ['ENABLE_AUTOFILL_DIALOG=1'],
2838 }],
[email protected]d3340bf512014-05-22 22:27:582839 ['enable_prod_wallet_service==1', {
2840 'defines': ['ENABLE_PROD_WALLET_SERVICE=1'],
2841 }],
[email protected]0acdd772012-04-05 22:53:002842 ['enable_background==1', {
2843 'defines': ['ENABLE_BACKGROUND=1'],
2844 }],
[email protected]6ee43a72012-12-07 22:44:402845 ['enable_google_now==1', {
2846 'defines': ['ENABLE_GOOGLE_NOW=1'],
2847 }],
[email protected]3b5e88d2013-09-06 11:03:062848 ['cld_version!=0', {
2849 'defines': ['CLD_VERSION=<(cld_version)'],
2850 }],
[email protected]34621d12014-07-16 22:33:102851 ['cld_version==2', {
2852 # This is used to populate the "CLD Data Source" field in:
2853 # chrome://translate-internals
2854 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'],
2855 }],
[email protected]658677f2012-06-09 06:04:022856 ['enable_printing==1', {
[email protected]1e54c1c2013-08-12 17:16:052857 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
2858 }],
vitalybukaf9433e42014-09-08 10:04:552859 ['enable_printing==1 and OS=="win"', {
2860 'defines': ['DISABLE_BASIC_PRINTING=1'],
2861 }],
[email protected]1e54c1c2013-08-12 17:16:052862 ['enable_printing==2', {
[email protected]658677f2012-06-09 06:04:022863 'defines': ['ENABLE_PRINTING=1'],
2864 }],
[email protected]c6ce08072013-07-31 07:48:532865 ['enable_spellcheck==1', {
2866 'defines': ['ENABLE_SPELLCHECK=1'],
2867 }],
[email protected]e6026962012-06-14 21:28:322868 ['enable_captive_portal_detection==1', {
2869 'defines': ['ENABLE_CAPTIVE_PORTAL_DETECTION=1'],
2870 }],
[email protected]dc4e8b82012-11-15 03:58:162871 ['enable_app_list==1', {
2872 'defines': ['ENABLE_APP_LIST=1'],
2873 }],
2874 ['enable_settings_app==1', {
2875 'defines': ['ENABLE_SETTINGS_APP=1'],
2876 }],
[email protected]02494ec2014-05-07 15:05:292877 ['disable_file_support==1', {
2878 'defines': ['DISABLE_FILE_SUPPORT=1'],
2879 }],
[email protected]9bfe0ab2012-08-30 13:18:112880 ['disable_ftp_support==1', {
2881 'defines': ['DISABLE_FTP_SUPPORT=1'],
2882 }],
[email protected]847aaab82014-05-07 14:05:462883 ['use_icu_alternatives_on_android==1', {
2884 'defines': ['USE_ICU_ALTERNATIVES_ON_ANDROID=1'],
2885 }],
[email protected]0850e842013-01-19 03:44:312886 ['enable_managed_users==1', {
2887 'defines': ['ENABLE_MANAGED_USERS=1'],
2888 }],
[email protected]3f0ed2172013-11-04 20:27:292889 ['data_reduction_fallback_host != ""', {
2890 'defines': [
2891 'DATA_REDUCTION_FALLBACK_HOST="<(data_reduction_fallback_host)"'],
2892 }],
[email protected]324856d2014-01-14 11:17:302893 ['data_reduction_dev_host != ""', {
2894 'defines': [
2895 'DATA_REDUCTION_DEV_HOST="<(data_reduction_dev_host)"'],
2896 }],
[email protected]199def22013-02-21 17:52:292897 ['spdy_proxy_auth_origin != ""', {
2898 'defines': ['SPDY_PROXY_AUTH_ORIGIN="<(spdy_proxy_auth_origin)"'],
2899 }],
2900 ['spdy_proxy_auth_property != ""', {
2901 'defines': ['SPDY_PROXY_AUTH_PROPERTY="<(spdy_proxy_auth_property)"'],
2902 }],
[email protected]f37e9412013-05-27 23:18:252903 ['spdy_proxy_auth_value != ""', {
2904 'defines': ['SPDY_PROXY_AUTH_VALUE="<(spdy_proxy_auth_value)"'],
2905 }],
[email protected]d8dd60e2013-10-08 00:49:432906 ['data_reduction_proxy_probe_url != ""', {
2907 'defines': [
2908 'DATA_REDUCTION_PROXY_PROBE_URL="<(data_reduction_proxy_probe_url)"'],
2909 }],
[email protected]bec6a992014-06-19 01:03:212910 ['data_reduction_proxy_warmup_url != ""', {
2911 'defines': [
2912 'DATA_REDUCTION_PROXY_WARMUP_URL="<(data_reduction_proxy_warmup_url)"'],
2913 }],
[email protected]f4b492e92014-05-31 22:19:482914 ['data_reduction_proxy_ssl_origin != ""', {
2915 'defines': [
2916 'DATA_REDUCTION_PROXY_SSL_ORIGIN="<(data_reduction_proxy_ssl_origin)"'],
2917 }],
2918 ['data_reduction_proxy_alt_origin != ""', {
2919 'defines': [
2920 'DATA_REDUCTION_PROXY_ALT_ORIGIN="<(data_reduction_proxy_alt_origin)"'],
2921 }],
2922 ['data_reduction_proxy_alt_fallback_origin != ""', {
2923 'defines': [
2924 'DATA_REDUCTION_PROXY_ALT_FALLBACK_ORIGIN="<(data_reduction_proxy_alt_fallback_origin)"'],
2925 }],
[email protected]5cbeb502013-04-23 19:25:272926 ['enable_mdns==1', {
2927 'defines': ['ENABLE_MDNS=1'],
[email protected]b9171622013-10-01 22:05:232928 }],
[email protected]2188c8d2014-03-21 00:58:562929 ['enable_service_discovery==1', {
2930 'defines' : [ 'ENABLE_SERVICE_DISCOVERY=1' ],
2931 }],
[email protected]4b202ae2014-05-23 07:45:362932 ['enable_wifi_bootstrapping==1', {
2933 'defines' : [ 'ENABLE_WIFI_BOOTSTRAPPING=1' ],
2934 }],
[email protected]754a2002014-02-14 16:40:342935 ['enable_hangout_services_extension==1', {
2936 'defines': ['ENABLE_HANGOUT_SERVICES_EXTENSION=1'],
2937 }],
[email protected]8c64e282013-11-28 16:05:142938 ['enable_ipc_fuzzer==1', {
2939 'defines': ['ENABLE_IPC_FUZZER=1'],
2940 }],
[email protected]8b4efe92014-02-21 16:08:202941 ['video_hole==1', {
2942 'defines': ['VIDEO_HOLE=1'],
2943 }],
[email protected]a6e22132010-02-10 20:43:182944 ], # conditions for 'target_defaults'
2945 'target_conditions': [
[email protected]e1b2d732014-03-28 16:20:322946 ['<(use_openssl)==1', {
[email protected]ad9449f92014-03-12 09:34:102947 'defines': ['USE_OPENSSL=1'],
2948 }],
[email protected]e1b2d732014-03-28 16:20:322949 ['<(use_openssl_certs)==1', {
2950 'defines': ['USE_OPENSSL_CERTS=1'],
2951 }],
2952 ['>(nacl_untrusted_build)==1', {
2953 'defines': [
2954 'USE_OPENSSL=1',
2955 'USE_OPENSSL_CERTS=1',
2956 ],
2957 }],
[email protected]ad9449f92014-03-12 09:34:102958 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', {
2959 'defines': ['USE_NSS=1'],
2960 }],
[email protected]02517012014-06-13 09:28:412961 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', {
2962 'defines': ['OS_CHROMEOS=1'],
2963 }],
[email protected]e59443e2014-08-18 14:13:332964 ['enable_wexit_time_destructors==1 and OS!="win"', {
2965 # TODO: Enable on Windows too, http://crbug.com/404525
[email protected]dcbc32cc2014-08-01 21:48:202966 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']},
[email protected]b1eb341c2011-11-09 18:46:072967 }],
[email protected]c14d8e772010-02-09 22:06:152968 ['chromium_code==0', {
[email protected]d8543312010-02-10 17:43:282969 'conditions': [
[email protected]1e013672012-06-29 22:12:202970 [ 'os_posix==1 and OS!="mac" and OS!="ios"', {
[email protected]c0a6b272011-02-09 22:32:332971 # We don't want to get warnings from third-party code,
2972 # so remove any existing warning-enabling flags like -Wall.
[email protected]d8543312010-02-10 17:43:282973 'cflags!': [
2974 '-Wall',
2975 '-Wextra',
[email protected]d8543312010-02-10 17:43:282976 ],
[email protected]167ec822011-10-24 22:05:272977 'cflags_cc': [
[email protected]ec1d155be2011-02-08 22:19:002978 # Don't warn about hash_map in third-party code.
2979 '-Wno-deprecated',
[email protected]167ec822011-10-24 22:05:272980 ],
2981 'cflags': [
[email protected]c0a6b272011-02-09 22:32:332982 # Don't warn about printf format problems.
2983 # This is off by default in gcc but on in Ubuntu's gcc(!).
[email protected]ec392872011-02-10 22:38:222984 '-Wno-format',
[email protected]ec1d155be2011-02-08 22:19:002985 ],
[email protected]d16bd642011-07-25 23:59:182986 'cflags_cc!': [
[email protected]f58fa2c2013-12-06 08:06:202987 # Necessary because llvm.org/PR10448 is WONTFIX (crbug.com/90453).
[email protected]d16bd642011-07-25 23:59:182988 '-Wsign-compare',
2989 ]
[email protected]d8543312010-02-10 17:43:282990 }],
[email protected]82dd5eb32012-08-18 04:24:322991 # TODO: Fix all warnings on chromeos too.
2992 [ 'os_posix==1 and OS!="mac" and OS!="ios" and (clang!=1 or chromeos==1)', {
2993 'cflags!': [
2994 '-Werror',
2995 ],
2996 }],
[email protected]bc073c062012-01-13 06:28:032997 [ 'os_posix==1 and os_bsd!=1 and OS!="mac" and OS!="android"', {
[email protected]6e4451892011-07-27 10:32:112998 'cflags': [
2999 # Don't warn about ignoring the return value from e.g. close().
3000 # This is off by default in some gccs but on by default in others.
[email protected]bc073c062012-01-13 06:28:033001 # BSD systems do not support this option, since they are usually
3002 # using gcc 4.2.1, which does not have this flag yet.
[email protected]6e4451892011-07-27 10:32:113003 '-Wno-unused-result',
3004 ],
3005 }],
[email protected]d8543312010-02-10 17:43:283006 [ 'OS=="win"', {
3007 'defines': [
3008 '_CRT_SECURE_NO_DEPRECATE',
3009 '_CRT_NONSTDC_NO_WARNINGS',
3010 '_CRT_NONSTDC_NO_DEPRECATE',
3011 '_SCL_SECURE_NO_DEPRECATE',
3012 ],
3013 'msvs_disabled_warnings': [4800],
3014 'msvs_settings': {
3015 'VCCLCompilerTool': {
[email protected]942c3a60f2011-05-03 02:04:113016 'WarningLevel': '3',
[email protected]86caa4052014-07-18 07:22:093017 'WarnAsError': 'true',
[email protected]d8543312010-02-10 17:43:283018 'Detect64BitPortabilityProblems': 'false',
3019 },
3020 },
[email protected]c54b41cb2012-08-24 20:58:243021 'conditions': [
3022 ['buildtype=="Official"', {
3023 'msvs_settings': {
3024 'VCCLCompilerTool': { 'WarnAsError': 'false' },
3025 }
3026 }],
[email protected]8efc26082014-01-24 13:26:353027 ['clang==1', {
3028 'msvs_settings': {
3029 'VCCLCompilerTool': { 'WarnAsError': 'false' },
3030 }
3031 }],
[email protected]c54b41cb2012-08-24 20:58:243032 ],
[email protected]d8543312010-02-10 17:43:283033 }],
[email protected]0915c3b2012-11-22 17:24:073034 # TODO(darin): Unfortunately, some third_party code depends on base.
[email protected]ea47b6a2011-07-17 19:39:423035 [ 'OS=="win" and component=="shared_library"', {
3036 'msvs_disabled_warnings': [
3037 4251, # class 'std::xx' needs to have dll-interface.
3038 ],
3039 }],
[email protected]1e013672012-06-29 22:12:203040 [ 'OS=="mac" or OS=="ios"', {
[email protected]d8543312010-02-10 17:43:283041 'xcode_settings': {
[email protected]4c4c2e5332010-06-15 11:51:063042 'WARNING_CFLAGS!': ['-Wall', '-Wextra'],
[email protected]d8543312010-02-10 17:43:283043 },
[email protected]3a352c362012-05-08 19:45:493044 'conditions': [
3045 ['buildtype=="Official"', {
3046 'xcode_settings': {
3047 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror
3048 },
3049 }],
3050 ],
[email protected]d8543312010-02-10 17:43:283051 }],
[email protected]1e013672012-06-29 22:12:203052 [ 'OS=="ios"', {
3053 'xcode_settings': {
[email protected]7afca862012-07-11 15:11:223054 # TODO(ios): Fix remaining warnings in third-party code, then
3055 # remove this; the Mac cleanup didn't get everything that's
3056 # flagged in an iOS build.
3057 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
[email protected]1e013672012-06-29 22:12:203058 'RUN_CLANG_STATIC_ANALYZER': 'NO',
[email protected]5a2637d02013-11-12 17:01:173059 # Several internal ios directories generate numerous warnings for
3060 # -Wobjc-missing-property-synthesis.
3061 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO',
[email protected]1e013672012-06-29 22:12:203062 },
3063 }],
[email protected]c14d8e772010-02-09 22:06:153064 ],
3065 }, {
[email protected]a5c598152012-01-27 04:55:133066 'includes': [
3067 # Rules for excluding e.g. foo_win.cc from the build on non-Windows.
3068 'filename_rules.gypi',
3069 ],
[email protected]41af4f82012-11-08 00:09:313070 # In Chromium code, we define __STDC_foo_MACROS in order to get the
[email protected]c14d8e772010-02-09 22:06:153071 # C99 macros on Mac and Linux.
3072 'defines': [
[email protected]41af4f82012-11-08 00:09:313073 '__STDC_CONSTANT_MACROS',
[email protected]c14d8e772010-02-09 22:06:153074 '__STDC_FORMAT_MACROS',
3075 ],
3076 'conditions': [
[email protected]c14d8e772010-02-09 22:06:153077 ['OS=="win"', {
[email protected]f55bd4862010-05-27 15:38:073078 # turn on warnings for signed/unsigned mismatch on chromium code.
3079 'msvs_settings': {
3080 'VCCLCompilerTool': {
3081 'AdditionalOptions': ['/we4389'],
3082 },
3083 },
[email protected]c14d8e772010-02-09 22:06:153084 }],
[email protected]63e39a282011-07-13 20:41:283085 ['OS=="win" and component=="shared_library"', {
3086 'msvs_disabled_warnings': [
3087 4251, # class 'std::xx' needs to have dll-interface.
3088 ],
3089 }],
[email protected]c14d8e772010-02-09 22:06:153090 ],
3091 }],
[email protected]a6e22132010-02-10 20:43:183092 ], # target_conditions for 'target_defaults'
[email protected]2f80c312009-02-25 21:26:553093 'default_configuration': 'Debug',
3094 'configurations': {
[email protected]5153767c2009-12-22 01:52:503095 # VCLinkerTool LinkIncremental values below:
3096 # 0 == default
3097 # 1 == /INCREMENTAL:NO
3098 # 2 == /INCREMENTAL
3099 # Debug links incremental, Release does not.
3100 #
[email protected]7b99801e2010-11-03 17:26:233101 # Abstract base configurations to cover common attributes.
[email protected]5153767c2009-12-22 01:52:503102 #
3103 'Common_Base': {
[email protected]bb05e452009-10-29 21:24:563104 'abstract': 1,
3105 'msvs_configuration_attributes': {
[email protected]534303c2011-09-28 00:02:513106 'OutputDirectory': '<(DEPTH)\\build\\<(build_dir_prefix)$(ConfigurationName)',
[email protected]bb05e452009-10-29 21:24:563107 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
3108 'CharacterSet': '1',
3109 },
[email protected]f59e1302013-02-15 13:48:403110 # Add the default import libs.
3111 'msvs_settings':{
3112 'VCLinkerTool': {
3113 'AdditionalDependencies': [
3114 'kernel32.lib',
3115 'gdi32.lib',
3116 'winspool.lib',
3117 'comdlg32.lib',
3118 'advapi32.lib',
3119 'shell32.lib',
3120 'ole32.lib',
3121 'oleaut32.lib',
3122 'user32.lib',
3123 'uuid.lib',
3124 'odbc32.lib',
3125 'odbccp32.lib',
[email protected]36bb739c2013-02-25 22:10:393126 'delayimp.lib',
[email protected]48293fb2013-12-04 04:02:033127 'credui.lib',
3128 'netapi32.lib',
[email protected]f59e1302013-02-15 13:48:403129 ],
3130 },
3131 },
[email protected]5153767c2009-12-22 01:52:503132 },
3133 'x86_Base': {
3134 'abstract': 1,
[email protected]ef4fa4072009-12-04 22:46:503135 'msvs_settings': {
3136 'VCLinkerTool': {
[email protected]388484f02014-02-06 09:49:213137 'MinimumRequiredVersion': '5.01', # XP.
[email protected]ef4fa4072009-12-04 22:46:503138 'TargetMachine': '1',
3139 },
[email protected]2d584a92013-11-12 22:44:393140 'VCLibrarianTool': {
3141 'TargetMachine': '1',
3142 },
[email protected]ef4fa4072009-12-04 22:46:503143 },
[email protected]2fa40782009-11-01 21:17:343144 'msvs_configuration_platform': 'Win32',
[email protected]bb05e452009-10-29 21:24:563145 },
[email protected]5153767c2009-12-22 01:52:503146 'x64_Base': {
3147 'abstract': 1,
3148 'msvs_configuration_platform': 'x64',
3149 'msvs_settings': {
3150 'VCLinkerTool': {
[email protected]68c88b02014-06-04 17:16:043151 # Make sure to understand http://crbug.com/361720 if you want to
3152 # increase this.
3153 'MinimumRequiredVersion': '5.02', # Server 2003.
[email protected]5153767c2009-12-22 01:52:503154 'TargetMachine': '17', # x86 - 64
[email protected]5153767c2009-12-22 01:52:503155 'AdditionalLibraryDirectories!':
[email protected]1ab48032012-07-02 21:48:053156 ['<(windows_sdk_path)/Lib/win8/um/x86'],
[email protected]5153767c2009-12-22 01:52:503157 'AdditionalLibraryDirectories':
[email protected]1ab48032012-07-02 21:48:053158 ['<(windows_sdk_path)/Lib/win8/um/x64'],
[email protected]50f99662013-03-04 20:58:363159 # Doesn't exist x64 SDK. Should use oleaut32 in any case.
3160 'IgnoreDefaultLibraryNames': [ 'olepro32.lib' ],
[email protected]5153767c2009-12-22 01:52:503161 },
[email protected]d26b4418ab2010-03-24 22:06:353162 'VCLibrarianTool': {
[email protected]5153767c2009-12-22 01:52:503163 'AdditionalLibraryDirectories!':
[email protected]1ab48032012-07-02 21:48:053164 ['<(windows_sdk_path)/Lib/win8/um/x86'],
[email protected]5153767c2009-12-22 01:52:503165 'AdditionalLibraryDirectories':
[email protected]1ab48032012-07-02 21:48:053166 ['<(windows_sdk_path)/Lib/win8/um/x64'],
[email protected]2d584a92013-11-12 22:44:393167 'TargetMachine': '17', # x64
[email protected]5153767c2009-12-22 01:52:503168 },
3169 },
[email protected]5153767c2009-12-22 01:52:503170 },
3171 'Debug_Base': {
3172 'abstract': 1,
[email protected]14339762011-04-05 07:36:583173 'defines': [
3174 'DYNAMIC_ANNOTATIONS_ENABLED=1',
3175 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
3176 ],
[email protected]1c966092009-08-20 21:19:263177 'xcode_settings': {
[email protected]d5d593a2009-08-28 23:23:293178 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)',
[email protected]a68c29a2011-07-01 16:23:493179 'OTHER_CFLAGS': [
[email protected]a68c29a2011-07-01 16:23:493180 '<@(debug_extra_cflags)',
3181 ],
[email protected]1c966092009-08-20 21:19:263182 },
[email protected]bb05e452009-10-29 21:24:563183 'msvs_settings': {
3184 'VCCLCompilerTool': {
[email protected]7e0d664a2009-12-03 21:07:473185 'Optimization': '<(win_debug_Optimization)',
[email protected]bb05e452009-10-29 21:24:563186 'PreprocessorDefinitions': ['_DEBUG'],
[email protected]6b0507b2010-05-07 07:41:213187 'BasicRuntimeChecks': '<(win_debug_RuntimeChecks)',
[email protected]7e0d664a2009-12-03 21:07:473188 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)',
[email protected]2ae6e022010-05-07 13:19:153189 'conditions': [
3190 # According to MSVS, InlineFunctionExpansion=0 means
3191 # "default inlining", not "/Ob0".
3192 # Thus, we have to handle InlineFunctionExpansion==0 separately.
3193 ['win_debug_InlineFunctionExpansion==0', {
3194 'AdditionalOptions': ['/Ob0'],
3195 }],
3196 ['win_debug_InlineFunctionExpansion!=""', {
3197 'InlineFunctionExpansion':
3198 '<(win_debug_InlineFunctionExpansion)',
3199 }],
[email protected]fac10d12010-11-08 16:00:313200 ['win_debug_disable_iterator_debugging==1', {
3201 'PreprocessorDefinitions': ['_HAS_ITERATOR_DEBUGGING=0'],
3202 }],
[email protected]ef5c5f1b2011-12-17 02:16:243203
3204 # if win_debug_OmitFramePointers is blank, leave as default
3205 ['win_debug_OmitFramePointers==1', {
3206 'OmitFramePointers': 'true',
3207 }],
3208 ['win_debug_OmitFramePointers==0', {
3209 'OmitFramePointers': 'false',
3210 # The above is not sufficient (http://crbug.com/106711): it
3211 # simply eliminates an explicit "/Oy", but both /O2 and /Ox
3212 # perform FPO regardless, so we must explicitly disable.
3213 # We still want the false setting above to avoid having
3214 # "/Oy /Oy-" and warnings about overriding.
3215 'AdditionalOptions': ['/Oy-'],
3216 }],
[email protected]2ae6e022010-05-07 13:19:153217 ],
[email protected]ef5c5f1b2011-12-17 02:16:243218 'AdditionalOptions': [ '<@(win_debug_extra_cflags)', ],
[email protected]bb05e452009-10-29 21:24:563219 },
3220 'VCLinkerTool': {
3221 'LinkIncremental': '<(msvs_debug_link_incremental)',
[email protected]7cf23ce62012-01-13 02:43:333222 # ASLR makes debugging with windbg difficult because Chrome.exe and
3223 # Chrome.dll share the same base name. As result, windbg will
3224 # name the Chrome.dll module like chrome_<base address>, where
3225 # <base address> typically changes with each launch. This in turn
3226 # means that breakpoints in Chrome.dll don't stick from one launch
3227 # to the next. For this reason, we turn ASLR off in debug builds.
3228 # Note that this is a three-way bool, where 0 means to pick up
3229 # the default setting, 1 is off and 2 is on.
3230 'RandomizedBaseAddress': 1,
[email protected]bb05e452009-10-29 21:24:563231 },
3232 'VCResourceCompilerTool': {
3233 'PreprocessorDefinitions': ['_DEBUG'],
3234 },
3235 },
[email protected]2f80c312009-02-25 21:26:553236 'conditions': [
[email protected]78204c92012-09-14 04:42:553237 ['OS=="linux" or OS=="android"', {
[email protected]d8e3b122012-05-31 23:07:543238 'target_conditions': [
3239 ['_toolset=="target"', {
3240 'cflags': [
3241 '<@(debug_extra_cflags)',
3242 ],
3243 }],
[email protected]bb05e452009-10-29 21:24:563244 ],
[email protected]2f80c312009-02-25 21:26:553245 }],
[email protected]1eec679e2013-12-13 22:10:273246 ['OS=="linux" and target_arch!="ia32" and disable_glibcxx_debug==0', {
[email protected]a8d94b42013-12-10 18:52:223247 # Enable libstdc++ debugging facilities to help catch problems
3248 # early, see http://crbug.com/65151 .
3249 # TODO(phajdan.jr): Should we enable this for all of POSIX?
3250 'defines': ['_GLIBCXX_DEBUG=1',],
3251 }],
[email protected]330ba6d2014-03-06 05:41:363252 ['release_valgrind_build==0', {
[email protected]56cca4e2011-07-01 21:33:353253 'xcode_settings': {
3254 'OTHER_CFLAGS': [
3255 '-fstack-protector-all', # Implies -fstack-protector
3256 ],
3257 },
3258 }],
[email protected]e86432a2014-08-18 21:01:083259 ['clang==1', {
3260 'cflags': [
3261 # Allow comparing the address of references and 'this' against 0
3262 # in debug builds. Technically, these can never be null in
3263 # well-defined C/C++ and Clang can optimize such checks away in
3264 # release builds, but they may be used in asserts in debug builds.
3265 '-Wno-undefined-bool-conversion',
3266 '-Wno-tautological-undefined-compare',
3267 ],
3268 'xcode_settings': {
3269 'OTHER_CFLAGS': [
3270 '-Wno-undefined-bool-conversion',
3271 '-Wno-tautological-undefined-compare',
3272 ],
3273 },
3274 'msvs_settings': {
3275 'VCCLCompilerTool': {
3276 'AdditionalOptions': [
3277 '-Wno-undefined-bool-conversion',
3278 '-Wno-tautological-undefined-compare',
3279 ],
3280 },
3281 },
3282 }],
[email protected]2f80c312009-02-25 21:26:553283 ],
3284 },
[email protected]5153767c2009-12-22 01:52:503285 'Release_Base': {
3286 'abstract': 1,
[email protected]2f80c312009-02-25 21:26:553287 'defines': [
3288 'NDEBUG',
3289 ],
[email protected]1c966092009-08-20 21:19:263290 'xcode_settings': {
3291 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip
3292 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)',
[email protected]ffd984b12009-09-11 19:37:003293 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ],
[email protected]1c966092009-08-20 21:19:263294 },
[email protected]bb05e452009-10-29 21:24:563295 'msvs_settings': {
[email protected]7e0d664a2009-12-03 21:07:473296 'VCCLCompilerTool': {
[email protected]7e0d664a2009-12-03 21:07:473297 'RuntimeLibrary': '<(win_release_RuntimeLibrary)',
[email protected]2ae6e022010-05-07 13:19:153298 'conditions': [
[email protected]2212d272011-12-20 21:37:373299 # In official builds, each target will self-select
3300 # an optimization level.
3301 ['buildtype!="Official"', {
3302 'Optimization': '<(win_release_Optimization)',
3303 },
3304 ],
[email protected]2ae6e022010-05-07 13:19:153305 # According to MSVS, InlineFunctionExpansion=0 means
3306 # "default inlining", not "/Ob0".
3307 # Thus, we have to handle InlineFunctionExpansion==0 separately.
3308 ['win_release_InlineFunctionExpansion==0', {
3309 'AdditionalOptions': ['/Ob0'],
3310 }],
3311 ['win_release_InlineFunctionExpansion!=""', {
3312 'InlineFunctionExpansion':
3313 '<(win_release_InlineFunctionExpansion)',
3314 }],
[email protected]626d2d22011-10-11 15:47:333315
[email protected]ef5c5f1b2011-12-17 02:16:243316 # if win_release_OmitFramePointers is blank, leave as default
[email protected]626d2d22011-10-11 15:47:333317 ['win_release_OmitFramePointers==1', {
3318 'OmitFramePointers': 'true',
3319 }],
3320 ['win_release_OmitFramePointers==0', {
3321 'OmitFramePointers': 'false',
[email protected]ef5c5f1b2011-12-17 02:16:243322 # The above is not sufficient (http://crbug.com/106711): it
3323 # simply eliminates an explicit "/Oy", but both /O2 and /Ox
3324 # perform FPO regardless, so we must explicitly disable.
3325 # We still want the false setting above to avoid having
3326 # "/Oy /Oy-" and warnings about overriding.
3327 'AdditionalOptions': ['/Oy-'],
[email protected]626d2d22011-10-11 15:47:333328 }],
[email protected]2ae6e022010-05-07 13:19:153329 ],
[email protected]21fac242014-07-18 09:30:333330 'AdditionalOptions': [
3331 '/d2Zi+', # Improve debugging of Release builds.
scottmg4f828c942014-08-29 04:11:073332 '/Zc:inline', # Remove unreferenced COMDAT (faster links).
[email protected]21fac242014-07-18 09:30:333333 '<@(win_release_extra_cflags)',
3334 ],
[email protected]7e0d664a2009-12-03 21:07:473335 },
[email protected]bb05e452009-10-29 21:24:563336 'VCLinkerTool': {
[email protected]c059c612011-08-08 20:56:343337 # LinkIncremental is a tri-state boolean, where 0 means default
3338 # (i.e., inherit from parent solution), 1 means false, and
3339 # 2 means true.
[email protected]bb05e452009-10-29 21:24:563340 'LinkIncremental': '1',
[email protected]c059c612011-08-08 20:56:343341 # This corresponds to the /PROFILE flag which ensures the PDB
3342 # file contains FIXUP information (growing the PDB file by about
3343 # 5%) but does not otherwise alter the output binary. This
3344 # information is used by the Syzygy optimization tool when
3345 # decomposing the release image.
3346 'Profile': 'true',
[email protected]bb05e452009-10-29 21:24:563347 },
3348 },
[email protected]2f80c312009-02-25 21:26:553349 'conditions': [
[email protected]fd3fb3bf2012-05-23 22:15:163350 ['msvs_use_common_release', {
3351 'includes': ['release.gypi'],
3352 }],
[email protected]7bdd7d7c2012-11-01 10:36:163353 ['release_valgrind_build==0 and tsan==0', {
[email protected]14339762011-04-05 07:36:583354 'defines': [
3355 'NVALGRIND',
3356 'DYNAMIC_ANNOTATIONS_ENABLED=0',
3357 ],
[email protected]ee857512010-05-14 08:24:423358 }, {
[email protected]14339762011-04-05 07:36:583359 'defines': [
[email protected]2f047202013-06-14 06:36:393360 'MEMORY_TOOL_REPLACES_ALLOCATOR',
[email protected]be766bb2014-07-01 19:22:123361 'MEMORY_SANITIZER_INITIAL_SIZE',
[email protected]14339762011-04-05 07:36:583362 'DYNAMIC_ANNOTATIONS_ENABLED=1',
3363 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
3364 ],
[email protected]92822e82009-09-18 14:26:563365 }],
[email protected]7e0d664a2009-12-03 21:07:473366 ['win_use_allocator_shim==0', {
3367 'defines': ['NO_TCMALLOC'],
3368 }],
[email protected]8b225222014-02-18 22:54:443369 # _FORTIFY_SOURCE isn't really supported by Clang now, see
3370 # http://llvm.org/bugs/show_bug.cgi?id=16821.
[email protected]ed472ad2014-07-10 00:50:523371 # It seems to work fine with Ubuntu 12 headers though, so use it
3372 # in official builds.
3373 ['os_posix==1 and (asan!=1 and msan!=1 and tsan!=1 and lsan!=1 and ubsan!=1) and (OS!="linux" or clang!=1 or buildtype=="Official")', {
[email protected]9577be42013-11-01 15:16:303374 'target_conditions': [
3375 ['chromium_code==1', {
3376 # Non-chromium code is not guaranteed to compile cleanly
3377 # with _FORTIFY_SOURCE. Also, fortified build may fail
3378 # when optimizations are disabled, so only do that for Release
3379 # build.
3380 'defines': [
3381 '_FORTIFY_SOURCE=2',
3382 ],
3383 }],
[email protected]37305ae2012-12-11 01:54:583384 ],
3385 }],
[email protected]7df38122012-11-05 23:54:433386 ['OS=="linux" or OS=="android"', {
[email protected]d8e3b122012-05-31 23:07:543387 'target_conditions': [
3388 ['_toolset=="target"', {
3389 'cflags': [
3390 '<@(release_extra_cflags)',
3391 ],
[email protected]9082bba2014-05-20 06:50:213392 'conditions': [
3393 ['enable_resource_whitelist_generation==1', {
3394 'cflags': [
3395 '-Wunknown-pragmas -Wno-error=unknown-pragmas',
3396 ],
3397 }],
3398 ],
[email protected]d8e3b122012-05-31 23:07:543399 }],
[email protected]bb05e452009-10-29 21:24:563400 ],
3401 }],
[email protected]b64ec822013-05-23 12:57:413402 ['OS=="ios"', {
3403 'defines': [
3404 'NS_BLOCK_ASSERTIONS=1',
3405 ],
3406 }],
[email protected]2f80c312009-02-25 21:26:553407 ],
3408 },
[email protected]5153767c2009-12-22 01:52:503409 #
3410 # Concrete configurations
3411 #
3412 'Debug': {
3413 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
3414 },
3415 'Release': {
3416 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
[email protected]5153767c2009-12-22 01:52:503417 },
[email protected]f926fa0a2009-08-04 22:50:133418 'conditions': [
[email protected]8125fba72014-02-26 14:32:583419 [ 'OS=="ios"', {
3420 'Profile': {
3421 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
3422 'target_conditions': [
3423 [ '_type=="executable"', {
3424 # To get a real .dSYM bundle produced by dsymutil, set the
3425 # debug information format to dwarf-with-dsym. Since
3426 # strip_from_xcode will not be used, set Xcode to do the
3427 # stripping as well.
3428 'xcode_settings': {
3429 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
3430 'DEPLOYMENT_POSTPROCESSING': 'YES',
3431 'STRIP_INSTALLED_PRODUCT': 'YES',
3432 },
3433 }],
3434 ],
3435 },
3436 }],
[email protected]f926fa0a2009-08-04 22:50:133437 [ 'OS=="win"', {
3438 # TODO(bradnelson): add a gyp mechanism to make this more graceful.
[email protected]ef4fa4072009-12-04 22:46:503439 'Debug_x64': {
[email protected]5153767c2009-12-22 01:52:503440 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
[email protected]78263c12009-11-01 23:45:303441 },
3442 'Release_x64': {
[email protected]5153767c2009-12-22 01:52:503443 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
[email protected]78263c12009-11-01 23:45:303444 },
[email protected]f926fa0a2009-08-04 22:50:133445 }],
3446 ],
[email protected]2f80c312009-02-25 21:26:553447 },
3448 },
3449 'conditions': [
[email protected]41300ff2014-04-07 08:17:253450 ['os_posix==1', {
3451 'target_defaults': {
3452 'ldflags': [
3453 '-Wl,-z,now',
3454 '-Wl,-z,relro',
3455 ],
3456 },
3457 }],
[email protected]713d6e4a2014-03-28 18:18:203458 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
[email protected]453a8ad32014-05-20 17:32:493459 ['os_posix==1 and disable_fatal_linker_warnings==0 and use_evdev_gestures==0 and (chromeos==0 or target_arch!="arm")', {
[email protected]43539ec2012-11-20 22:35:253460 'target_defaults': {
[email protected]43539ec2012-11-20 22:35:253461 'ldflags': [
[email protected]a89c460c2014-03-17 13:42:133462 '-Wl,--fatal-warnings',
[email protected]43539ec2012-11-20 22:35:253463 ],
[email protected]43539ec2012-11-20 22:35:253464 },
3465 }],
[email protected]d2ca75c2013-02-01 05:47:173466 ['os_posix==1 and chromeos==0', {
3467 # Chrome OS enables -fstack-protector-strong via its build wrapper,
3468 # and we want to avoid overriding this, so stack-protector is only
3469 # enabled when not building on Chrome OS.
3470 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc
3471 # supports it.
3472 'target_defaults': {
3473 'cflags': [
3474 '-fstack-protector',
3475 '--param=ssp-buffer-size=4',
3476 ],
3477 },
3478 }],
[email protected]1e013672012-06-29 22:12:203479 ['os_posix==1 and OS!="mac" and OS!="ios"', {
[email protected]9d384032009-03-20 23:13:263480 'target_defaults': {
[email protected]5315f2842009-04-28 00:43:273481 # Enable -Werror by default, but put it in a variable so it can
3482 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
3483 'variables': {
[email protected]cbbb3472012-01-25 18:32:313484 'werror%': '-Werror',
[email protected]1e013672012-06-29 22:12:203485 'libraries_for_target%': '',
[email protected]5315f2842009-04-28 00:43:273486 },
[email protected]6863896f2012-01-25 17:51:363487 'defines': [
3488 '_FILE_OFFSET_BITS=64',
3489 ],
[email protected]9d384032009-03-20 23:13:263490 'cflags': [
[email protected]1bba09c2009-08-13 12:53:163491 '<(werror)', # See note above about the werror variable.
3492 '-pthread',
3493 '-fno-exceptions',
[email protected]ef8c3cf2012-01-24 04:37:293494 '-fno-strict-aliasing', # See http://crbug.com/32204
[email protected]1bba09c2009-08-13 12:53:163495 '-Wall',
[email protected]0fa17082010-03-26 00:48:053496 # TODO(evan): turn this back on once all the builds work.
3497 # '-Wextra',
[email protected]225c8f52010-02-05 22:23:203498 # Don't warn about unused function params. We use those everywhere.
3499 '-Wno-unused-parameter',
3500 # Don't warn about the "struct foo f = {0};" initialization pattern.
3501 '-Wno-missing-field-initializers',
[email protected]3df6e3a2010-01-21 20:23:123502 # Don't export any symbols (for example, to plugins we dlopen()).
3503 # Note: this is *required* to make some plugins work.
3504 '-fvisibility=hidden',
[email protected]7ca6ce12010-09-15 23:39:353505 '-pipe',
[email protected]8a2fcba2009-07-29 00:52:243506 ],
3507 'cflags_cc': [
[email protected]832d0212009-10-28 19:12:223508 '-fno-rtti',
[email protected]8a2fcba2009-07-29 00:52:243509 '-fno-threadsafe-statics',
[email protected]f5986c42009-11-17 18:39:363510 # Make inline functions have hidden visiblity by default.
3511 # Surprisingly, not covered by -fvisibility=hidden.
3512 '-fvisibility-inlines-hidden',
[email protected]554abd902011-07-25 04:03:173513 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't,
[email protected]f58fa2c2013-12-06 08:06:203514 # so we specify it explicitly. (llvm.org/PR10448, crbug.com/90453)
[email protected]554abd902011-07-25 04:03:173515 '-Wsign-compare',
[email protected]9d384032009-03-20 23:13:263516 ],
[email protected]a6cf87e2009-04-03 04:07:383517 'ldflags': [
[email protected]138241f2010-03-30 23:53:103518 '-pthread', '-Wl,-z,noexecstack',
[email protected]9d384032009-03-20 23:13:263519 ],
[email protected]1e013672012-06-29 22:12:203520 'libraries' : [
3521 '<(libraries_for_target)',
3522 ],
[email protected]3aacaf952009-04-02 15:34:093523 'configurations': {
[email protected]5153767c2009-12-22 01:52:503524 'Debug_Base': {
[email protected]c5bdc032009-04-20 19:11:313525 'variables': {
3526 'debug_optimize%': '0',
3527 },
[email protected]3aacaf952009-04-02 15:34:093528 'defines': [
3529 '_DEBUG',
3530 ],
3531 'cflags': [
[email protected]95ad2032012-08-24 00:49:253532 '-O>(debug_optimize)',
[email protected]230023c2014-07-02 09:31:333533 '-g',
[email protected]3aacaf952009-04-02 15:34:093534 ],
[email protected]da1c8d692011-09-20 20:35:013535 'conditions' : [
[email protected]3f05e912013-04-11 20:38:343536 ['OS=="android"', {
[email protected]3f05e912013-04-11 20:38:343537 'ldflags': [
[email protected]933d0722013-07-03 04:32:493538 # Warn in case of text relocations.
3539 '-Wl,--warn-shared-textrel',
[email protected]3f05e912013-04-11 20:38:343540 ],
3541 }],
[email protected]fa9d4e262012-08-21 04:39:003542 ['OS=="android" and android_full_debug==0', {
[email protected]8a37e4502012-08-14 22:42:553543 # Some configurations are copied from Release_Base to reduce
3544 # the binary size.
3545 'variables': {
3546 'debug_optimize%': 's',
3547 },
[email protected]da1c8d692011-09-20 20:35:013548 'cflags': [
[email protected]8a37e4502012-08-14 22:42:553549 '-fdata-sections',
3550 '-ffunction-sections',
[email protected]da1c8d692011-09-20 20:35:013551 ],
[email protected]8a37e4502012-08-14 22:42:553552 'ldflags': [
3553 '-Wl,-O1',
3554 '-Wl,--as-needed',
[email protected]8a37e4502012-08-14 22:42:553555 ],
[email protected]da1c8d692011-09-20 20:35:013556 }],
[email protected]264868d22014-07-10 17:37:373557 ['OS=="android" and android_full_debug==0 and target_arch!="arm64"', {
3558 # We don't omit frame pointers on arm64 since they are required
3559 # to correctly unwind stackframes which contain system library
3560 # function frames (crbug.com/391706).
3561 'cflags': [
3562 '-fomit-frame-pointer',
3563 ],
3564 }],
[email protected]d4c0ec5b2013-03-10 03:07:453565 ['OS=="linux" and target_arch=="ia32"', {
3566 'ldflags': [
3567 '-Wl,--no-as-needed',
3568 ],
3569 }],
[email protected]2578ea12014-01-17 06:02:513570 ['debug_unwind_tables==1', {
3571 'cflags': ['-funwind-tables'],
3572 }, {
3573 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-tables'],
3574 }],
[email protected]9dbbabd2014-04-30 23:42:323575 # TODO(mostynb): shuffle clang/gcc_version/binutils_version
3576 # definitions in to the right scope to use them when setting
3577 # linux_use_debug_fission, so it can be used here alone.
3578 ['linux_use_debug_fission==1 and linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and binutils_version>=223', {
[email protected]1c26c6a2014-03-17 14:11:213579 'cflags': ['-gsplit-dwarf'],
[email protected]1c26c6a2014-03-17 14:11:213580 }],
[email protected]da1c8d692011-09-20 20:35:013581 ],
[email protected]5315f2842009-04-28 00:43:273582 },
[email protected]5153767c2009-12-22 01:52:503583 'Release_Base': {
[email protected]740e2de2009-07-21 11:41:013584 'variables': {
3585 'release_optimize%': '2',
[email protected]1dd529642010-05-15 01:02:513586 # Binaries become big and gold is unable to perform GC
3587 # and remove unused sections for some of test targets
3588 # on 32 bit platform.
3589 # (This is currently observed only in chromeos valgrind bots)
3590 # The following flag is to disable --gc-sections linker
3591 # option for these bots.
3592 'no_gc_sections%': 0,
[email protected]409dceef2011-05-10 19:49:123593
3594 # TODO(bradnelson): reexamine how this is done if we change the
3595 # expansion of configurations
3596 'release_valgrind_build%': 0,
[email protected]740e2de2009-07-21 11:41:013597 },
[email protected]3aacaf952009-04-02 15:34:093598 'cflags': [
[email protected]4c33a9b2014-06-23 22:20:193599 '-O<(release_optimize)',
[email protected]d8cc3a62009-04-08 18:29:533600 # Don't emit the GCC version ident directives, they just end up
3601 # in the .comment section taking up binary size.
3602 '-fno-ident',
3603 # Put data and code in their own sections, so that unused symbols
3604 # can be removed at link time with --gc-sections.
3605 '-fdata-sections',
3606 '-ffunction-sections',
[email protected]3aacaf952009-04-02 15:34:093607 ],
[email protected]c902f2c2010-08-06 20:04:183608 'ldflags': [
3609 # Specifically tell the linker to perform optimizations.
3610 # See http://lwn.net/Articles/192624/ .
3611 '-Wl,-O1',
[email protected]27c2e492010-08-06 22:55:223612 '-Wl,--as-needed',
[email protected]c902f2c2010-08-06 20:04:183613 ],
[email protected]1dd529642010-05-15 01:02:513614 'conditions' : [
3615 ['no_gc_sections==0', {
3616 'ldflags': [
3617 '-Wl,--gc-sections',
3618 ],
3619 }],
[email protected]264868d22014-07-10 17:37:373620 ['OS=="android" and target_arch!="arm64"', {
3621 # We don't omit frame pointers on arm64 since they are required
3622 # to correctly unwind stackframes which contain system library
3623 # function frames (crbug.com/391706).
3624 'cflags': [
3625 '-fomit-frame-pointer',
3626 ]
3627 }],
[email protected]da1c8d692011-09-20 20:35:013628 ['OS=="android"', {
[email protected]48de0fc2012-08-02 11:03:583629 'variables': {
3630 'release_optimize%': 's',
3631 },
[email protected]933d0722013-07-03 04:32:493632 'ldflags': [
[email protected]933d0722013-07-03 04:32:493633 # Warn in case of text relocations.
3634 '-Wl,--warn-shared-textrel',
3635 ],
[email protected]da1c8d692011-09-20 20:35:013636 }],
[email protected]ecf7b6482010-10-13 09:15:203637 ['clang==1', {
3638 'cflags!': [
3639 '-fno-ident',
3640 ],
[email protected]b31dbfc2014-07-18 20:14:473641 # TODO(thakis): Remove once http://llvm.org/PR20354 is fixed
3642 # and the fix is in chromium.
3643 'cflags': [ '-fno-slp-vectorize', ],
[email protected]ecf7b6482010-10-13 09:15:203644 }],
[email protected]7664ab32011-02-01 23:35:253645 ['profiling==1', {
3646 'cflags': [
3647 '-fno-omit-frame-pointer',
3648 '-g',
3649 ],
[email protected]0358c4832013-06-23 14:17:583650 'conditions' : [
3651 ['profiling_full_stack_frames==1', {
3652 'cflags': [
3653 '-fno-inline',
3654 '-fno-optimize-sibling-calls',
3655 ],
3656 }],
3657 ],
[email protected]7664ab32011-02-01 23:35:253658 }],
[email protected]2578ea12014-01-17 06:02:513659 ['release_unwind_tables==1', {
3660 'cflags': ['-funwind-tables'],
3661 }, {
3662 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-tables'],
[email protected]a637d4382014-01-11 03:12:053663 }],
[email protected]8d726a42012-02-09 03:49:003664 ],
[email protected]3aacaf952009-04-02 15:34:093665 },
3666 },
[email protected]606116d22009-05-06 22:38:233667 'conditions': [
[email protected]04b482602011-09-14 02:36:213668 ['target_arch=="ia32"', {
3669 'target_conditions': [
3670 ['_toolset=="target"', {
3671 'asflags': [
3672 # Needed so that libs with .s files (e.g. libicudata.a)
3673 # are compatible with the general 32-bit-ness.
3674 '-32',
3675 ],
3676 # All floating-point computations on x87 happens in 80-bit
3677 # precision. Because the C and C++ language standards allow
3678 # the compiler to keep the floating-point values in higher
3679 # precision than what's specified in the source and doing so
3680 # is more efficient than constantly rounding up to 64-bit or
3681 # 32-bit precision as specified in the source, the compiler,
3682 # especially in the optimized mode, tries very hard to keep
3683 # values in x87 floating-point stack (in 80-bit precision)
3684 # as long as possible. This has important side effects, that
3685 # the real value used in computation may change depending on
3686 # how the compiler did the optimization - that is, the value
3687 # kept in 80-bit is different than the value rounded down to
3688 # 64-bit or 32-bit. There are possible compiler options to
3689 # make this behavior consistent (e.g. -ffloat-store would keep
3690 # all floating-values in the memory, thus force them to be
3691 # rounded to its original precision) but they have significant
3692 # runtime performance penalty.
3693 #
3694 # -mfpmath=sse -msse2 makes the compiler use SSE instructions
3695 # which keep floating-point values in SSE registers in its
3696 # native precision (32-bit for single precision, and 64-bit
3697 # for double precision values). This means the floating-point
3698 # value used during computation does not change depending on
3699 # how the compiler optimized the code, since the value is
3700 # always kept in its specified precision.
[email protected]6c0d30672014-03-12 00:31:303701 #
3702 # Refer to http://crbug.com/348761 for rationale behind SSE2
3703 # being a minimum requirement for 32-bit Linux builds and
3704 # http://crbug.com/313032 for an example where this has "bit"
3705 # us in the past.
3706 'cflags': [
3707 '-msse2',
3708 '-mfpmath=sse',
3709 '-mmmx', # Allows mmintrin.h for MMX intrinsics.
3710 '-m32',
3711 ],
3712 'ldflags': [
3713 '-m32',
3714 ],
[email protected]04b482602011-09-14 02:36:213715 'conditions': [
[email protected]0a0063c52013-03-29 06:36:213716 # Use gold linker for Android ia32 target.
3717 ['OS=="android"', {
[email protected]0a0063c52013-03-29 06:36:213718 'ldflags': [
3719 '-fuse-ld=gold',
3720 ],
3721 }],
[email protected]04b482602011-09-14 02:36:213722 # Install packages have started cropping up with
3723 # different headers between the 32-bit and 64-bit
3724 # versions, so we have to shadow those differences off
3725 # and make sure a 32-bit-on-64-bit build picks up the
3726 # right files.
[email protected]32594022012-05-10 03:22:283727 # For android build, use NDK headers instead of host headers
3728 ['host_arch!="ia32" and OS!="android"', {
[email protected]04b482602011-09-14 02:36:213729 'include_dirs+': [
3730 '/usr/include32',
3731 ],
3732 }],
3733 ],
[email protected]ffde7932009-05-29 00:39:063734 }],
[email protected]606116d22009-05-06 22:38:233735 ],
3736 }],
[email protected]be0090f22014-03-18 17:43:483737 ['target_arch=="x64"', {
3738 'target_conditions': [
3739 ['_toolset=="target"', {
3740 'conditions': [
3741 # Use gold linker for Android x64 target.
3742 ['OS=="android"', {
[email protected]be0090f22014-03-18 17:43:483743 'ldflags': [
3744 '-fuse-ld=gold',
3745 ],
3746 }],
3747 ],
3748 'cflags': [
3749 '-m64',
3750 '-march=x86-64',
3751 ],
3752 'ldflags': [
3753 '-m64',
3754 ],
3755 }],
3756 ],
3757 }],
[email protected]3dda8a962009-08-10 18:58:073758 ['target_arch=="arm"', {
[email protected]77c1b29392009-12-04 06:21:293759 'target_conditions': [
3760 ['_toolset=="target"', {
[email protected]77c1b29392009-12-04 06:21:293761 'conditions': [
[email protected]d7595862014-08-18 15:41:073762 ['clang==0', {
3763 'cflags_cc': [
3764 # The codesourcery arm-2009q3 toolchain warns at that the ABI
3765 # has changed whenever it encounters a varargs function. This
3766 # silences those warnings, as they are not helpful and
3767 # clutter legitimate warnings.
3768 '-Wno-abi',
3769 ],
3770 }],
[email protected]0c2072e2014-08-18 18:21:183771 ['clang==1 and arm_arch!="" and OS!="android"', {
[email protected]d7595862014-08-18 15:41:073772 'cflags': [
3773 '-target arm-linux-gnueabihf',
[email protected]d7595862014-08-18 15:41:073774 ],
3775 'ldflags': [
3776 '-target arm-linux-gnueabihf',
3777 ],
3778 }],
[email protected]7d6763422013-04-26 12:06:543779 ['arm_arch!=""', {
3780 'cflags': [
3781 '-march=<(arm_arch)',
3782 ],
3783 }],
[email protected]0c2072e2014-08-18 18:21:183784 ['clang==1 and OS!="android"', {
[email protected]d7595862014-08-18 15:41:073785 'cflags': [
[email protected]0c2072e2014-08-18 18:21:183786 # We need to disable clang's builtin assembler as it can't
3787 # handle several asm files, crbug.com/124610
[email protected]d7595862014-08-18 15:41:073788 '-no-integrated-as',
3789 ],
3790 }],
[email protected]7d6763422013-04-26 12:06:543791 ['arm_tune!=""', {
3792 'cflags': [
3793 '-mtune=<(arm_tune)',
3794 ],
3795 }],
3796 ['arm_fpu!=""', {
3797 'cflags': [
3798 '-mfpu=<(arm_fpu)',
3799 ],
3800 }],
3801 ['arm_float_abi!=""', {
3802 'cflags': [
3803 '-mfloat-abi=<(arm_float_abi)',
3804 ],
3805 }],
3806 ['arm_thumb==1', {
[email protected]77c1b29392009-12-04 06:21:293807 'cflags': [
fdegans6b767132014-09-09 10:09:293808 '-mthumb',
3809 ],
[email protected]77c1b29392009-12-04 06:21:293810 }],
[email protected]da1c8d692011-09-20 20:35:013811 ['OS=="android"', {
[email protected]7b1112c2012-03-16 22:03:533812 # Most of the following flags are derived from what Android
3813 # uses by default when building for arm, reference for which
3814 # can be found in the following file in the Android NDK:
fdegans6b767132014-09-09 10:09:293815 # toolchains/arm-linux-androideabi-4.9/setup.mk
[email protected]7b1112c2012-03-16 22:03:533816 'cflags': [
3817 # The tree-sra optimization (scalar replacement for
3818 # aggregates enabling subsequent optimizations) leads to
3819 # invalid code generation when using the Android NDK's
3820 # compiler (r5-r7). This can be verified using
[email protected]b78f8f62013-04-24 01:35:433821 # webkit_unit_tests' WTF.Checked_int8_t test.
[email protected]7b1112c2012-03-16 22:03:533822 '-fno-tree-sra',
fdegans6b767132014-09-09 10:09:293823 # The following option is disabled to improve binary
3824 # size and performance in gcc 4.9.
[email protected]7557cd42014-05-28 15:32:593825 '-fno-caller-saves',
[email protected]7b1112c2012-03-16 22:03:533826 '-Wno-psabi',
3827 ],
[email protected]ad17e342012-07-17 20:45:483828 # Android now supports .relro sections properly.
3829 # NOTE: While these flags enable the generation of .relro
3830 # sections, the generated libraries can still be loaded on
3831 # older Android platform versions.
3832 'ldflags': [
3833 '-Wl,-z,relro',
3834 '-Wl,-z,now',
[email protected]9cc13e42012-08-20 20:09:483835 '-fuse-ld=gold',
[email protected]ad17e342012-07-17 20:45:483836 ],
[email protected]da1c8d692011-09-20 20:35:013837 'conditions': [
fdegansc16332e82014-09-09 13:55:293838 ['gcc_version==48 and clang==0', {
3839 'cflags': [
3840 # The following 5 options are disabled to save on
3841 # binary size in GCC 4.8.
3842 '-fno-partial-inlining',
3843 '-fno-early-inlining',
3844 '-fno-tree-copy-prop',
3845 '-fno-tree-loop-optimize',
3846 '-fno-move-loop-invariants',
3847 ],
3848 }],
[email protected]7d6763422013-04-26 12:06:543849 ['arm_thumb==1', {
[email protected]94cdbf42012-12-11 19:49:223850 'cflags': [ '-mthumb-interwork' ],
[email protected]da1c8d692011-09-20 20:35:013851 }],
[email protected]4c48ef102012-11-29 22:00:383852 ['profiling==1', {
3853 'cflags': [
[email protected]a0e681cc2014-05-16 16:56:473854 # Thumb code with frame pointer makes chrome crash
3855 # early.
3856 '-marm',
3857 '-mapcs-frame', # Required by -fno-omit-frame-pointer.
3858 # The perf report sometimes incorrectly attributes
3859 # code from tail calls.
3860 '-fno-optimize-sibling-calls',
3861 ],
3862 'cflags!': [
3863 '-fomit-frame-pointer',
[email protected]4c48ef102012-11-29 22:00:383864 ],
3865 }],
[email protected]220ea5932012-08-09 10:44:073866 ['clang==1', {
3867 'cflags!': [
3868 # Clang does not support the following options.
3869 '-mthumb-interwork',
3870 '-finline-limit=64',
3871 '-fno-tree-sra',
[email protected]7557cd42014-05-28 15:32:593872 '-fno-caller-saves',
[email protected]220ea5932012-08-09 10:44:073873 '-Wno-psabi',
3874 ],
[email protected]b763d402014-01-13 18:34:223875 'cflags': [
3876 # TODO(hans) Enable integrated-as (crbug.com/124610).
3877 '-no-integrated-as',
[email protected]f4091d32014-01-23 23:16:353878 '-B<(android_toolchain)', # Else /usr/bin/as gets picked up.
[email protected]b763d402014-01-13 18:34:223879 ],
[email protected]1afb1102014-01-31 00:04:223880 'ldflags': [
[email protected]2a9c8562014-08-11 18:01:213881 # Let clang find the ld.gold in the NDK.
[email protected]b728310a2014-08-08 20:53:343882 '--gcc-toolchain=<(android_toolchain)/..',
[email protected]1afb1102014-01-31 00:04:223883 ],
[email protected]220ea5932012-08-09 10:44:073884 }],
[email protected]cdc001e2014-01-23 11:07:533885 ['asan==1', {
3886 'cflags': [
3887 '-marm', # Required for frame pointer based stack traces.
3888 ],
3889 }],
[email protected]da1c8d692011-09-20 20:35:013890 ],
3891 }],
[email protected]24641702014-07-03 17:20:153892 ['chromecast==1', {
3893 'cflags': [
3894 # We set arm_arch to "" so that -march compiler option
3895 # is not set. Otherwise a gcc bug that would complain
3896 # about it conflicting with '-mcpu=cortex-a9'. The flag
3897 # '-march=armv7-a' is actually redundant anyway because
3898 # it is enabled by default when we built the toolchain.
3899 # And using '-mcpu=cortex-a9' should be sufficient.
3900 '-mcpu=cortex-a9',
3901 '-funwind-tables',
3902 # Breakpad requires symbols with debugging information
3903 '-g',
3904 ],
3905 'ldflags': [
3906 # We want to statically link libstdc++/libgcc_s.
3907 '-static-libstdc++',
3908 '-static-libgcc',
3909 ],
3910 'cflags!': [
3911 # Some components in Chromium (e.g. v8, skia, ffmpeg)
3912 # define their own cflags for arm builds that could
3913 # conflict with the flags we set here (e.g.
3914 # '-mcpu=cortex-a9'). Remove these flags explicitly.
3915 '-march=armv7-a',
3916 '-mtune=cortex-a8',
3917 ],
3918 }],
[email protected]3dda8a962009-08-10 18:58:073919 ],
3920 }],
3921 ],
3922 }],
[email protected]7a2f984a2014-03-20 18:35:493923 ['target_arch=="arm64"', {
3924 'target_conditions': [
3925 ['_toolset=="target"', {
3926 'conditions': [
3927 ['OS=="android"', {
3928 'cflags!': [
3929 '-fstack-protector', # stack protector is always enabled on arm64.
3930 ],
3931 }],
3932 ],
3933 }],
3934 ],
3935 }],
[email protected]23eea4a42013-04-27 04:10:263936 ['target_arch=="mipsel"', {
3937 'target_conditions': [
3938 ['_toolset=="target"', {
3939 'conditions': [
petarjc8a5da742014-08-27 14:33:363940 ['android_webview_build==0 and mips_arch_variant=="r6"', {
3941 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
3942 'conditions': [
3943 ['OS=="android"', {
3944 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',],
3945 }],
3946 ],
3947 }],
3948 ['android_webview_build==0 and mips_arch_variant=="r2"', {
[email protected]23eea4a42013-04-27 04:10:263949 'cflags': ['-mips32r2', '-Wa,-mips32r2'],
[email protected]3a626e02013-06-27 12:58:343950 }],
petarjc8a5da742014-08-27 14:33:363951 ['android_webview_build==0 and mips_arch_variant=="r1"', {
[email protected]23eea4a42013-04-27 04:10:263952 'cflags': ['-mips32', '-Wa,-mips32'],
3953 }],
3954 ],
[email protected]23eea4a42013-04-27 04:10:263955 'ldflags': [
[email protected]23eea4a42013-04-27 04:10:263956 '-Wl,--no-keep-memory'
3957 ],
3958 'cflags_cc': [
3959 '-Wno-uninitialized',
3960 ],
3961 }],
3962 ],
3963 }],
petarjc8a5da742014-08-27 14:33:363964 ['target_arch=="mips64el"', {
3965 'target_conditions': [
3966 ['_toolset=="target"', {
3967 'conditions': [
3968 ['android_webview_build==0 and mips_arch_variant=="r6"', {
3969 'cflags': ['-mips64r6', '-Wa,-mips64r6'],
3970 'ldflags': [ '-mips64r6' ],
3971 }],
3972 ['android_webview_build==0 and mips_arch_variant=="r2"', {
3973 'cflags': ['-mips64r2', '-Wa,-mips64r2'],
3974 'ldflags': [ '-mips64r2' ],
3975 }],
3976 ],
3977 'cflags_cc': [
3978 '-Wno-uninitialized',
3979 ],
3980 }],
3981 ],
3982 }],
[email protected]2fb843b2010-08-12 02:11:083983 ['linux_fpic==1', {
[email protected]c76723a2010-01-25 23:10:583984 'cflags': [
3985 '-fPIC',
3986 ],
[email protected]d3f692b32011-12-14 19:04:353987 'ldflags': [
3988 '-fPIC',
3989 ],
[email protected]c76723a2010-01-25 23:10:583990 }],
[email protected]ee28c9f2009-09-04 01:53:013991 ['sysroot!=""', {
[email protected]fd36ce822009-10-28 20:13:573992 'target_conditions': [
3993 ['_toolset=="target"', {
3994 'cflags': [
3995 '--sysroot=<(sysroot)',
3996 ],
3997 'ldflags': [
3998 '--sysroot=<(sysroot)',
[email protected]a7e10b9a2013-03-22 05:26:153999 '<!(<(DEPTH)/build/linux/sysroot_ld_path.sh <(sysroot))',
[email protected]fd36ce822009-10-28 20:13:574000 ],
4001 }]]
[email protected]ee28c9f2009-09-04 01:53:014002 }],
[email protected]58680ce2010-09-18 00:09:154003 ['clang==1', {
[email protected]18ca15a2011-08-10 03:07:124004 'cflags': [
[email protected]00c83cc2013-07-25 00:55:504005 # TODO(thakis): Remove, http://crbug.com/263960
[email protected]8dec02e2013-04-30 21:40:074006 '-Wno-reserved-user-defined-literal',
4007 ],
4008 'cflags_cc': [
4009 # See the comment in the Mac section for what it takes to move
4010 # this to -std=c++11.
4011 '-std=gnu++11',
4012 ],
4013 }],
[email protected]acad4962014-08-04 19:05:024014 ['clang==0 and host_clang==1', {
4015 'target_conditions': [
4016 ['_toolset=="host"', {
4017 'cflags_cc': [ '-std=gnu++11', ],
4018 }],
4019 ],
4020 }],
[email protected]5d451ad2011-02-11 16:43:464021 ['clang==1 and clang_use_chrome_plugins==1', {
[email protected]d23720682011-08-11 00:16:264022 'cflags': [
[email protected]c872dc52012-05-19 06:36:314023 '<@(clang_chrome_plugins_flags)',
[email protected]d23720682011-08-11 00:16:264024 ],
[email protected]5d451ad2011-02-11 16:43:464025 }],
[email protected]4a9ac22e2011-12-02 03:41:534026 ['clang==1 and clang_load!=""', {
[email protected]d23720682011-08-11 00:16:264027 'cflags': [
4028 '-Xclang', '-load', '-Xclang', '<(clang_load)',
[email protected]4a9ac22e2011-12-02 03:41:534029 ],
4030 }],
4031 ['clang==1 and clang_add_plugin!=""', {
4032 'cflags': [
[email protected]d23720682011-08-11 00:16:264033 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
4034 ],
[email protected]5e781232011-01-28 02:57:594035 }],
[email protected]49110f02013-04-22 22:51:344036 ['clang==1 and target_arch=="ia32"', {
4037 'cflags': [
4038 # Else building libyuv gives clang's register allocator issues,
4039 # see llvm.org/PR15798 / crbug.com/233709
4040 '-momit-leaf-frame-pointer',
4041 ],
4042 }],
[email protected]2616d45d2012-01-19 03:15:484043 ['clang==1 and "<(GENERATOR)"=="ninja"', {
4044 'cflags': [
4045 # See http://crbug.com/110262
4046 '-fcolor-diagnostics',
4047 ],
4048 }],
[email protected]062522a2013-06-13 15:49:554049 # Common options for AddressSanitizer, LeakSanitizer,
4050 # ThreadSanitizer and MemorySanitizer.
[email protected]0dbe7af92014-06-26 23:31:404051 ['asan==1 or lsan==1 or tsan==1 or msan==1 or ubsan==1 or ubsan_vptr==1', {
[email protected]cf351c22013-04-19 13:00:544052 'target_conditions': [
4053 ['_toolset=="target"', {
4054 'cflags': [
4055 '-fno-omit-frame-pointer',
4056 '-gline-tables-only',
4057 ],
[email protected]b772fce2014-01-22 09:27:524058 'cflags!': [
4059 '-fomit-frame-pointer',
4060 ],
[email protected]7fd639a2014-05-30 23:59:014061 }],
4062 ],
4063 }],
4064 ['asan==1 or lsan==1 or tsan==1 or msan==1', {
4065 'target_conditions': [
4066 ['_toolset=="target"', {
[email protected]49110f02013-04-22 22:51:344067 'ldflags!': [
4068 # Functions interposed by the sanitizers can make ld think
4069 # that some libraries aren't needed when they actually are,
4070 # http://crbug.com/234010. As workaround, disable --as-needed.
4071 '-Wl,--as-needed',
4072 ],
[email protected]2f047202013-06-14 06:36:394073 'defines': [
4074 'MEMORY_TOOL_REPLACES_ALLOCATOR',
[email protected]7a16a1e2014-07-04 04:18:034075 'MEMORY_SANITIZER_INITIAL_SIZE',
[email protected]2f047202013-06-14 06:36:394076 ],
[email protected]cf351c22013-04-19 13:00:544077 }],
4078 ],
[email protected]05b59c92014-04-15 18:39:204079 # TODO(glider): enable the default options on other systems.
4080 'conditions': [
[email protected]1b9654122014-04-28 12:11:154081 ['use_sanitizer_options==1 and OS=="linux" and (chromeos==0 or target_arch!="ia32")', {
[email protected]05b59c92014-04-15 18:39:204082 'dependencies': [
[email protected]4c072d32014-08-21 20:34:464083 '<(DEPTH)/build/sanitizers/sanitizers.gyp:sanitizer_options',
[email protected]05b59c92014-04-15 18:39:204084 ],
4085 }],
4086 ],
[email protected]cf351c22013-04-19 13:00:544087 }],
[email protected]92799b632011-08-15 14:33:064088 ['asan==1', {
[email protected]1ffc3b3962012-05-16 14:08:424089 'target_conditions': [
4090 ['_toolset=="target"', {
[email protected]cb770a4c2012-07-25 20:06:454091 'cflags': [
[email protected]48688df02012-11-27 21:04:564092 '-fsanitize=address',
[email protected]cb770a4c2012-07-25 20:06:454093 ],
4094 'ldflags': [
[email protected]48688df02012-11-27 21:04:564095 '-fsanitize=address',
[email protected]cb770a4c2012-07-25 20:06:454096 ],
[email protected]1ffc3b3962012-05-16 14:08:424097 }],
[email protected]921c7b52011-11-25 10:34:354098 ],
[email protected]eec02d982014-03-21 18:51:174099 'conditions': [
4100 ['OS=="mac"', {
4101 'cflags': [
4102 '-mllvm -asan-globals=0', # http://crbug.com/352073
4103 ],
4104 }],
4105 ],
[email protected]92799b632011-08-15 14:33:064106 }],
[email protected]7fd639a2014-05-30 23:59:014107 ['ubsan==1', {
4108 'target_conditions': [
4109 ['_toolset=="target"', {
4110 'cflags': [
4111 '-fsanitize=undefined',
4112 # -fsanitize=vptr is incompatible with -fno-rtti.
4113 '-fno-sanitize=vptr',
[email protected]7fd639a2014-05-30 23:59:014114 ],
4115 'ldflags': [
4116 '-fsanitize=undefined',
4117 # -fsanitize=vptr is incompatible with -fno-rtti.
4118 '-fno-sanitize=vptr',
4119 ],
4120 }],
4121 ],
4122 }],
[email protected]0dbe7af92014-06-26 23:31:404123 ['ubsan_vptr==1', {
4124 'target_conditions': [
4125 ['_toolset=="target"', {
4126 'cflags': [
4127 '-fsanitize=vptr',
[email protected]0dbe7af92014-06-26 23:31:404128 '-fsanitize-blacklist=<(ubsan_vptr_blacklist)',
[email protected]0dbe7af92014-06-26 23:31:404129 ],
4130 'cflags_cc!': [
4131 '-fno-rtti',
4132 ],
4133 'cflags!': [
4134 '-fno-rtti',
4135 ],
4136 'ldflags': [
[email protected]22e15542014-07-18 23:09:244137 '-fsanitize=vptr',
[email protected]0dbe7af92014-06-26 23:31:404138 ],
4139 'defines': [
4140 'UNDEFINED_SANITIZER',
4141 ],
4142 }],
4143 ],
4144 }],
[email protected]544a18ed2014-01-17 21:01:364145 ['asan_coverage!=0', {
[email protected]20a127f2014-01-16 03:25:034146 'target_conditions': [
4147 ['_toolset=="target"', {
4148 'cflags': [
[email protected]544a18ed2014-01-17 21:01:364149 '-mllvm -asan-coverage=<(asan_coverage)',
[email protected]20a127f2014-01-16 03:25:034150 ],
4151 }],
4152 ],
4153 }],
[email protected]062522a2013-06-13 15:49:554154 ['lsan==1', {
4155 'target_conditions': [
4156 ['_toolset=="target"', {
4157 'cflags': [
4158 '-fsanitize=leak',
4159 ],
4160 'ldflags': [
4161 '-fsanitize=leak',
4162 ],
4163 'defines': [
4164 'LEAK_SANITIZER',
[email protected]f6f65a02013-09-06 05:40:524165 'WTF_USE_LEAK_SANITIZER=1',
[email protected]062522a2013-06-13 15:49:554166 ],
4167 }],
4168 ],
4169 }],
[email protected]c9a829272012-07-04 07:51:124170 ['tsan==1', {
4171 'target_conditions': [
4172 ['_toolset=="target"', {
[email protected]cb770a4c2012-07-25 20:06:454173 'cflags': [
[email protected]927a9d672012-11-09 11:28:204174 '-fsanitize=thread',
[email protected]9d46a572013-01-23 10:38:294175 '-fPIC',
[email protected]3227d8f2014-04-26 00:49:324176 '-fsanitize-blacklist=<(tsan_blacklist)',
[email protected]cb770a4c2012-07-25 20:06:454177 ],
4178 'ldflags': [
[email protected]927a9d672012-11-09 11:28:204179 '-fsanitize=thread',
[email protected]cb770a4c2012-07-25 20:06:454180 ],
4181 'defines': [
4182 'THREAD_SANITIZER',
4183 'DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1',
[email protected]7bdd7d7c2012-11-01 10:36:164184 'WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1',
[email protected]cb770a4c2012-07-25 20:06:454185 ],
4186 'target_conditions': [
4187 ['_type=="executable"', {
4188 'ldflags': [
[email protected]c9a829272012-07-04 07:51:124189 '-pie',
[email protected]cb770a4c2012-07-25 20:06:454190 ],
4191 }],
4192 ],
[email protected]c9a829272012-07-04 07:51:124193 }],
4194 ],
4195 }],
[email protected]a10ddd2d2013-02-26 20:06:594196 ['msan==1', {
4197 'target_conditions': [
4198 ['_toolset=="target"', {
4199 'cflags': [
4200 '-fsanitize=memory',
[email protected]a030ab62014-06-23 17:14:154201 '-fsanitize-memory-track-origins=<(msan_track_origins)',
[email protected]a10ddd2d2013-02-26 20:06:594202 '-fPIC',
[email protected]190d4ce62014-01-17 20:24:534203 '-fsanitize-blacklist=<(msan_blacklist)',
[email protected]a10ddd2d2013-02-26 20:06:594204 ],
4205 'ldflags': [
4206 '-fsanitize=memory',
4207 ],
4208 'defines': [
4209 'MEMORY_SANITIZER',
4210 ],
4211 'target_conditions': [
4212 ['_type=="executable"', {
4213 'ldflags': [
4214 '-pie',
4215 ],
4216 }],
4217 ],
4218 }],
4219 ],
4220 }],
[email protected]c8103a42013-11-12 13:41:304221 ['use_instrumented_libraries==1', {
4222 'dependencies': [
4223 '<(DEPTH)/third_party/instrumented_libraries/instrumented_libraries.gyp:instrumented_libraries',
4224 ],
[email protected]c8103a42013-11-12 13:41:304225 }],
[email protected]22b3f531e2013-12-20 13:07:284226 ['use_custom_libcxx==1', {
4227 'dependencies': [
[email protected]121cbf6e2014-05-05 13:30:424228 '<(DEPTH)/third_party/libc++/libc++.gyp:libcxx_proxy',
[email protected]22b3f531e2013-12-20 13:07:284229 ],
4230 }],
[email protected]8a48f3f2012-12-04 20:14:044231 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")', {
[email protected]8a6abd12012-05-16 10:04:444232 'target_conditions' : [
[email protected]c45dbc52014-05-27 14:02:484233 # crazy_linker has an upstream gyp file we can't edit, and we
4234 # don't want to instrument it.
4235 ['_toolset=="target" and _target_name!="crazy_linker"', {
[email protected]8a6abd12012-05-16 10:04:444236 'cflags': [
4237 '-finstrument-functions',
[email protected]c2a8d2e2012-10-05 09:31:454238 # Allow mmx intrinsics to inline, so that the
[email protected]82e9b002013-07-16 21:04:244239 #0 compiler can expand the intrinsics.
[email protected]c2a8d2e2012-10-05 09:31:454240 '-finstrument-functions-exclude-file-list=mmintrin.h',
[email protected]8a6abd12012-05-16 10:04:444241 ],
4242 }],
[email protected]82e9b002013-07-16 21:04:244243 ['_toolset=="target" and OS=="android"', {
4244 'cflags': [
4245 # Avoids errors with current NDK:
4246 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:3426:3: error: argument must be a constant"
[email protected]037688fc2014-07-04 20:07:364247 '-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM.h',
[email protected]82e9b002013-07-16 21:04:244248 ],
4249 }],
[email protected]8a6abd12012-05-16 10:04:444250 ],
4251 }],
[email protected]ce4367d2013-01-15 16:13:104252 ['linux_dump_symbols==1', {
4253 'cflags': [ '-g' ],
noms277720162014-08-26 15:21:084254 'conditions': [
4255 ['OS=="linux" and host_arch=="ia32" and linux_use_bundled_gold==0', {
4256 'target_conditions': [
4257 ['_toolset=="target"', {
4258 'ldflags': [
4259 # Attempt to use less memory to prevent the linker from
4260 # running out of address space. Considering installing a
4261 # 64-bit kernel and switching to a 64-bit linker.
4262 '-Wl,--no-keep-memory',
4263 ],
4264 }],
4265 ],
4266 }],
4267 ],
[email protected]cbd5fd52009-08-26 00:14:274268 }],
[email protected]2fa89ef2014-05-07 18:45:594269 ['use_allocator!="tcmalloc"', {
[email protected]61a9b2d82010-02-26 00:31:084270 'defines': ['NO_TCMALLOC'],
[email protected]01699e22009-11-11 19:24:244271 }],
[email protected]8d726a42012-02-09 03:49:004272 ['linux_use_gold_flags==1', {
[email protected]b728310a2014-08-08 20:53:344273 # Newer gccs and clangs support -fuse-ld, use the flag to force gold
4274 # selection.
4275 # gcc -- http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Optimize-Options.html
4276 'ldflags': [ '-fuse-ld=gold', ],
4277
[email protected]c5a6fe42013-07-21 14:03:334278 'target_conditions': [
4279 ['_toolset=="target"', {
4280 'ldflags': [
4281 # Experimentation found that using four linking threads
4282 # saved ~20% of link time.
4283 # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/281527606915bb36
4284 # Only apply this to the target linker, since the host
4285 # linker might not be gold, but isn't used much anyway.
[email protected]21ed97e2014-01-14 23:40:554286 # TODO(raymes): Disable threading because gold is frequently
4287 # crashing on the bots: crbug.com/161942.
4288 # '-Wl,--threads',
4289 # '-Wl,--thread-count=4',
[email protected]c5a6fe42013-07-21 14:03:334290 ],
4291 }],
[email protected]68d01e82012-12-08 03:36:324292 ],
[email protected]8d726a42012-02-09 03:49:004293 'conditions': [
4294 ['release_valgrind_build==0', {
4295 'target_conditions': [
4296 ['_toolset=="target"', {
4297 'ldflags': [
[email protected]ffc46162014-01-16 12:19:494298 # There seems to be a conflict of --icf and -pie
4299 # in gold which can generate crashy binaries. As
[email protected]3b09cec52014-05-15 00:33:414300 # a security measure, -pie takes precedence for
[email protected]ffc46162014-01-16 12:19:494301 # now.
4302 #'-Wl,--icf=safe',
4303 '-Wl,--icf=none',
[email protected]8d726a42012-02-09 03:49:004304 ],
4305 }],
4306 ],
4307 }],
4308 ],
4309 }],
[email protected]f0a58322014-04-16 09:50:234310 ['linux_use_bundled_binutils==1', {
[email protected]9c233692014-04-09 20:20:454311 'cflags': [
4312 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
4313 ],
[email protected]f0a58322014-04-16 09:50:234314 }],
4315 ['linux_use_bundled_gold==1', {
4316 # Put our binutils, which contains gold in the search path. We pass
4317 # the path to gold to the compiler. gyp leaves unspecified what the
4318 # cwd is when running the compiler, so the normal gyp path-munging
4319 # fails us. This hack gets the right path.
[email protected]b07806c12012-02-03 22:44:594320 'ldflags': [
[email protected]9c233692014-04-09 20:20:454321 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
[email protected]b07806c12012-02-03 22:44:594322 ],
4323 }],
[email protected]ebb701b72014-04-24 08:24:514324 # Some binutils 2.23 releases may or may not have new dtags enabled,
4325 # but they are all compatible with --disable-new-dtags,
4326 # because the new dynamic tags are not created by default.
4327 ['binutils_version>=223', {
[email protected]f0a58322014-04-16 09:50:234328 # Newer binutils don't set DT_RPATH unless you disable "new" dtags
4329 # and the new DT_RUNPATH doesn't work without --no-as-needed flag.
4330 # FIXME(mithro): Figure out the --as-needed/--no-as-needed flags
4331 # inside this file to allow usage of --no-as-needed and removal of
4332 # this flag.
[email protected]9c233692014-04-09 20:20:454333 'ldflags': [
4334 '-Wl,--disable-new-dtags',
4335 ],
[email protected]6d4327bf2014-06-23 23:20:464336 }],
[email protected]3d40fa22014-07-31 12:55:014337 ['gcc_version>=47 and clang==0', {
[email protected]6d4327bf2014-06-23 23:20:464338 'target_conditions': [
4339 ['_toolset=="target"', {
4340 'cflags_cc': [
4341 '-std=gnu++11',
4342 # See comment for -Wno-c++11-narrowing.
4343 '-Wno-narrowing',
4344 # TODO(thakis): Remove, http://crbug.com/263960
4345 '-Wno-literal-suffix',
4346 ],
4347 }],
4348 ],
4349 }],
[email protected]acad4962014-08-04 19:05:024350 ['host_gcc_version>=47 and clang==0 and host_clang==0', {
[email protected]6d4327bf2014-06-23 23:20:464351 'target_conditions': [
4352 ['_toolset=="host"', {
4353 'cflags_cc': [
4354 '-std=gnu++11',
4355 # See comment for -Wno-c++11-narrowing.
4356 '-Wno-narrowing',
4357 # TODO(thakis): Remove, http://crbug.com/263960
4358 '-Wno-literal-suffix',
4359 ],
4360 }],
4361 ],
4362 }],
[email protected]606116d22009-05-06 22:38:234363 ],
[email protected]9d384032009-03-20 23:13:264364 },
4365 }],
[email protected]c51e8d52009-12-11 20:04:064366 # FreeBSD-specific options; note that most FreeBSD options are set above,
4367 # with Linux.
4368 ['OS=="freebsd"', {
4369 'target_defaults': {
4370 'ldflags': [
4371 '-Wl,--no-keep-memory',
4372 ],
4373 },
4374 }],
[email protected]da1c8d692011-09-20 20:35:014375 # Android-specific options; note that most are set above with Linux.
4376 ['OS=="android"', {
4377 'variables': {
[email protected]25036722012-12-11 10:36:174378 # This is a unique identifier for a given build. It's used for
4379 # identifying various build artifacts corresponding to a particular
4380 # build of chrome (e.g. where to find archived symbols).
4381 'chrome_build_id%': '',
[email protected]da1c8d692011-09-20 20:35:014382 'conditions': [
[email protected]da1c8d692011-09-20 20:35:014383 # Use shared stlport library when system one used.
4384 # Figure this out early since it needs symbols from libgcc.a, so it
4385 # has to be before that in the set of libraries.
4386 ['use_system_stlport==1', {
4387 'android_stlport_library': 'stlport',
4388 }, {
[email protected]806b5232012-11-19 21:19:044389 'conditions': [
4390 ['component=="shared_library"', {
4391 'android_stlport_library': 'stlport_shared',
4392 }, {
4393 'android_stlport_library': 'stlport_static',
4394 }],
4395 ],
[email protected]da1c8d692011-09-20 20:35:014396 }],
4397 ],
4398
4399 # Placing this variable here prevents from forking libvpx, used
4400 # by remoting. Remoting is off, so it needn't built,
4401 # so forking it's deps seems like overkill.
4402 # But this variable need defined to properly run gyp.
4403 # A proper solution is to have an OS==android conditional
4404 # in third_party/libvpx/libvpx.gyp to define it.
4405 'libvpx_path': 'lib/linux/arm',
4406 },
4407 'target_defaults': {
[email protected]da1c8d692011-09-20 20:35:014408 'variables': {
4409 'release_extra_cflags%': '',
[email protected]e4865252013-04-04 09:15:594410 'conditions': [
4411 # If we're using the components build, append "cr" to all shared
4412 # libraries to avoid naming collisions with android system library
4413 # versions with the same name (e.g. skia, icu).
4414 ['component=="shared_library"', {
4415 'android_product_extension': 'cr.so',
4416 }, {
4417 'android_product_extension': 'so',
4418 } ],
4419 ],
[email protected]8a37e4502012-08-14 22:42:554420 },
[email protected]da1c8d692011-09-20 20:35:014421 'target_conditions': [
[email protected]e4865252013-04-04 09:15:594422 ['_type=="shared_library"', {
[email protected]71b4fc32014-08-11 11:27:124423 'product_extension': '<(android_product_extension)',
[email protected]e4865252013-04-04 09:15:594424 }],
4425
[email protected]da1c8d692011-09-20 20:35:014426 # Settings for building device targets using Android's toolchain.
4427 # These are based on the setup.mk file from the Android NDK.
4428 #
4429 # The NDK Android executable link step looks as follows:
4430 # $LDFLAGS
4431 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o
4432 # $(PRIVATE_OBJECTS) <-- The .o that we built
4433 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built
4434 # $(TARGET_LIBGCC) <-- libgcc.a
4435 # $(PRIVATE_SHARED_LIBRARIES) <-- The .so that we built
4436 # $(PRIVATE_LDLIBS) <-- System .so
4437 # $(TARGET_CRTEND_O) <-- crtend.o
4438 #
4439 # For now the above are approximated for executables by adding
4440 # crtbegin.o to the end of the ldflags and 'crtend.o' to the end
4441 # of 'libraries'.
4442 #
4443 # The NDK Android shared library link step looks as follows:
4444 # $LDFLAGS
4445 # $(PRIVATE_OBJECTS) <-- The .o that we built
4446 # -l,--whole-archive
4447 # $(PRIVATE_WHOLE_STATIC_LIBRARIES)
4448 # -l,--no-whole-archive
4449 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built
4450 # $(TARGET_LIBGCC) <-- libgcc.a
4451 # $(PRIVATE_SHARED_LIBRARIES) <-- The .so that we built
4452 # $(PRIVATE_LDLIBS) <-- System .so
4453 #
[email protected]ad17e342012-07-17 20:45:484454 # For now, assume that whole static libraries are not needed.
[email protected]da1c8d692011-09-20 20:35:014455 #
4456 # For both executables and shared libraries, add the proper
4457 # libgcc.a to the start of libraries which puts it in the
4458 # proper spot after .o and .a files get linked in.
4459 #
4460 # TODO: The proper thing to do longer-tem would be proper gyp
4461 # support for a custom link command line.
4462 ['_toolset=="target"', {
4463 'cflags!': [
4464 '-pthread', # Not supported by Android toolchain.
4465 ],
4466 'cflags': [
[email protected]da1c8d692011-09-20 20:35:014467 '-ffunction-sections',
4468 '-funwind-tables',
4469 '-g',
4470 '-fstack-protector',
4471 '-fno-short-enums',
4472 '-finline-limit=64',
4473 '-Wa,--noexecstack',
[email protected]da1c8d692011-09-20 20:35:014474 '<@(release_extra_cflags)',
[email protected]da1c8d692011-09-20 20:35:014475 ],
4476 'defines': [
4477 'ANDROID',
4478 '__GNU_SOURCE=1', # Necessary for clone()
4479 'USE_STLPORT=1',
4480 '_STLP_USE_PTR_SPECIALIZATIONS=1',
[email protected]25036722012-12-11 10:36:174481 'CHROME_BUILD_ID="<(chrome_build_id)"',
[email protected]da1c8d692011-09-20 20:35:014482 ],
4483 'ldflags!': [
4484 '-pthread', # Not supported by Android toolchain.
4485 ],
4486 'ldflags': [
4487 '-nostdlib',
4488 '-Wl,--no-undefined',
[email protected]da1c8d692011-09-20 20:35:014489 ],
[email protected]a0e48b02011-11-22 07:53:014490 'libraries': [
4491 '-l<(android_stlport_library)',
4492 # Manually link the libgcc.a that the cross compiler uses.
[email protected]c0f76312012-08-16 13:52:044493 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
[email protected]a0e48b02011-11-22 07:53:014494 '-lc',
4495 '-ldl',
[email protected]a0e48b02011-11-22 07:53:014496 '-lm',
[email protected]da1c8d692011-09-20 20:35:014497 ],
4498 'conditions': [
[email protected]71b4fc32014-08-11 11:27:124499 ['component=="static_library"', {
4500 'ldflags': [
[email protected]b4193652014-06-09 11:33:384501 '-Wl,--exclude-libs=ALL',
4502 ],
4503 }],
[email protected]220ea5932012-08-09 10:44:074504 ['clang==1', {
4505 'cflags': [
4506 # Work around incompatibilities between bionic and clang
4507 # headers.
4508 '-D__compiler_offsetof=__builtin_offsetof',
4509 '-Dnan=__builtin_nan',
4510 ],
4511 'conditions': [
4512 ['target_arch=="arm"', {
4513 'cflags': [
4514 '-target arm-linux-androideabi',
[email protected]220ea5932012-08-09 10:44:074515 ],
4516 'ldflags': [
4517 '-target arm-linux-androideabi',
4518 ],
4519 }],
4520 ['target_arch=="ia32"', {
4521 'cflags': [
4522 '-target x86-linux-androideabi',
4523 ],
4524 'ldflags': [
4525 '-target x86-linux-androideabi',
4526 ],
4527 }],
[email protected]be0090f22014-03-18 17:43:484528 # Place holder for x64 support, not tested.
4529 # TODO: Enable clang support for Android x64. http://crbug.com/346626
4530 ['target_arch=="x64"', {
4531 'cflags': [
4532 '-target x86_64-linux-androideabi',
4533 ],
4534 'ldflags': [
4535 '-target x86_64-linux-androideabi',
4536 ],
4537 }],
[email protected]220ea5932012-08-09 10:44:074538 ],
4539 }],
[email protected]ed70ed1862012-11-07 12:11:254540 ['asan==1', {
4541 'cflags': [
4542 # Android build relies on -Wl,--gc-sections removing
4543 # unreachable code. ASan instrumentation for globals inhibits
4544 # this and results in a library with unresolvable relocations.
4545 # TODO(eugenis): find a way to reenable this.
4546 '-mllvm -asan-globals=0',
4547 ],
4548 }],
[email protected]d999c3cb2013-03-12 10:22:364549 ['android_webview_build==0', {
[email protected]34baed112012-06-27 16:10:464550 'defines': [
[email protected]f5c7758a2012-07-25 16:17:574551 # The NDK has these things, but doesn't define the constants
4552 # to say that it does. Define them here instead.
4553 'HAVE_SYS_UIO_H',
4554 ],
4555 'cflags': [
4556 '--sysroot=<(android_ndk_sysroot)',
[email protected]34baed112012-06-27 16:10:464557 ],
[email protected]da1c8d692011-09-20 20:35:014558 'ldflags': [
[email protected]5baf7482011-12-13 16:00:524559 '--sysroot=<(android_ndk_sysroot)',
[email protected]da1c8d692011-09-20 20:35:014560 ],
4561 }],
[email protected]d999c3cb2013-03-12 10:22:364562 ['android_webview_build==1', {
[email protected]0d7291e2012-10-04 19:16:084563 'include_dirs': [
4564 # OpenAL headers from the Android tree.
4565 '<(android_src)/frameworks/wilhelm/include',
4566 ],
4567 'cflags': [
[email protected]04882132012-11-21 12:40:454568 # Android predefines this as 1; undefine it here so Chromium
4569 # can redefine it later to be 2 for chromium code and unset
4570 # for third party code. This works because cflags are added
4571 # before defines.
4572 '-U_FORTIFY_SOURCE',
[email protected]53f93c92013-01-04 00:48:554573 # Disable any additional warnings enabled by the Android build system but which
4574 # chromium does not build cleanly with (when treating warning as errors).
[email protected]0d7291e2012-10-04 19:16:084575 # Things that are part of -Wextra:
[email protected]53f93c92013-01-04 00:48:554576 '-Wno-extra', # Enabled by -Wextra, but no specific flag
4577 '-Wno-ignored-qualifiers',
4578 '-Wno-type-limits',
[email protected]6c55f1242014-02-12 16:06:564579 '-Wno-unused-but-set-variable',
[email protected]0d7291e2012-10-04 19:16:084580 ],
4581 'cflags_cc': [
[email protected]2f34a202013-03-11 13:59:164582 # Other things unrelated to -Wextra:
4583 '-Wno-non-virtual-dtor',
4584 '-Wno-sign-promo',
[email protected]0d7291e2012-10-04 19:16:084585 ],
4586 }],
[email protected]9577be42013-11-01 15:16:304587 ['android_webview_build==1', {
4588 'target_conditions': [
4589 ['chromium_code==0', {
4590 'cflags': [
4591 # There is a class of warning which:
4592 # 1) Android always enables and also treats as errors
4593 # 2) Chromium ignores in third party code
4594 # So we re-enable those warnings when building Android.
4595 '-Wno-address',
4596 '-Wno-format-security',
4597 '-Wno-return-type',
4598 '-Wno-sequence-point',
4599 ],
4600 'cflags_cc': [
4601 '-Wno-non-virtual-dtor',
4602 ],
4603 }],
[email protected]0d7291e2012-10-04 19:16:084604 ],
4605 }],
[email protected]febd3572012-05-03 09:17:454606 ['target_arch == "arm"', {
4607 'ldflags': [
4608 # Enable identical code folding to reduce size.
4609 '-Wl,--icf=safe',
4610 ],
4611 }],
[email protected]da1c8d692011-09-20 20:35:014612 # NOTE: The stlport header include paths below are specified in
4613 # cflags rather than include_dirs because they need to come
4614 # after include_dirs. Think of them like system headers, but
4615 # don't use '-isystem' because the arm-linux-androideabi-4.4.3
4616 # toolchain (circa Gingerbread) will exhibit strange errors.
4617 # The include ordering here is important; change with caution.
[email protected]f91ba812012-07-11 00:00:514618 ['use_system_stlport==1', {
4619 'cflags': [
4620 # For libstdc++/include, which is used by stlport.
4621 '-I<(android_src)/bionic',
4622 '-I<(android_src)/external/stlport/stlport',
4623 ],
4624 }, { # else: use_system_stlport!=1
[email protected]da1c8d692011-09-20 20:35:014625 'cflags': [
[email protected]843ca8c2014-07-09 15:50:324626 '-isystem<(android_stlport_include)',
[email protected]da1c8d692011-09-20 20:35:014627 ],
[email protected]225ec632013-04-03 18:20:224628 'ldflags': [
4629 '-L<(android_stlport_libs_dir)',
[email protected]da1c8d692011-09-20 20:35:014630 ],
4631 }],
4632 ['target_arch=="ia32"', {
4633 # The x86 toolchain currently has problems with stack-protector.
4634 'cflags!': [
4635 '-fstack-protector',
4636 ],
4637 'cflags': [
4638 '-fno-stack-protector',
4639 ],
4640 }],
4641 ],
4642 'target_conditions': [
4643 ['_type=="executable"', {
[email protected]7d2b7cf2014-05-14 15:15:194644 # Force android tools to export the "main" symbol so they can be
4645 # loaded on ICS using the run_pie wrapper. See crbug.com/373219.
4646 # TODO(primiano): remove -fvisibility and -rdynamic flags below
4647 # when ICS support will be dropped.
4648 'cflags': [
4649 '-fPIE',
4650 '-fvisibility=default',
4651 ],
[email protected]da1c8d692011-09-20 20:35:014652 'ldflags': [
4653 '-Bdynamic',
[email protected]da1c8d692011-09-20 20:35:014654 '-Wl,--gc-sections',
4655 '-Wl,-z,nocopyreloc',
[email protected]7d2b7cf2014-05-14 15:15:194656 '-pie',
4657 '-rdynamic',
[email protected]da1c8d692011-09-20 20:35:014658 # crtbegin_dynamic.o should be the last item in ldflags.
4659 '<(android_ndk_lib)/crtbegin_dynamic.o',
4660 ],
4661 'libraries': [
4662 # crtend_android.o needs to be the last item in libraries.
4663 # Do not add any libraries after this!
4664 '<(android_ndk_lib)/crtend_android.o',
4665 ],
4666 }],
[email protected]f5c7758a2012-07-25 16:17:574667 ['_type=="shared_library" or _type=="loadable_module"', {
[email protected]7ab8b9be2014-06-12 17:20:424668 'ldflags!': [
4669 '-Wl,--exclude-libs=ALL',
4670 ],
[email protected]da1c8d692011-09-20 20:35:014671 'ldflags': [
4672 '-Wl,-shared,-Bsymbolic',
4673 ],
[email protected]d093fe8b2013-04-30 18:00:234674 'conditions': [
4675 ['android_webview_build==0', {
4676 'ldflags': [
4677 # crtbegin_so.o should be the last item in ldflags.
4678 '<(android_ndk_lib)/crtbegin_so.o',
4679 ],
4680 'libraries': [
4681 # crtend_so.o needs to be the last item in libraries.
4682 # Do not add any libraries after this!
4683 '<(android_ndk_lib)/crtend_so.o',
4684 ],
4685 }],
[email protected]a08029b42012-04-25 03:18:464686 ],
[email protected]da1c8d692011-09-20 20:35:014687 }],
4688 ],
4689 }],
4690 # Settings for building host targets using the system toolchain.
4691 ['_toolset=="host"', {
[email protected]3984aaf2012-02-16 11:42:124692 'cflags!': [
4693 # Due to issues in Clang build system, using ASan on 32-bit
4694 # binaries on x86_64 host is problematic.
4695 # TODO(eugenis): re-enable.
[email protected]48688df02012-11-27 21:04:564696 '-fsanitize=address',
[email protected]3984aaf2012-02-16 11:42:124697 ],
[email protected]da1c8d692011-09-20 20:35:014698 'ldflags!': [
[email protected]2e82fa52012-11-27 23:41:444699 '-fsanitize=address',
[email protected]da1c8d692011-09-20 20:35:014700 '-Wl,-z,noexecstack',
4701 '-Wl,--gc-sections',
4702 '-Wl,-O1',
4703 '-Wl,--as-needed',
[email protected]df240712013-09-02 23:17:224704 '-Wl,--warn-shared-textrel',
4705 '-Wl,--fatal-warnings',
[email protected]da1c8d692011-09-20 20:35:014706 ],
4707 }],
[email protected]0ccf578f2013-03-13 11:13:394708 # Settings for building host targets on mac.
4709 ['_toolset=="host" and host_os=="mac"', {
4710 'ldflags!': [
4711 '-Wl,-z,now',
4712 '-Wl,-z,relro',
4713 ],
4714 }],
[email protected]da1c8d692011-09-20 20:35:014715 ],
4716 },
4717 }],
[email protected]93f21e42010-04-01 00:35:154718 ['OS=="solaris"', {
4719 'cflags!': ['-fvisibility=hidden'],
4720 'cflags_cc!': ['-fvisibility-inlines-hidden'],
4721 }],
[email protected]1e013672012-06-29 22:12:204722 ['OS=="mac" or OS=="ios"', {
[email protected]2f80c312009-02-25 21:26:554723 'target_defaults': {
[email protected]d92c7c012009-03-19 19:26:424724 'mac_bundle': 0,
[email protected]2f80c312009-02-25 21:26:554725 'xcode_settings': {
4726 'ALWAYS_SEARCH_USER_PATHS': 'NO',
[email protected]2429bb732012-10-19 00:24:244727 # Don't link in libarclite_macosx.a, see http://crbug.com/156530.
4728 'CLANG_LINK_OBJC_RUNTIME': 'NO', # -fno-objc-link-runtime
[email protected]47c3e852013-09-13 02:22:314729 'COPY_PHASE_STRIP': 'NO',
[email protected]ab2956372009-08-13 18:11:044730 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99
4731 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
[email protected]ab2956372009-08-13 18:11:044732 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
4733 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
4734 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
[email protected]3224dcd2009-09-16 17:31:254735 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
4736 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
[email protected]ab2956372009-08-13 18:11:044737 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors
4738 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
4739 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
4740 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
[email protected]2f80c312009-02-25 21:26:554741 'GCC_VERSION': '4.2',
[email protected]ab2956372009-08-13 18:11:044742 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
[email protected]2f80c312009-02-25 21:26:554743 'USE_HEADERMAP': 'NO',
[email protected]080e86f2010-06-21 15:19:044744 'WARNING_CFLAGS': [
4745 '-Wall',
4746 '-Wendif-labels',
4747 '-Wextra',
4748 # Don't warn about unused function parameters.
4749 '-Wno-unused-parameter',
4750 # Don't warn about the "struct foo f = {0};" initialization
4751 # pattern.
4752 '-Wno-missing-field-initializers',
4753 ],
[email protected]b3fb8092009-03-12 19:09:244754 'conditions': [
4755 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
[email protected]9543af052009-09-15 22:42:594756 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
4757 ],
[email protected]2936b8c2012-10-29 10:57:314758 # Note that the prebuilt Clang binaries should not be used for iOS
4759 # development except for ASan builds.
[email protected]66733172010-09-22 00:09:284760 ['clang==1', {
[email protected]9e0756c2013-09-01 01:37:024761 # gnu++11 instead of c++11 is needed because some code uses
4762 # typeof() (a GNU extension).
4763 # TODO(thakis): Eventually switch this to c++11 instead of
4764 # gnu++11 (once typeof can be removed, which is blocked on c++11
4765 # being available everywhere).
4766 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11
[email protected]3e893e0c2012-11-16 16:58:444767 # Warn if automatic synthesis is triggered with
4768 # the -Wobjc-missing-property-synthesis flag.
[email protected]aae0e592012-11-15 00:25:534769 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
[email protected]34f40892011-09-06 21:53:304770 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
[email protected]66733172010-09-22 00:09:284771 'WARNING_CFLAGS': [
[email protected]bb148192014-04-02 03:37:334772 # This warns on selectors from Cocoa headers (-length, -set).
4773 # cfe-dev is currently discussing the merits of this warning.
4774 # TODO(thakis): Reevaluate what to do with this, based one
4775 # cfe-dev discussion.
4776 '-Wno-selector-type-mismatch',
[email protected]ce2cad72014-02-13 18:17:354777 ],
[email protected]d50aa6a2014-07-18 07:32:444778 'OTHER_CFLAGS': [
4779 # TODO(thakis): Remove once http://llvm.org/PR20354 is fixed
4780 # and the fix is in chromium.
4781 '-fno-slp-vectorize',
4782 ],
[email protected]361b47c2013-07-02 15:13:244783
[email protected]ce2cad72014-02-13 18:17:354784 'conditions': [
4785 ['clang_xcode==0', {
4786 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang',
4787 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++',
[email protected]ce2cad72014-02-13 18:17:354788 }],
[email protected]66733172010-09-22 00:09:284789 ],
4790 }],
[email protected]ce2cad72014-02-13 18:17:354791 ['clang==1 and clang_xcode==0 and clang_use_chrome_plugins==1', {
[email protected]5d451ad2011-02-11 16:43:464792 'OTHER_CFLAGS': [
[email protected]c872dc52012-05-19 06:36:314793 '<@(clang_chrome_plugins_flags)',
[email protected]5d451ad2011-02-11 16:43:464794 ],
4795 }],
[email protected]ce2cad72014-02-13 18:17:354796 ['clang==1 and clang_xcode==0 and clang_load!=""', {
[email protected]5e781232011-01-28 02:57:594797 'OTHER_CFLAGS': [
4798 '-Xclang', '-load', '-Xclang', '<(clang_load)',
[email protected]4a9ac22e2011-12-02 03:41:534799 ],
4800 }],
[email protected]ce2cad72014-02-13 18:17:354801 ['clang==1 and clang_xcode==0 and clang_add_plugin!=""', {
[email protected]4a9ac22e2011-12-02 03:41:534802 'OTHER_CFLAGS': [
[email protected]5e781232011-01-28 02:57:594803 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
4804 ],
4805 }],
[email protected]2616d45d2012-01-19 03:15:484806 ['clang==1 and "<(GENERATOR)"=="ninja"', {
4807 'OTHER_CFLAGS': [
4808 # See http://crbug.com/110262
4809 '-fcolor-diagnostics',
4810 ],
4811 }],
[email protected]91274072014-04-03 01:49:494812 ['OS=="ios" and target_subarch!="arm32" and \
[email protected]7e0fe4912014-04-09 20:53:004813 "<(GENERATOR)"=="xcode"', {
[email protected]91274072014-04-03 01:49:494814 'OTHER_CFLAGS': [
4815 # TODO(ios): when building Chrome for iOS on 64-bit platform
4816 # with Xcode, the -Wshorted-64-to-32 warning is automatically
4817 # enabled. This cause failures when compiling protobuf code,
4818 # so disable the warning. http://crbug.com/359107
4819 '-Wno-shorten-64-to-32',
4820 ],
4821 }],
[email protected]b3fb8092009-03-12 19:09:244822 ],
[email protected]2f80c312009-02-25 21:26:554823 },
[email protected]34f40892011-09-06 21:53:304824 'conditions': [
4825 ['clang==1', {
4826 'variables': {
4827 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin',
4828 },
4829 }],
[email protected]921c7b52011-11-25 10:34:354830 ['asan==1', {
4831 'xcode_settings': {
4832 'OTHER_CFLAGS': [
[email protected]48688df02012-11-27 21:04:564833 '-fsanitize=address',
[email protected]22df2b22014-03-13 10:55:074834 '-mllvm -asan-globals=0', # http://crbug.com/352073
[email protected]14a37352014-05-16 11:39:554835 '-gline-tables-only',
[email protected]921c7b52011-11-25 10:34:354836 ],
[email protected]921c7b52011-11-25 10:34:354837 },
[email protected]921c7b52011-11-25 10:34:354838 }],
[email protected]544a18ed2014-01-17 21:01:364839 ['asan_coverage!=0', {
[email protected]20a127f2014-01-16 03:25:034840 'target_conditions': [
4841 ['_toolset=="target"', {
4842 'cflags': [
[email protected]544a18ed2014-01-17 21:01:364843 '-mllvm -asan-coverage=<(asan_coverage)',
[email protected]20a127f2014-01-16 03:25:034844 ],
4845 }],
4846 ],
4847 }],
[email protected]34f40892011-09-06 21:53:304848 ],
[email protected]2f80c312009-02-25 21:26:554849 'target_conditions': [
[email protected]2f80c312009-02-25 21:26:554850 ['_type!="static_library"', {
[email protected]5d7dc972009-04-16 15:30:464851 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
[email protected]4281a4e2012-08-24 19:05:084852 'conditions': [
4853 ['asan==1', {
4854 'xcode_settings': {
4855 'OTHER_LDFLAGS': [
[email protected]2e82fa52012-11-27 23:41:444856 '-fsanitize=address',
[email protected]4281a4e2012-08-24 19:05:084857 ],
4858 },
4859 }],
[email protected]c9cc9442013-12-28 21:27:444860 ['mac_write_linker_maps==1', {
4861 'xcode_settings': {
4862 'OTHER_LDFLAGS': [
4863 '-Wl,-map,>(_target_name).map',
4864 ],
4865 },
4866 }],
[email protected]4281a4e2012-08-24 19:05:084867 ],
[email protected]5d7dc972009-04-16 15:30:464868 }],
4869 ['_mac_bundle', {
4870 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
[email protected]5ec8c962013-03-12 11:56:314871 'target_conditions': [
4872 ['_type=="executable"', {
4873 'conditions': [
4874 ['asan==1', {
4875 'postbuilds': [
4876 {
4877 'variables': {
4878 # Define copy_asan_dylib_path in a variable ending in
4879 # _path so that gyp understands it's a path and
4880 # performs proper relativization during dict merging.
4881 'copy_asan_dylib_path':
4882 'mac/copy_asan_runtime_dylib.sh',
4883 },
4884 'postbuild_name': 'Copy ASan runtime dylib',
4885 'action': [
4886 '<(copy_asan_dylib_path)',
4887 ],
4888 },
4889 ],
4890 }],
4891 ],
4892 }],
4893 ],
[email protected]87fde4a2009-02-28 00:50:084894 }],
[email protected]2936b8c2012-10-29 10:57:314895 ], # target_conditions
4896 }, # target_defaults
4897 }], # OS=="mac" or OS=="ios"
4898 ['OS=="mac"', {
4899 'target_defaults': {
[email protected]eea7d332014-05-16 11:43:084900 'defines': [
4901 # Prevent Mac OS X AssertMacros.h from defining macros that collide
4902 # with common names, like 'check', 'require', and 'verify'.
4903 # (Included by system header. Also exists on iOS but not included.)
4904 # http://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/AssertMacros.h
4905 '__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0',
4906 ],
[email protected]2936b8c2012-10-29 10:57:314907 'variables': {
4908 # These should end with %, but there seems to be a bug with % in
4909 # variables that are intended to be set to different values in
4910 # different targets, like these.
4911 'mac_pie': 1, # Most executables can be position-independent.
[email protected]2936b8c2012-10-29 10:57:314912 # Strip debugging symbols from the target.
4913 'mac_strip': '<(mac_strip_release)',
[email protected]970fd4e2012-12-19 11:09:374914 'conditions': [
4915 ['asan==1', {
4916 'conditions': [
4917 ['mac_want_real_dsym=="default"', {
[email protected]97ab1fa2012-12-24 10:50:354918 'mac_real_dsym': 1,
[email protected]970fd4e2012-12-19 11:09:374919 }, {
4920 'mac_real_dsym': '<(mac_want_real_dsym)'
4921 }],
4922 ],
4923 }, {
4924 'conditions': [
4925 ['mac_want_real_dsym=="default"', {
4926 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
4927 }, {
4928 'mac_real_dsym': '<(mac_want_real_dsym)'
4929 }],
4930 ],
4931 }],
4932 ],
[email protected]2936b8c2012-10-29 10:57:314933 },
4934 'xcode_settings': {
4935 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
4936 # (Equivalent to -fPIC)
4937 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min
4938 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
4939 # Keep pch files below xcodebuild/.
4940 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHeaders',
[email protected]6211f622013-07-29 23:35:394941 'OTHER_CFLAGS': [
4942 # Someday this can be replaced by an 'GCC_STRICT_ALIASING': 'NO'
4943 # xcode_setting, but not until all downstream projects' mac bots are
4944 # using xcode >= 4.6, because that's when the default value of the
4945 # flag in the compiler switched. Pre-4.6, the value 'NO' for that
4946 # setting is a no-op as far as xcode is concerned, but the compiler
4947 # behaves differently based on whether -fno-strict-aliasing is
4948 # specified or not.
4949 '-fno-strict-aliasing', # See http://crbug.com/32204.
4950 ],
[email protected]2936b8c2012-10-29 10:57:314951 },
4952 'target_conditions': [
[email protected]6303fed2011-08-11 01:12:104953 ['_type=="executable"', {
4954 'postbuilds': [
4955 {
4956 # Arranges for data (heap) pages to be protected against
[email protected]8c40f322011-08-24 03:33:364957 # code execution when running on Mac OS X 10.7 ("Lion"), and
4958 # ensures that the position-independent executable (PIE) bit
4959 # is set for ASLR when running on Mac OS X 10.5 ("Leopard").
[email protected]6303fed2011-08-11 01:12:104960 'variables': {
[email protected]8c40f322011-08-24 03:33:364961 # Define change_mach_o_flags in a variable ending in _path
4962 # so that GYP understands it's a path and performs proper
4963 # relativization during dict merging.
4964 'change_mach_o_flags_path':
4965 'mac/change_mach_o_flags_from_xcode.sh',
[email protected]162407f2011-09-08 15:33:174966 'change_mach_o_flags_options%': [
[email protected]081c0342011-08-24 14:59:134967 ],
4968 'target_conditions': [
[email protected]162407f2011-09-08 15:33:174969 ['mac_pie==0 or release_valgrind_build==1', {
4970 # Don't enable PIE if it's unwanted. It's unwanted if
4971 # the target specifies mac_pie=0 or if building for
4972 # Valgrind, because Valgrind doesn't understand slide.
4973 # See the similar mac_pie/release_valgrind_build check
4974 # below.
[email protected]081c0342011-08-24 14:59:134975 'change_mach_o_flags_options': [
[email protected]081c0342011-08-24 14:59:134976 '--no-pie',
4977 ],
4978 }],
4979 ],
[email protected]6303fed2011-08-11 01:12:104980 },
[email protected]8c40f322011-08-24 03:33:364981 'postbuild_name': 'Change Mach-O Flags',
4982 'action': [
4983 '<(change_mach_o_flags_path)',
[email protected]081c0342011-08-24 14:59:134984 '>@(change_mach_o_flags_options)',
[email protected]8c40f322011-08-24 03:33:364985 ],
[email protected]6303fed2011-08-11 01:12:104986 },
4987 ],
treib0b804d02014-09-01 17:06:484988 'conditions': [
4989 ['asan==1', {
4990 'variables': {
4991 'asan_saves_file': 'asan.saves',
4992 },
4993 'xcode_settings': {
4994 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)',
4995 },
4996 }],
4997 ],
[email protected]162407f2011-09-08 15:33:174998 'target_conditions': [
4999 ['mac_pie==1 and release_valgrind_build==0', {
5000 # Turn on position-independence (ASLR) for executables. When
5001 # PIE is on for the Chrome executables, the framework will
5002 # also be subject to ASLR.
5003 # Don't do this when building for Valgrind, because Valgrind
5004 # doesn't understand slide. TODO: Make Valgrind on Mac OS X
5005 # understand slide, and get rid of the Valgrind check.
5006 'xcode_settings': {
5007 'OTHER_LDFLAGS': [
5008 '-Wl,-pie', # Position-independent executable (MH_PIE)
5009 ],
5010 },
5011 }],
5012 ],
[email protected]6a0242bc2011-07-01 00:34:465013 }],
[email protected]9a5e72862010-09-02 16:16:585014 ['(_type=="executable" or _type=="shared_library" or \
5015 _type=="loadable_module") and mac_strip!=0', {
[email protected]24700642009-06-01 16:01:205016 'target_conditions': [
5017 ['mac_real_dsym == 1', {
5018 # To get a real .dSYM bundle produced by dsymutil, set the
5019 # debug information format to dwarf-with-dsym. Since
5020 # strip_from_xcode will not be used, set Xcode to do the
5021 # stripping as well.
5022 'configurations': {
[email protected]5153767c2009-12-22 01:52:505023 'Release_Base': {
[email protected]24700642009-06-01 16:01:205024 'xcode_settings': {
5025 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
5026 'DEPLOYMENT_POSTPROCESSING': 'YES',
5027 'STRIP_INSTALLED_PRODUCT': 'YES',
[email protected]e14a9f92009-08-05 19:26:075028 'target_conditions': [
[email protected]c2111422010-06-01 18:30:255029 ['_type=="shared_library" or _type=="loadable_module"', {
[email protected]e14a9f92009-08-05 19:26:075030 # The Xcode default is to strip debugging symbols
5031 # only (-S). Local symbols should be stripped as
5032 # well, which will be handled by -x. Xcode will
5033 # continue to insert -S when stripping even when
5034 # additional flags are added with STRIPFLAGS.
5035 'STRIPFLAGS': '-x',
[email protected]ed7e83692012-12-24 10:13:405036 }], # _type=="shared_library" or _type=="loadable_module"
treib0b804d02014-09-01 17:06:485037 ['_type=="executable"', {
5038 'conditions': [
5039 ['asan==1', {
5040 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)',
5041 }]
5042 ],
5043 }], # _type=="executable" and asan==1
[email protected]e14a9f92009-08-05 19:26:075044 ], # target_conditions
5045 }, # xcode_settings
5046 }, # configuration "Release"
5047 }, # configurations
[email protected]24700642009-06-01 16:01:205048 }, { # mac_real_dsym != 1
5049 # To get a fast fake .dSYM bundle, use a post-build step to
5050 # produce the .dSYM and strip the executable. strip_from_xcode
5051 # only operates in the Release configuration.
5052 'postbuilds': [
5053 {
5054 'variables': {
5055 # Define strip_from_xcode in a variable ending in _path
5056 # so that gyp understands it's a path and performs proper
5057 # relativization during dict merging.
5058 'strip_from_xcode_path': 'mac/strip_from_xcode',
5059 },
5060 'postbuild_name': 'Strip If Needed',
5061 'action': ['<(strip_from_xcode_path)'],
5062 },
[email protected]e14a9f92009-08-05 19:26:075063 ], # postbuilds
5064 }], # mac_real_dsym
5065 ], # target_conditions
[email protected]9a5e72862010-09-02 16:16:585066 }], # (_type=="executable" or _type=="shared_library" or
5067 # _type=="loadable_module") and mac_strip!=0
[email protected]e14a9f92009-08-05 19:26:075068 ], # target_conditions
5069 }, # target_defaults
5070 }], # OS=="mac"
[email protected]1e013672012-06-29 22:12:205071 ['OS=="ios"', {
5072 'target_defaults': {
5073 'xcode_settings' : {
[email protected]e31ef5b2013-05-21 11:08:495074 # TODO(stuartmorgan): switch to c++0x (see TODOs in the clang
5075 # section above).
5076 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x',
[email protected]ce2cad72014-02-13 18:17:355077
[email protected]ce2cad72014-02-13 18:17:355078 'conditions': [
[email protected]fe329272014-03-12 19:06:575079 # Older Xcodes do not support -Wno-deprecated-register, so pass an
5080 # additional flag to suppress the "unknown compiler option" error.
5081 # Restrict this flag to builds that are either compiling with Xcode
5082 # or compiling with Xcode's Clang. This will allow Ninja builds to
5083 # continue failing on unknown compiler options.
5084 # TODO(rohitrao): This flag is temporary and should be removed as
5085 # soon as the iOS bots are updated to use Xcode 5.1.
[email protected]d04384ab2014-03-13 20:46:015086 ['clang_xcode==1', {
[email protected]fe329272014-03-12 19:06:575087 'WARNING_CFLAGS': [
5088 '-Wno-unknown-warning-option',
5089 ],
5090 }],
5091
5092 # Limit the valid architectures depending on "target_subarch".
5093 # This need to include the "arm" architectures but also the "x86"
5094 # ones (they are used when building for the simulator).
[email protected]ce2cad72014-02-13 18:17:355095 ['target_subarch=="arm32"', {
Stuart Morgan7c31daa2014-08-29 13:59:455096 'VALID_ARCHS': ['armv7', 'i386'],
[email protected]ce2cad72014-02-13 18:17:355097 }],
5098 ['target_subarch=="arm64"', {
5099 'VALID_ARCHS': ['arm64', 'x86_64'],
5100 }],
5101 ['target_subarch=="both"', {
Stuart Morgan7c31daa2014-08-29 13:59:455102 'VALID_ARCHS': ['arm64', 'armv7', 'x86_64', 'i386'],
[email protected]ce2cad72014-02-13 18:17:355103 }],
[email protected]480c6672014-08-04 11:28:065104 ['use_system_libcxx==1', {
5105 'target_conditions': [
5106 # Only use libc++ when building target for iOS not when building
5107 # tools for the host (OS X) as Mac targets OS X SDK 10.6 which
5108 # does not support libc++.
5109 ['_toolset=="target"', {
5110 'CLANG_CXX_LIBRARY': 'libc++', # -stdlib=libc++
5111 }]
5112 ],
[email protected]7c613ee92014-08-14 21:22:315113 }, {
5114 # The default for deployment target of 7.0+ is libc++, so force
5115 # the old behavior unless libc++ is enabled.
5116 'CLANG_CXX_LIBRARY': 'libstdc++', # -stdlib=libstdc++
[email protected]480c6672014-08-04 11:28:065117 }],
[email protected]ce2cad72014-02-13 18:17:355118 ],
[email protected]1e013672012-06-29 22:12:205119 },
5120 'target_conditions': [
[email protected]296bc452013-05-13 21:29:475121 ['_toolset=="host"', {
5122 'xcode_settings': {
5123 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
5124 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
[email protected]ce2cad72014-02-13 18:17:355125 'VALID_ARCHS': [
5126 'x86_64',
5127 ],
[email protected]c3c372e2013-10-29 22:31:515128 'ARCHS': [
[email protected]ce2cad72014-02-13 18:17:355129 'x86_64',
[email protected]c3c372e2013-10-29 22:31:515130 ],
[email protected]296bc452013-05-13 21:29:475131 },
5132 }],
5133 ['_toolset=="target"', {
5134 'xcode_settings': {
5135 # This section should be for overriding host settings. But,
5136 # since we can't negate the iphone deployment target above, we
5137 # instead set it here for target only.
5138 'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)',
[email protected]ce2cad72014-02-13 18:17:355139 'ARCHS': ['$(ARCHS_STANDARD_INCLUDING_64_BIT)'],
[email protected]296bc452013-05-13 21:29:475140 },
5141 }],
[email protected]1e013672012-06-29 22:12:205142 ['_type=="executable"', {
5143 'configurations': {
5144 'Release_Base': {
5145 'xcode_settings': {
5146 'DEPLOYMENT_POSTPROCESSING': 'YES',
5147 'STRIP_INSTALLED_PRODUCT': 'YES',
5148 },
5149 },
[email protected]3c6aa862012-11-05 17:11:445150 'Debug_Base': {
5151 'xcode_settings': {
5152 # Remove dSYM to reduce build time.
5153 'DEBUG_INFORMATION_FORMAT': 'dwarf',
5154 },
5155 },
[email protected]1e013672012-06-29 22:12:205156 },
[email protected]c3c372e2013-10-29 22:31:515157 'xcode_settings': {
5158 'conditions': [
5159 ['chromium_ios_signing', {
5160 # iOS SDK wants everything for device signed.
5161 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer',
5162 }, {
5163 'CODE_SIGNING_REQUIRED': 'NO',
5164 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
5165 }],
5166 ],
5167 },
[email protected]1e013672012-06-29 22:12:205168 }],
5169 ], # target_conditions
5170 }, # target_defaults
5171 }], # OS=="ios"
[email protected]2f80c312009-02-25 21:26:555172 ['OS=="win"', {
5173 'target_defaults': {
5174 'defines': [
[email protected]8e345da2012-07-01 22:10:305175 '_WIN32_WINNT=0x0602',
5176 'WINVER=0x0602',
[email protected]2f80c312009-02-25 21:26:555177 'WIN32',
5178 '_WINDOWS',
[email protected]2f80c312009-02-25 21:26:555179 'NOMINMAX',
[email protected]e3116282011-08-13 00:52:285180 'PSAPI_VERSION=1',
[email protected]2f80c312009-02-25 21:26:555181 '_CRT_RAND_S',
5182 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
5183 'WIN32_LEAN_AND_MEAN',
[email protected]7a812dd62010-06-30 18:52:275184 '_ATL_NO_OPENGL',
[email protected]2b4465502014-07-25 21:02:285185 # _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings.
5186 '_HAS_EXCEPTIONS=0',
[email protected]2f80c312009-02-25 21:26:555187 ],
[email protected]8974e042010-06-21 18:06:525188 'conditions': [
[email protected]2212d272011-12-20 21:37:375189 ['buildtype=="Official"', {
5190 # In official builds, targets can self-select an optimization
5191 # level by defining a variable named 'optimize', and setting it
5192 # to one of
5193 # - "size", optimizes for minimal code size - the default.
5194 # - "speed", optimizes for speed over code size.
5195 # - "max", whole program optimization and link-time code
5196 # generation. This is very expensive and should be used
5197 # sparingly.
5198 'variables': {
5199 'optimize%': 'size',
5200 },
[email protected]72589062014-03-14 16:48:305201 'msvs_settings': {
5202 'VCLinkerTool': {
5203 # Set /LTCG for the official builds.
5204 'LinkTimeCodeGeneration': '1',
5205 },
5206 },
[email protected]2212d272011-12-20 21:37:375207 'target_conditions': [
5208 ['optimize=="size"', {
5209 'msvs_settings': {
5210 'VCCLCompilerTool': {
5211 # 1, optimizeMinSpace, Minimize Size (/O1)
5212 'Optimization': '1',
5213 # 2, favorSize - Favor small code (/Os)
5214 'FavorSizeOrSpeed': '2',
5215 },
5216 },
5217 },
5218 ],
5219 ['optimize=="speed"', {
5220 'msvs_settings': {
5221 'VCCLCompilerTool': {
5222 # 2, optimizeMaxSpeed, Maximize Speed (/O2)
5223 'Optimization': '2',
5224 # 1, favorSpeed - Favor fast code (/Ot)
5225 'FavorSizeOrSpeed': '1',
5226 },
5227 },
5228 },
5229 ],
5230 ['optimize=="max"', {
[email protected]cb875c02014-06-12 18:06:315231 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO
5232 # builds. Probably anything that this would catch that
5233 # wouldn't be caught in a normal build isn't going to
5234 # actually be a bug, so the incremental value of C4702 for
5235 # PGO builds is likely very small.
5236 'msvs_disabled_warnings': [
5237 4702
5238 ],
[email protected]2212d272011-12-20 21:37:375239 'msvs_settings': {
5240 'VCCLCompilerTool': {
5241 # 2, optimizeMaxSpeed, Maximize Speed (/O2)
5242 'Optimization': '2',
5243 # 1, favorSpeed - Favor fast code (/Ot)
5244 'FavorSizeOrSpeed': '1',
5245 # This implies link time code generation.
5246 'WholeProgramOptimization': 'true',
5247 },
5248 },
5249 },
5250 ],
5251 ],
5252 },
5253 ],
[email protected]3e2648a2011-03-21 20:58:505254 ['secure_atl', {
5255 'defines': [
5256 '_SECURE_ATL',
5257 ],
5258 }],
[email protected]54184ce72012-10-18 07:11:265259 ['msvs_express', {
5260 'configurations': {
5261 'x86_Base': {
5262 'msvs_settings': {
5263 'VCLinkerTool': {
5264 'AdditionalLibraryDirectories':
5265 ['<(windows_driver_kit_path)/lib/ATL/i386'],
5266 },
5267 'VCLibrarianTool': {
5268 'AdditionalLibraryDirectories':
5269 ['<(windows_driver_kit_path)/lib/ATL/i386'],
5270 },
5271 },
5272 },
5273 'x64_Base': {
5274 'msvs_settings': {
5275 'VCLibrarianTool': {
5276 'AdditionalLibraryDirectories':
5277 ['<(windows_driver_kit_path)/lib/ATL/amd64'],
5278 },
5279 'VCLinkerTool': {
5280 'AdditionalLibraryDirectories':
5281 ['<(windows_driver_kit_path)/lib/ATL/amd64'],
5282 },
5283 },
5284 },
5285 },
[email protected]0a42e9002014-05-24 02:35:265286 # https://code.google.com/p/chromium/issues/detail?id=372451#c20
5287 # Warning 4702 ("Unreachable code") should be re-enabled once
5288 # Express users are updated to VS2013 Update 2.
5289 'msvs_disabled_warnings': [
5290 4702
5291 ],
[email protected]54184ce72012-10-18 07:11:265292 'msvs_settings': {
scottmg4f828c942014-08-29 04:11:075293 'VCCLCompilerTool': {
5294 'AdditionalOptions!': [
5295 '/Zc:inline', # Not supported on non-updated Express.
5296 ],
5297 },
[email protected]54184ce72012-10-18 07:11:265298 'VCLinkerTool': {
5299 # Explicitly required when using the ATL with express
5300 'AdditionalDependencies': ['atlthunk.lib'],
5301
5302 # ATL 8.0 included in WDK 7.1 makes the linker to generate
5303 # almost eight hundred LNK4254 and LNK4078 warnings:
5304 # - warning LNK4254: section 'ATL' (50000040) merged into
5305 # '.rdata' (40000040) with different attributes
5306 # - warning LNK4078: multiple 'ATL' sections found with
5307 # different attributes
5308 'AdditionalOptions': ['/ignore:4254', '/ignore:4078'],
5309 },
5310 },
5311 'msvs_system_include_dirs': [
5312 '<(windows_driver_kit_path)/inc/atl71',
5313 '<(windows_driver_kit_path)/inc/mfc42',
5314 ],
[email protected]3f3f45f2013-10-28 19:30:435315 }],
[email protected]8974e042010-06-21 18:06:525316 ],
[email protected]5b5ca7cb2009-07-20 23:00:205317 'msvs_system_include_dirs': [
[email protected]1ab48032012-07-02 21:48:055318 '<(windows_sdk_path)/Include/shared',
5319 '<(windows_sdk_path)/Include/um',
5320 '<(windows_sdk_path)/Include/winrt',
[email protected]2f80c312009-02-25 21:26:555321 '$(VSInstallDir)/VC/atlmfc/include',
5322 ],
[email protected]bab6e232013-11-27 22:52:395323 'msvs_cygwin_shell': 0,
[email protected]0a42e9002014-05-24 02:35:265324 'msvs_disabled_warnings': [
[email protected]5a3c1f062014-07-26 00:01:535325 # C4127: conditional expression is constant
5326 # This warning can in theory catch dead code and other problems, but
5327 # triggers in far too many desirable cases where the conditional
5328 # expression is either set by macros or corresponds some legitimate
5329 # compile-time constant expression (due to constant template args,
5330 # conditionals comparing the sizes of different types, etc.). Some of
5331 # these can be worked around, but it's not worth it.
5332 4127,
5333
5334 # C4351: new behavior: elements of array 'array' will be default
5335 # initialized
5336 # This is a silly "warning" that basically just alerts you that the
5337 # compiler is going to actually follow the language spec like it's
5338 # supposed to, instead of not following it like old buggy versions
5339 # did. There's absolutely no reason to turn this on.
5340 4351,
5341
5342 # C4355: 'this': used in base member initializer list
5343 # It's commonly useful to pass |this| to objects in a class'
5344 # initializer list. While this warning can catch real bugs, most of
5345 # the time the constructors in question don't attempt to call methods
5346 # on the passed-in pointer (until later), and annotating every legit
5347 # usage of this is simply more hassle than the warning is worth.
5348 4355,
5349
5350 # C4503: 'identifier': decorated name length exceeded, name was
5351 # truncated
5352 # This only means that some long error messages might have truncated
5353 # identifiers in the presence of lots of templates. It has no effect
5354 # on program correctness and there's no real reason to waste time
5355 # trying to prevent it.
5356 4503,
[email protected]480c6672014-08-04 11:28:065357
[email protected]5a3c1f062014-07-26 00:01:535358 # C4611: interaction between 'function' and C++ object destruction is
5359 # non-portable
5360 # This warning is unavoidable when using e.g. setjmp/longjmp. MSDN
5361 # suggests using exceptions instead of setjmp/longjmp for C++, but
5362 # Chromium code compiles without exception support. We therefore have
5363 # to use setjmp/longjmp for e.g. JPEG decode error handling, which
5364 # means we have to turn off this warning (and be careful about how
5365 # object destruction happens in such cases).
5366 4611,
5367
[email protected]942c3a60f2011-05-03 02:04:115368 # TODO(maruel): These warnings are level 4. They will be slowly
5369 # removed as code is fixed.
[email protected]5a3c1f062014-07-26 00:01:535370 4100, # Unreferenced formal parameter
5371 4121, # Alignment of a member was sensitive to packing
5372 4189, # Local variable is initialized but not referenced
5373 4244, # Conversion from 'type1' to 'type2', possible loss of data
5374 4481, # Nonstandard extension used: override specifier 'keyword'
5375 4505, # Unreferenced local function has been removed
5376 4510, # Default constructor could not be generated
5377 4512, # Assignment operator could not be generated
5378 4610, # Object can never be instantiated
[email protected]942c3a60f2011-05-03 02:04:115379 ],
[email protected]2f80c312009-02-25 21:26:555380 'msvs_settings': {
5381 'VCCLCompilerTool': {
[email protected]e9b96bb2012-09-07 01:10:445382 'AdditionalOptions': ['/MP'],
[email protected]2f80c312009-02-25 21:26:555383 'MinimalRebuild': 'false',
[email protected]2f80c312009-02-25 21:26:555384 'BufferSecurityCheck': 'true',
5385 'EnableFunctionLevelLinking': 'true',
5386 'RuntimeTypeInfo': 'false',
[email protected]942c3a60f2011-05-03 02:04:115387 'WarningLevel': '4',
[email protected]2f80c312009-02-25 21:26:555388 'WarnAsError': 'true',
5389 'DebugInformationFormat': '3',
[email protected]2b4465502014-07-25 21:02:285390 # ExceptionHandling must match _HAS_EXCEPTIONS above.
5391 'ExceptionHandling': '0',
[email protected]2f80c312009-02-25 21:26:555392 },
5393 'VCLibrarianTool': {
[email protected]1f9471a2010-01-04 06:40:165394 'AdditionalOptions': ['/ignore:4221'],
[email protected]a78da50e2010-06-09 21:31:375395 'AdditionalLibraryDirectories': [
[email protected]1ab48032012-07-02 21:48:055396 '<(windows_sdk_path)/Lib/win8/um/x86',
[email protected]a78da50e2010-06-09 21:31:375397 ],
[email protected]2f80c312009-02-25 21:26:555398 },
5399 'VCLinkerTool': {
[email protected]2f80c312009-02-25 21:26:555400 'AdditionalDependencies': [
5401 'wininet.lib',
[email protected]b1d8c252011-01-13 20:27:505402 'dnsapi.lib',
[email protected]2f80c312009-02-25 21:26:555403 'version.lib',
5404 'msimg32.lib',
5405 'ws2_32.lib',
5406 'usp10.lib',
5407 'psapi.lib',
[email protected]96fd0032009-04-24 00:13:085408 'dbghelp.lib',
[email protected]dfdf7ee2011-04-28 18:51:485409 'winmm.lib',
5410 'shlwapi.lib',
[email protected]2f80c312009-02-25 21:26:555411 ],
[email protected]a78da50e2010-06-09 21:31:375412 'AdditionalLibraryDirectories': [
[email protected]1ab48032012-07-02 21:48:055413 '<(windows_sdk_path)/Lib/win8/um/x86',
[email protected]a78da50e2010-06-09 21:31:375414 ],
[email protected]2f80c312009-02-25 21:26:555415 'GenerateDebugInformation': 'true',
5416 'MapFileName': '$(OutDir)\\$(TargetName).map',
5417 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
[email protected]2f80c312009-02-25 21:26:555418 'FixedBaseAddress': '1',
[email protected]825ff8d2009-05-22 01:40:485419 # SubSystem values:
5420 # 0 == not set
5421 # 1 == /SUBSYSTEM:CONSOLE
5422 # 2 == /SUBSYSTEM:WINDOWS
5423 # Most of the executables we'll ever create are tests
5424 # and utilities with console output.
5425 'SubSystem': '1',
[email protected]2f80c312009-02-25 21:26:555426 },
5427 'VCMIDLTool': {
5428 'GenerateStublessProxies': 'true',
[email protected]279904d2012-03-31 00:03:095429 'TypeLibraryName': '$(InputName).tlb',
5430 'OutputDirectory': '$(IntDir)',
5431 'HeaderFileName': '$(InputName).h',
[email protected]4fdb3cc2012-04-07 01:49:335432 'DLLDataFileName': '$(InputName).dlldata.c',
[email protected]279904d2012-03-31 00:03:095433 'InterfaceIdentifierFileName': '$(InputName)_i.c',
5434 'ProxyFileName': '$(InputName)_p.c',
[email protected]2f80c312009-02-25 21:26:555435 },
5436 'VCResourceCompilerTool': {
5437 'Culture' : '1033',
[email protected]4d91cbc2010-05-07 20:41:385438 'AdditionalIncludeDirectories': [
5439 '<(DEPTH)',
5440 '<(SHARED_INTERMEDIATE_DIR)',
5441 ],
[email protected]2f80c312009-02-25 21:26:555442 },
[email protected]5d60b0b2013-07-30 20:24:305443 'target_conditions': [
[email protected]2b52f992014-02-26 19:09:475444 ['_type=="executable"', {
5445 'VCManifestTool': {
5446 'EmbedManifest': 'true',
5447 },
5448 }],
[email protected]5d60b0b2013-07-30 20:24:305449 ['_type=="executable" and ">(win_exe_compatibility_manifest)"!=""', {
5450 'VCManifestTool': {
5451 'AdditionalManifestFiles': [
5452 '>(win_exe_compatibility_manifest)',
5453 ],
5454 },
5455 }],
[email protected]5d60b0b2013-07-30 20:24:305456 ],
[email protected]8efc26082014-01-24 13:26:355457 'conditions': [
5458 ['clang==1', {
5459 # Building with Clang on Windows is a work in progress and very
5460 # experimental. See crbug.com/82385.
5461 'VCCLCompilerTool': {
5462 'WarnAsError': 'false',
5463 'RuntimeTypeInfo': 'false',
5464 'AdditionalOptions': [
[email protected]49ee7ef2014-04-12 03:07:465465 '-fmsc-version=1800',
[email protected]8efc26082014-01-24 13:26:355466 '/fallback',
5467
5468 # Many files use intrinsics without including this header.
5469 # TODO(hans): Fix those files, or move this to sub-GYPs.
5470 '/FIIntrin.h',
5471
5472 # TODO(hans): Make this list shorter eventually.
5473 '-Qunused-arguments',
5474 '-Wno-c++11-compat-deprecated-writable-strings',
[email protected]8efc26082014-01-24 13:26:355475 '-Wno-deprecated-declarations',
[email protected]8efc26082014-01-24 13:26:355476 '-Wno-empty-body',
5477 '-Wno-enum-conversion',
[email protected]609d1c02014-02-11 02:05:135478 '-Wno-extra-tokens',
5479 '-Wno-ignored-attributes',
[email protected]8efc26082014-01-24 13:26:355480 '-Wno-incompatible-pointer-types',
[email protected]609d1c02014-02-11 02:05:135481 '-Wno-int-to-void-pointer-cast',
5482 '-Wno-invalid-noreturn',
[email protected]8efc26082014-01-24 13:26:355483 '-Wno-logical-op-parentheses',
5484 '-Wno-microsoft',
5485 '-Wno-missing-braces',
[email protected]609d1c02014-02-11 02:05:135486 '-Wno-missing-declarations',
[email protected]8efc26082014-01-24 13:26:355487 '-Wno-msvc-include',
5488 '-Wno-null-dereference',
5489 '-Wno-overloaded-virtual',
5490 '-Wno-parentheses',
5491 '-Wno-pointer-sign',
5492 '-Wno-reorder',
5493 '-Wno-return-type-c-linkage',
5494 '-Wno-self-assign',
[email protected]609d1c02014-02-11 02:05:135495 '-Wno-sometimes-uninitialized',
[email protected]8efc26082014-01-24 13:26:355496 '-Wno-switch',
5497 '-Wno-tautological-compare',
5498 '-Wno-unknown-pragmas',
5499 '-Wno-unsequenced',
5500 '-Wno-unused-function',
5501 '-Wno-unused-private-field',
5502 '-Wno-unused-value',
5503 '-Wno-unused-variable',
Nico Weber58972722014-09-06 20:53:195504 '-Wno-unused-local-typedef', # http://crbug.com/411648
[email protected]8efc26082014-01-24 13:26:355505 ],
5506 },
5507 }],
[email protected]2a794002014-02-22 00:27:115508 ['asan==1', {
5509 # ASan on Windows is a work in progress and very experimental.
5510 # See crbug.com/345874.
5511 'VCCLCompilerTool': {
5512 'AdditionalOptions': [
5513 '-fsanitize=address',
5514 ],
[email protected]4c1abdb2014-05-16 17:03:575515 'AdditionalIncludeDirectories': [
5516 # MSVC needs to be able to find the sanitizer headers when
5517 # invoked via /fallback. This is critical for using macros
5518 # like ASAN_UNPOISON_MEMORY_REGION in files where we fall
5519 # back.
[email protected]e7a1cba2014-08-04 15:58:295520 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.6.0/include_sanitizer',
[email protected]4c1abdb2014-05-16 17:03:575521 ],
[email protected]2a794002014-02-22 00:27:115522 },
5523 'VCLinkerTool': {
5524 'AdditionalLibraryDirectories': [
5525 # TODO(hans): If make_clang_dir is absolute, this breaks.
[email protected]e7a1cba2014-08-04 15:58:295526 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.6.0/lib/windows',
[email protected]2a794002014-02-22 00:27:115527 ],
5528 },
5529 'target_conditions': [
timurrrr6e2f3e262014-08-29 16:51:525530 ['component=="shared_library"', {
5531 'VCLinkerTool': {
5532 'AdditionalDependencies': [
5533 'clang_rt.asan_dynamic-i386.lib',
5534 'clang_rt.asan_uar_thunk-i386.lib',
5535 ],
5536 },
5537 }],
5538 ['_type=="executable" and component=="static_library"', {
[email protected]2a794002014-02-22 00:27:115539 'VCLinkerTool': {
5540 'AdditionalDependencies': [
5541 'clang_rt.asan-i386.lib',
5542 ],
5543 },
5544 }],
timurrrr6e2f3e262014-08-29 16:51:525545 ['(_type=="shared_library" or _type=="loadable_module") and component=="static_library"', {
[email protected]2a794002014-02-22 00:27:115546 'VCLinkerTool': {
5547 'AdditionalDependencies': [
5548 'clang_rt.asan_dll_thunk-i386.lib',
5549 ],
5550 },
5551 }],
5552 ],
5553 }],
[email protected]8efc26082014-01-24 13:26:355554 ],
[email protected]2f80c312009-02-25 21:26:555555 },
5556 },
5557 }],
[email protected]79e2336c2011-05-12 18:18:345558 ['disable_nacl==1', {
[email protected]d8c7cbcc2009-10-02 19:00:315559 'target_defaults': {
5560 'defines': [
5561 'DISABLE_NACL',
5562 ],
5563 },
5564 }],
[email protected]cfbf9bc2009-12-07 22:07:565565 ['OS=="win" and msvs_use_common_linker_extras', {
[email protected]48c7af72009-07-03 22:00:195566 'target_defaults': {
5567 'msvs_settings': {
5568 'VCLinkerTool': {
[email protected]48c7af72009-07-03 22:00:195569 'DelayLoadDLLs': [
5570 'dbghelp.dll',
5571 'dwmapi.dll',
[email protected]e15a4ce52012-01-04 20:11:015572 'shell32.dll',
[email protected]48c7af72009-07-03 22:00:195573 'uxtheme.dll',
5574 ],
5575 },
5576 },
[email protected]ef4fa4072009-12-04 22:46:505577 'configurations': {
[email protected]5153767c2009-12-22 01:52:505578 'x86_Base': {
[email protected]ef4fa4072009-12-04 22:46:505579 'msvs_settings': {
5580 'VCLinkerTool': {
[email protected]1f9471a2010-01-04 06:40:165581 'AdditionalOptions': [
5582 '/safeseh',
[email protected]7cf23ce62012-01-13 02:43:335583 '/dynamicbase',
[email protected]1f9471a2010-01-04 06:40:165584 '/ignore:4199',
5585 '/ignore:4221',
5586 '/nxcompat',
[email protected]c3fcbd122013-06-20 10:47:435587 ],
5588 'conditions': [
[email protected]1612e552014-02-15 04:49:185589 ['syzyasan==0', {
[email protected]c3fcbd122013-06-20 10:47:435590 'AdditionalOptions': ['/largeaddressaware'],
5591 }],
[email protected]1f9471a2010-01-04 06:40:165592 ],
[email protected]ef4fa4072009-12-04 22:46:505593 },
5594 },
5595 },
[email protected]5153767c2009-12-22 01:52:505596 'x64_Base': {
[email protected]ef4fa4072009-12-04 22:46:505597 'msvs_settings': {
5598 'VCLinkerTool': {
[email protected]1f9471a2010-01-04 06:40:165599 'AdditionalOptions': [
[email protected]ef4fa4072009-12-04 22:46:505600 # safeseh is not compatible with x64
[email protected]7cf23ce62012-01-13 02:43:335601 '/dynamicbase',
[email protected]1f9471a2010-01-04 06:40:165602 '/ignore:4199',
5603 '/ignore:4221',
5604 '/nxcompat',
5605 ],
[email protected]ef4fa4072009-12-04 22:46:505606 },
5607 },
5608 },
5609 },
[email protected]48c7af72009-07-03 22:00:195610 },
5611 }],
[email protected]9821d0d2010-04-16 22:40:375612 ['enable_new_npdevice_api==1', {
5613 'target_defaults': {
5614 'defines': [
5615 'ENABLE_NEW_NPDEVICE_API',
5616 ],
5617 },
5618 }],
[email protected]5f683172013-04-27 01:53:195619 # Don't warn about the "typedef 'foo' locally defined but not used"
fdegans6b767132014-09-09 10:09:295620 # for gcc 4.8 and higher.
[email protected]5f683172013-04-27 01:53:195621 # TODO: remove this flag once all builds work. See crbug.com/227506
[email protected]33668ca62014-07-10 18:01:575622 ['gcc_version>=48 and clang==0', {
[email protected]5f683172013-04-27 01:53:195623 'target_defaults': {
5624 'cflags': [
5625 '-Wno-unused-local-typedefs',
5626 ],
5627 },
5628 }],
[email protected]acad4962014-08-04 19:05:025629 ['gcc_version>=48 and clang==0 and host_clang==1', {
5630 'target_defaults': {
5631 'target_conditions': [
5632 ['_toolset=="host"', { 'cflags!': [ '-Wno-unused-local-typedefs' ]}],
5633 ],
5634 },
5635 }],
[email protected]7a4c78e02014-05-12 11:10:165636 # We need a special case to handle the android webview build on mac because
5637 # the host gcc there doesn't accept this flag, but the target gcc may
5638 # require it.
5639 ['gcc_version>=48 and android_webview_build==1 and host_os=="mac"', {
5640 'target_defaults': {
5641 'target_conditions': [
[email protected]f2cef302014-05-23 13:34:585642 ['_toolset=="host"', {
[email protected]7a4c78e02014-05-12 11:10:165643 'cflags!': [
5644 '-Wno-unused-local-typedefs',
5645 ],
5646 }],
5647 ],
5648 },
5649 }],
[email protected]ce2cad72014-02-13 18:17:355650 ['clang==1 and ((OS!="mac" and OS!="ios") or clang_xcode==0) '
5651 'and OS!="win"', {
[email protected]e71a3622013-12-04 07:32:415652 'make_global_settings': [
5653 ['CC', '<(make_clang_dir)/bin/clang'],
5654 ['CXX', '<(make_clang_dir)/bin/clang++'],
5655 ['CC.host', '$(CC)'],
5656 ['CXX.host', '$(CXX)'],
[email protected]34f40892011-09-06 21:53:305657 ],
5658 }],
[email protected]6e354d42014-01-29 01:59:215659 ['clang==1 and OS=="win"', {
5660 'make_global_settings': [
5661 # On Windows, gyp's ninja generator only looks at CC.
5662 ['CC', '<(make_clang_dir)/bin/clang-cl'],
5663 ],
5664 }],
[email protected]615fa6642012-08-14 19:17:075665 ['OS=="android" and clang==0', {
[email protected]d10e2cc2012-03-20 10:45:275666 # Hardcode the compiler names in the Makefile so that
5667 # it won't depend on the environment at make time.
[email protected]7fc96c82012-07-24 18:15:115668 'make_global_settings': [
[email protected]e71a3622013-12-04 07:32:415669 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
5670 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'],
[email protected]acad4962014-08-04 19:05:025671 ['CC.host', '<(host_cc)'],
5672 ['CXX.host', '<(host_cxx)'],
[email protected]d10e2cc2012-03-20 10:45:275673 ],
5674 }],
[email protected]23eea4a42013-04-27 04:10:265675 ['OS=="linux" and target_arch=="mipsel"', {
[email protected]eb5f1672013-01-31 07:56:465676 'make_global_settings': [
5677 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
5678 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
[email protected]acad4962014-08-04 19:05:025679 ['CC.host', '<(host_cc)'],
5680 ['CXX.host', '<(host_cxx)'],
[email protected]eb5f1672013-01-31 07:56:465681 ],
5682 }],
[email protected]d69a73b2014-07-29 16:50:445683 ['OS=="linux" and target_arch=="arm" and host_arch!="arm" and chromeos==0 and clang==0', {
5684 # Set default ARM cross compiling on linux. These can be overridden
5685 # using CC/CXX/etc environment variables.
5686 'make_global_settings': [
5687 ['CC', '<!(which arm-linux-gnueabihf-gcc)'],
5688 ['CXX', '<!(which arm-linux-gnueabihf-g++)'],
[email protected]acad4962014-08-04 19:05:025689 ['CC.host', '<(host_cc)'],
5690 ['CXX.host', '<(host_cxx)'],
[email protected]d69a73b2014-07-29 16:50:445691 ],
5692 }],
[email protected]e71a3622013-12-04 07:32:415693
5694 # TODO(yyanagisawa): supports GENERATOR==make
5695 # make generator doesn't support CC_wrapper without CC
5696 # in make_global_settings yet.
[email protected]c80075412014-02-27 18:46:265697 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', {
[email protected]e71a3622013-12-04 07:32:415698 'make_global_settings': [
5699 ['CC_wrapper', '<(gomadir)/gomacc'],
5700 ['CXX_wrapper', '<(gomadir)/gomacc'],
5701 ['CC.host_wrapper', '<(gomadir)/gomacc'],
5702 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
5703 ],
5704 }],
[email protected]2f80c312009-02-25 21:26:555705 ],
5706 'xcode_settings': {
[email protected]0c8ab452009-11-06 21:57:505707 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
5708 # This block adds *project-wide* configuration settings to each project
5709 # file. It's almost always wrong to put things here. Specify your
5710 # custom xcode_settings in target_defaults to add them to targets instead.
5711
[email protected]1e013672012-06-29 22:12:205712 'conditions': [
[email protected]fca3d812012-07-27 00:55:365713 # In an Xcode Project Info window, the "Base SDK for All Configurations"
5714 # setting sets the SDK on a project-wide basis. In order to get the
5715 # configured SDK to show properly in the Xcode UI, SDKROOT must be set
5716 # here at the project level.
[email protected]2c261532012-10-06 00:46:295717 ['OS=="mac"', {
[email protected]fca3d812012-07-27 00:55:365718 'conditions': [
[email protected]2c261532012-10-06 00:46:295719 ['mac_sdk_path==""', {
[email protected]fca3d812012-07-27 00:55:365720 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
[email protected]2c261532012-10-06 00:46:295721 }, {
5722 'SDKROOT': '<(mac_sdk_path)', # -isysroot
[email protected]fca3d812012-07-27 00:55:365723 }],
5724 ],
[email protected]2c261532012-10-06 00:46:295725 }],
5726 ['OS=="ios"', {
5727 'conditions': [
5728 ['ios_sdk_path==""', {
[email protected]0286b6f2013-05-03 11:06:405729 'conditions': [
5730 # TODO(justincohen): Ninja only supports simulator for now.
[email protected]c3c372e2013-10-29 22:31:515731 ['"<(GENERATOR)"=="xcode"', {
[email protected]0286b6f2013-05-03 11:06:405732 'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot
[email protected]187e0e32013-07-18 21:49:385733 }, {
5734 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot
[email protected]0286b6f2013-05-03 11:06:405735 }],
5736 ],
[email protected]2c261532012-10-06 00:46:295737 }, {
5738 'SDKROOT': '<(ios_sdk_path)', # -isysroot
5739 }],
5740 ],
[email protected]1e013672012-06-29 22:12:205741 }],
5742 ['OS=="ios"', {
[email protected]1e013672012-06-29 22:12:205743 # Target both iPhone and iPad.
5744 'TARGETED_DEVICE_FAMILY': '1,2',
[email protected]72c0d3652013-11-05 19:11:425745 }, { # OS!="ios"
5746 'conditions': [
5747 ['target_arch=="x64"', {
5748 'ARCHS': [
5749 'x86_64'
5750 ],
5751 }],
5752 ['target_arch=="ia32"', {
5753 'ARCHS': [
5754 'i386'
5755 ],
5756 }],
5757 ],
[email protected]d64554012013-10-31 18:40:005758 }],
[email protected]1e013672012-06-29 22:12:205759 ],
[email protected]0c8ab452009-11-06 21:57:505760
[email protected]2f80c312009-02-25 21:26:555761 # The Xcode generator will look for an xcode_settings section at the root
5762 # of each dict and use it to apply settings on a file-wide basis. Most
5763 # settings should not be here, they should be in target-specific
5764 # xcode_settings sections, or better yet, should use non-Xcode-specific
5765 # settings in target dicts. SYMROOT is a special case, because many other
5766 # Xcode variables depend on it, including variables such as
5767 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5768 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5769 # files to appear (when present) in the UI as actual files and not red
5770 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5771 # and therefore SYMROOT, needs to be set at the project level.
[email protected]bfa24b962009-03-02 00:16:165772 'SYMROOT': '<(DEPTH)/xcodebuild',
[email protected]2f80c312009-02-25 21:26:555773 },
[email protected]ee28c9f2009-09-04 01:53:015774}