blob: bcbca123101c405cdcf2f43ddcf8c5aa62a01d1a [file] [log] [blame]
[email protected]cfa2e1102011-04-27 22:30:231# Copyright (c) 2011 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]e72e55b2011-01-06 22:19:3016 # dict that operate on these variables (e.g., for setting 'toolkit_views',
17 # we need to have 'chromeos' already set).
[email protected]e14a9f92009-08-05 19:26:0718 'variables': {
[email protected]e72e55b2011-01-06 22:19:3019 'variables': {
[email protected]bb6aba32011-01-07 19:04:4320 'variables': {
21 # Whether we're building a ChromeOS build.
22 'chromeos%': 0,
[email protected]e72e55b2011-01-06 22:19:3023
[email protected]3fa441d2011-09-18 17:28:5024 # Whether we are using Views Toolkit
25 'toolkit_views%': 0,
26
[email protected]1b546692011-06-30 18:22:3027 # Whether the Views toolkit can use its Pure form when available
28 # or if it must only use GTK (the default at the moment).
29 # This is an intermediate step until all of Views is 'Pure',
30 # at which point we plan to remove those switches.
[email protected]fd88a8842011-09-13 02:50:2231 # This turns on the USE_ONLY_PURE_VIEWS macro.
32 'use_only_pure_views%': 0,
[email protected]1b546692011-06-30 18:22:3033
[email protected]bb6aba32011-01-07 19:04:4334 # Disable touch support by default.
35 'touchui%': 0,
[email protected]9c8a1982011-05-24 23:08:5836
37 # Whether the compositor is enabled on views.
38 'views_compositor%': 0,
[email protected]7de46352011-09-12 15:39:1939
[email protected]e599f0132011-08-24 19:03:3540 # Whether or not we are building with the Aura window manager.
[email protected]41423092011-08-25 15:39:5841 'use_aura%': 0,
[email protected]e0b85a52011-10-06 03:30:4242
43 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/62803
44 'use_openssl%': 0,
[email protected]bb6aba32011-01-07 19:04:4345 },
46 # Copy conditionally-set variables out one scope.
47 'chromeos%': '<(chromeos)',
[email protected]fd88a8842011-09-13 02:50:2248 'use_only_pure_views%': '<(use_only_pure_views)',
[email protected]bb6aba32011-01-07 19:04:4349 'touchui%': '<(touchui)',
[email protected]9c8a1982011-05-24 23:08:5850 'views_compositor%': '<(views_compositor)',
[email protected]41423092011-08-25 15:39:5851 'use_aura%': '<(use_aura)',
[email protected]e0b85a52011-10-06 03:30:4252 'use_openssl%': '<(use_openssl)',
[email protected]e72e55b2011-01-06 22:19:3053
[email protected]332749032011-10-22 00:32:4654 # WebKit compositor for ui
55 'use_webkit_compositor%': 0,
56
[email protected]e72e55b2011-01-06 22:19:3057 # Compute the architecture that we're building on.
58 'conditions': [
[email protected]177cd082011-10-04 18:36:3859 [ 'OS=="win" or OS=="mac"', {
[email protected]c49ab0c2011-05-18 17:25:3760 'host_arch%': 'ia32',
61 }, {
[email protected]79e2336c2011-05-12 18:18:3462 # This handles the Unix platforms for which there is some support.
63 # Anything else gets passed through, which probably won't work very
64 # well; such hosts should pass an explicit target_arch to gyp.
[email protected]e72e55b2011-01-06 22:19:3065 'host_arch%':
[email protected]79e2336c2011-05-12 18:18:3466 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/")',
[email protected]e72e55b2011-01-06 22:19:3067 }],
[email protected]bb6aba32011-01-07 19:04:4368
[email protected]fd88a8842011-09-13 02:50:2269 # Set default value of toolkit_views on for Windows, Chrome OS,
70 # Touch and PureView.
[email protected]3fa441d2011-09-18 17:28:5071 ['OS=="win" or chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', {
[email protected]bb6aba32011-01-07 19:04:4372 'toolkit_views%': 1,
73 }, {
74 'toolkit_views%': 0,
75 }],
[email protected]1b546692011-06-30 18:22:3076
[email protected]3fa441d2011-09-18 17:28:5077 # Views are always Pure in Touch and Aura case.
78 ['touchui==1 or use_aura==1', {
[email protected]fd88a8842011-09-13 02:50:2279 'use_only_pure_views%': 1,
[email protected]1b546692011-06-30 18:22:3080 }, {
[email protected]fd88a8842011-09-13 02:50:2281 'use_only_pure_views%': 0,
[email protected]1b546692011-06-30 18:22:3082 }],
[email protected]8ebc9b42011-07-14 15:22:1883
[email protected]2cc81d32011-10-04 17:03:1884 # Use virtual keyboard by default in TouchUI builds.
85 ['touchui==1', {
86 'use_virtual_keyboard%': 1,
87 }, {
88 'use_virtual_keyboard%': 0,
89 }],
90
[email protected]4916d622011-09-28 23:45:3891 # Use the views compositor when using the Aura window manager or
92 # touch.
93 ['use_aura==1 or touchui==1', {
[email protected]e599f0132011-08-24 19:03:3594 'views_compositor%': 1,
95 }],
[email protected]e72e55b2011-01-06 22:19:3096 ],
97 },
98
99 # Copy conditionally-set variables out one scope.
100 'chromeos%': '<(chromeos)',
101 'touchui%': '<(touchui)',
[email protected]2cc81d32011-10-04 17:03:18102 'use_virtual_keyboard%': '<(use_virtual_keyboard)',
[email protected]e72e55b2011-01-06 22:19:30103 'host_arch%': '<(host_arch)',
[email protected]bb6aba32011-01-07 19:04:43104 'toolkit_views%': '<(toolkit_views)',
[email protected]fd88a8842011-09-13 02:50:22105 'use_only_pure_views%': '<(use_only_pure_views)',
[email protected]9c8a1982011-05-24 23:08:58106 'views_compositor%': '<(views_compositor)',
[email protected]332749032011-10-22 00:32:46107 'use_webkit_compositor%': '<(use_webkit_compositor)',
[email protected]41423092011-08-25 15:39:58108 'use_aura%': '<(use_aura)',
[email protected]e0b85a52011-10-06 03:30:42109 'use_openssl%': '<(use_openssl)',
[email protected]e72e55b2011-01-06 22:19:30110
[email protected]8fb0ef02011-05-20 00:53:50111 # We used to provide a variable for changing how libraries were built.
112 # This variable remains until we can clean up all the users.
113 # This needs to be one nested variables dict in so that dependent
114 # gyp files can make use of it in their outer variables. (Yikes!)
115 # http://code.google.com/p/chromium/issues/detail?id=83308
116 'library%': 'static_library',
117
[email protected]e14a9f92009-08-05 19:26:07118 # Override branding to select the desired branding flavor.
119 'branding%': 'Chromium',
120
121 # Override buildtype to select the desired build flavor.
122 # Dev - everyday build for development/testing
123 # Official - release build (generally implies additional processing)
124 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
125 # conversion is done), some of the things which are now controlled by
126 # 'branding', such as symbol generation, will need to be refactored based
127 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official
128 # builds).
129 'buildtype%': 'Dev',
[email protected]cbd5fd52009-08-26 00:14:27130
[email protected]e72e55b2011-01-06 22:19:30131 # Default architecture we're building for is the architecture we're
132 # building on.
133 'target_arch%': '<(host_arch)',
[email protected]b3f23ba2010-04-26 22:58:17134
[email protected]e72e55b2011-01-06 22:19:30135 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
136 # are built under a chromium full build (1) or a webkit.org chromium
137 # build (0).
138 'inside_chromium_build%': 1,
[email protected]8974e042010-06-21 18:06:52139
[email protected]e72e55b2011-01-06 22:19:30140 # Set to 1 to enable fast builds. It disables debug info for fastest
141 # compilation.
142 'fastbuild%': 0,
[email protected]93012ca2010-08-10 20:10:49143
[email protected]20960e072011-09-20 20:59:01144 # Set to 1 to enable dcheck in release without having to use the flag.
145 'dcheck_always_on%': 0,
146
[email protected]464750f2011-10-24 23:16:18147 # Disable file manager component extension by default.
[email protected]3d38d8e2011-04-16 20:48:51148 'file_manager_extension%': 0,
149
[email protected]32981462011-10-18 07:05:16150 # Enable WebUI TaskManager by default.
151 'webui_task_manager%': 1,
[email protected]8b2e9f392011-08-05 04:00:47152
[email protected]e72e55b2011-01-06 22:19:30153 # Python version.
[email protected]a43c5a02011-05-27 06:54:51154 'python_ver%': '2.6',
[email protected]b3f23ba2010-04-26 22:58:17155
[email protected]e72e55b2011-01-06 22:19:30156 # Set ARM-v7 compilation flags
157 'armv7%': 0,
158
159 # Set Neon compilation flags (only meaningful if armv7==1).
160 'arm_neon%': 1,
161
162 # The system root for cross-compiles. Default: none.
163 'sysroot%': '',
164
[email protected]945361a2011-09-30 04:38:43165 # The system libdir used for this ABI.
166 'system_libdir%': 'lib',
167
[email protected]e72e55b2011-01-06 22:19:30168 # On Linux, we build with sse2 for Chromium builds.
169 'disable_sse2%': 0,
170
171 # Use libjpeg-turbo as the JPEG codec used by Chromium.
[email protected]32e56e52011-02-28 02:28:03172 'use_libjpeg_turbo%': 1,
[email protected]e72e55b2011-01-06 22:19:30173
174 # Variable 'component' is for cases where we would like to build some
175 # components as dynamic shared libraries but still need variable
176 # 'library' for static libraries.
177 # By default, component is set to whatever library is set to and
178 # it can be overriden by the GYP command line or by ~/.gyp/include.gypi.
[email protected]5a547332011-05-19 23:18:53179 'component%': 'static_library',
[email protected]e72e55b2011-01-06 22:19:30180
[email protected]bb6aba32011-01-07 19:04:43181 # Set to select the Title Case versions of strings in GRD files.
182 'use_titlecase_in_grd_files%': 0,
[email protected]63692212010-09-16 00:22:21183
[email protected]98da0042011-02-02 00:10:27184 # Use translations provided by volunteers at launchpad.net. This
185 # currently only works on Linux.
[email protected]00dc155832011-02-01 18:51:19186 'use_third_party_translations%': 0,
187
[email protected]9a425422011-01-11 00:53:18188 # Remoting compilation is enabled by default. Set to 0 to disable.
189 'remoting%': 1,
190
[email protected]5834f4392011-09-13 20:06:17191 # Threaded compositing
192 'use_threaded_compositing%': 0,
193
[email protected]a026daa2011-04-20 15:49:51194 # P2P APIs are compiled in by default. Set to 0 to disable.
195 # Also note that this should be enabled for remoting to compile.
196 'p2p_apis%': 1,
197
[email protected]1ec68c42011-06-01 13:56:25198 # Configuration policy is enabled by default. Set to 0 to disable.
199 'configuration_policy%': 1,
200
[email protected]4b58e7d2011-07-11 10:22:56201 # Safe browsing is compiled in by default. Set to 0 to disable.
202 'safe_browsing%': 1,
203
[email protected]9eb100e2011-10-14 05:08:22204 # Speech input is compiled in by default. Set to 0 to disable.
205 'input_speech%': 1,
206
[email protected]5d451ad2011-02-11 16:43:46207 # If this is set, the clang plugins used on the buildbot will be used.
208 # Run tools/clang/scripts/update.sh to make sure they are compiled.
209 # This causes 'clang_chrome_plugins_flags' to be set.
210 # Has no effect if 'clang' is not set as well.
211 'clang_use_chrome_plugins%': 0,
212
[email protected]92799b632011-08-15 14:33:06213 # Enable building with ASAN (Clang's -fasan option).
214 # -fasan only works with clang, but asan=1 implies clang=1
215 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addresssanitizer
216 'asan%': 0,
217
[email protected]1ad5a7b2011-06-24 03:15:13218 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared
219 # libraries on linux x86-64 and arm, plus ASLR.
220 'linux_fpic%': 1,
221
[email protected]c6a1f94172011-07-05 02:35:00222 # Enable navigator.registerProtocolHandler and supporting UI.
223 'enable_register_protocol_handler%': 1,
224
[email protected]62af76e2011-08-01 02:34:01225 # Enable Web Intents and supporting UI.
226 'enable_web_intents%': 0,
227
[email protected]dda90ae2011-07-19 22:07:48228 # Webrtc compilation is enabled by default. Set to 0 to disable.
229 'enable_webrtc%': 1,
230
[email protected]67c125d2011-10-11 18:58:22231 # PPAPI by default does not support plugins making calls off the main
232 # thread. Set to 1 to turn on experimental support for out-of-process
233 # plugins to make call of the main thread.
234 'enable_pepper_threading%': 0,
235
[email protected]f56797b2011-09-25 00:04:35236 # XInput2 multitouch support is disabled by default (use_xi2_mt=0).
237 # Setting to non-zero value enables XI2 MT. When XI2 MT is enabled,
238 # the input value also defines the required XI2 minor minimum version.
239 # For example, use_xi2_mt=2 means XI2.2 or above version is required.
240 'use_xi2_mt%': 0,
241
[email protected]d5cf9fb2011-09-27 00:15:16242 # Use of precompiled headers on Windows is off by default
243 # because of complications that it can cause with our
244 # infrastructure (trybots etc.). Enable by setting to 1 in
245 # ~/.gyp/include.gypi or via the GYP command line for ~20-25%
246 # faster builds.
247 'chromium_win_pch%': 0,
248
[email protected]bb6aba32011-01-07 19:04:43249 'conditions': [
[email protected]33423fa2011-09-23 18:18:14250 # TODO(epoger): Figure out how to set use_skia=1 for Mac outside of
251 # the 'conditions' clause. Initial attempts resulted in chromium and
252 # webkit disagreeing on its setting.
[email protected]7d7564a12011-06-21 19:20:22253 ['OS=="mac"', {
[email protected]46bcd232011-09-27 16:30:55254 'use_skia%': 0,
[email protected]e4dbede82011-09-16 16:11:07255 # Mac uses clang by default, so turn on the plugin as well.
256 'clang_use_chrome_plugins%': 1,
[email protected]7d7564a12011-06-21 19:20:22257 }, {
258 'use_skia%': 1,
259 }],
260
[email protected]79e2336c2011-05-12 18:18:34261 # A flag for POSIX platforms
[email protected]c49ab0c2011-05-18 17:25:37262 ['OS=="win"', {
[email protected]79e2336c2011-05-12 18:18:34263 'os_posix%': 0,
[email protected]c49ab0c2011-05-18 17:25:37264 }, {
265 'os_posix%': 1,
[email protected]79e2336c2011-05-12 18:18:34266 }],
267
[email protected]c329adf82011-10-05 14:34:57268 # NSS usage.
[email protected]e0b85a52011-10-06 03:30:42269 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_openssl==0', {
[email protected]c329adf82011-10-05 14:34:57270 'use_nss%': 1,
271 }, {
272 'use_nss%': 0,
273 }],
[email protected]e0b85a52011-10-06 03:30:42274
[email protected]258dca42011-09-21 00:17:19275 # Flags to use X11 on non-Mac POSIX platforms
[email protected]da1c8d692011-09-20 20:35:01276 ['OS=="win" or OS=="mac" or OS=="android"', {
[email protected]258dca42011-09-21 00:17:19277 'use_glib%': 0,
278 'toolkit_uses_gtk%': 0,
[email protected]79e2336c2011-05-12 18:18:34279 'use_x11%': 0,
[email protected]c49ab0c2011-05-18 17:25:37280 }, {
[email protected]258dca42011-09-21 00:17:19281 # TODO(dnicoara) Wayland build should have these disabled, but
282 # currently GTK and X is too spread and it's hard to completely
283 # remove every dependency.
284 'use_glib%': 1,
285 'toolkit_uses_gtk%': 1,
[email protected]c49ab0c2011-05-18 17:25:37286 'use_x11%': 1,
[email protected]79e2336c2011-05-12 18:18:34287 }],
[email protected]258dca42011-09-21 00:17:19288 ['use_aura==1 and OS!="win"', {
[email protected]9d43e372011-09-22 19:39:52289 'toolkit_uses_gtk%': 0,
[email protected]9edeb712011-09-20 21:20:33290 }],
291
[email protected]63692212010-09-16 00:22:21292 # A flag to enable or disable our compile-time dependency
293 # on gnome-keyring. If that dependency is disabled, no gnome-keyring
294 # support will be available. This option is useful
[email protected]25bc66a22011-09-24 18:32:49295 # for Linux distributions and for Aura.
296 ['chromeos==1 or use_aura==1', {
[email protected]63692212010-09-16 00:22:21297 'use_gnome_keyring%': 0,
298 }, {
299 'use_gnome_keyring%': 1,
300 }],
[email protected]0afe5212010-10-01 18:56:11301
[email protected]bb6aba32011-01-07 19:04:43302 ['toolkit_views==0 or OS=="mac"', {
303 # GTK+ and Mac wants Title Case strings
304 'use_titlecase_in_grd_files%': 1,
305 }],
306
[email protected]1b4209f2011-01-07 00:25:40307 # Enable some hacks to support Flapper only on Chrome OS.
308 ['chromeos==1', {
309 'enable_flapper_hacks%': 1,
310 }, {
311 'enable_flapper_hacks%': 0,
312 }],
[email protected]3d38d8e2011-04-16 20:48:51313
[email protected]f6e680912011-09-21 20:26:19314 # Enable file manager extension on Chrome OS, Touch, PureView, Aura.
315 ['chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', {
[email protected]3d38d8e2011-04-16 20:48:51316 'file_manager_extension%': 1,
317 }, {
318 'file_manager_extension%': 0,
319 }],
[email protected]7de46352011-09-12 15:39:19320
[email protected]e5b307f2011-10-06 22:55:28321 # ... except on Windows even with Aura.
322 ['use_aura==1 and OS=="win"', {
323 'file_manager_extension%': 0,
324 }],
325
[email protected]32981462011-10-18 07:05:16326 # Enable WebUI TaskManager always on Chrome OS, Touch or PureView.
[email protected]3fa441d2011-09-18 17:28:50327 ['chromeos==1 or touchui==1 or use_only_pure_views==1 or use_aura==1', {
[email protected]8b2e9f392011-08-05 04:00:47328 'webui_task_manager%': 1,
[email protected]8b2e9f392011-08-05 04:00:47329 }],
330
[email protected]da1c8d692011-09-20 20:35:01331 ['OS=="android"', {
332 'proprietary_codecs%': 1,
333 'enable_webrtc%': 0,
334 }],
[email protected]839d5172011-10-13 17:18:11335
336 # Use GPU accelerated cross process image transport by default
337 # on TOUCH_UI and linux builds with the Aura window manager
[email protected]332749032011-10-22 00:32:46338 ['views_compositor==1 and OS=="linux" and use_webkit_compositor!=1', {
[email protected]1ee7c56c2011-10-19 14:51:33339 'ui_compositor_image_transport%': 1,
[email protected]839d5172011-10-13 17:18:11340 }, {
[email protected]1ee7c56c2011-10-19 14:51:33341 'ui_compositor_image_transport%': 0,
[email protected]839d5172011-10-13 17:18:11342 }],
[email protected]b3f23ba2010-04-26 22:58:17343 ],
[email protected]e14a9f92009-08-05 19:26:07344 },
345
[email protected]e72e55b2011-01-06 22:19:30346 # Copy conditionally-set variables out one scope.
[email protected]e14a9f92009-08-05 19:26:07347 'branding%': '<(branding)',
348 'buildtype%': '<(buildtype)',
[email protected]e0d00142009-09-18 22:10:27349 'target_arch%': '<(target_arch)',
[email protected]cf185b32010-01-12 04:29:59350 'host_arch%': '<(host_arch)',
[email protected]8fb0ef02011-05-20 00:53:50351 'library%': 'static_library',
[email protected]c153e5352009-09-22 12:37:44352 'toolkit_views%': '<(toolkit_views)',
[email protected]fd88a8842011-09-13 02:50:22353 'use_only_pure_views%': '<(use_only_pure_views)',
[email protected]9c8a1982011-05-24 23:08:58354 'views_compositor%': '<(views_compositor)',
[email protected]1ee7c56c2011-10-19 14:51:33355 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
[email protected]332749032011-10-22 00:32:46356 'use_webkit_compositor%': '<(use_webkit_compositor)',
[email protected]41423092011-08-25 15:39:58357 'use_aura%': '<(use_aura)',
[email protected]e0b85a52011-10-06 03:30:42358 'use_openssl%': '<(use_openssl)',
[email protected]c329adf82011-10-05 14:34:57359 'use_nss%': '<(use_nss)',
[email protected]79e2336c2011-05-12 18:18:34360 'os_posix%': '<(os_posix)',
[email protected]258dca42011-09-21 00:17:19361 'use_glib%': '<(use_glib)',
[email protected]79e2336c2011-05-12 18:18:34362 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
[email protected]7d7564a12011-06-21 19:20:22363 'use_skia%': '<(use_skia)',
[email protected]79e2336c2011-05-12 18:18:34364 'use_x11%': '<(use_x11)',
[email protected]63692212010-09-16 00:22:21365 'use_gnome_keyring%': '<(use_gnome_keyring)',
[email protected]0afe5212010-10-01 18:56:11366 'linux_fpic%': '<(linux_fpic)',
[email protected]1b4209f2011-01-07 00:25:40367 'enable_flapper_hacks%': '<(enable_flapper_hacks)',
[email protected]67c125d2011-10-11 18:58:22368 'enable_pepper_threading%': '<(enable_pepper_threading)',
[email protected]c153e5352009-09-22 12:37:44369 'chromeos%': '<(chromeos)',
[email protected]93012ca2010-08-10 20:10:49370 'touchui%': '<(touchui)',
[email protected]2cc81d32011-10-04 17:03:18371 'use_virtual_keyboard%': '<(use_virtual_keyboard)',
[email protected]f56797b2011-09-25 00:04:35372 'use_xi2_mt%':'<(use_xi2_mt)',
[email protected]e47c32032011-03-01 19:26:20373 'file_manager_extension%': '<(file_manager_extension)',
[email protected]8b2e9f392011-08-05 04:00:47374 'webui_task_manager%': '<(webui_task_manager)',
[email protected]b2f030c2009-09-24 20:36:21375 'inside_chromium_build%': '<(inside_chromium_build)',
[email protected]9c1949e2009-10-02 19:59:54376 'fastbuild%': '<(fastbuild)',
[email protected]20960e072011-09-20 20:59:01377 'dcheck_always_on%': '<(dcheck_always_on)',
[email protected]a76fe1a2010-03-01 23:39:36378 'python_ver%': '<(python_ver)',
[email protected]eafc0b452010-02-26 21:53:43379 'armv7%': '<(armv7)',
380 'arm_neon%': '<(arm_neon)',
[email protected]4d83eb72010-03-04 16:42:23381 'sysroot%': '<(sysroot)',
[email protected]945361a2011-09-30 04:38:43382 'system_libdir%': '<(system_libdir)',
[email protected]ac120ff2010-04-28 02:14:22383 'disable_sse2%': '<(disable_sse2)',
[email protected]8974e042010-06-21 18:06:52384 'component%': '<(component)',
[email protected]bb6aba32011-01-07 19:04:43385 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)',
[email protected]9e94cca2011-02-04 17:38:17386 'use_third_party_translations%': '<(use_third_party_translations)',
[email protected]9a425422011-01-11 00:53:18387 'remoting%': '<(remoting)',
[email protected]5834f4392011-09-13 20:06:17388 'use_threaded_compositing%': '<(use_threaded_compositing)',
[email protected]dda90ae2011-07-19 22:07:48389 'enable_webrtc%': '<(enable_webrtc)',
[email protected]d5cf9fb2011-09-27 00:15:16390 'chromium_win_pch%': '<(chromium_win_pch)',
[email protected]a026daa2011-04-20 15:49:51391 'p2p_apis%': '<(p2p_apis)',
[email protected]1ec68c42011-06-01 13:56:25392 'configuration_policy%': '<(configuration_policy)',
[email protected]4b58e7d2011-07-11 10:22:56393 'safe_browsing%': '<(safe_browsing)',
[email protected]9eb100e2011-10-14 05:08:22394 'input_speech%': '<(input_speech)',
[email protected]5d451ad2011-02-11 16:43:46395 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
[email protected]92799b632011-08-15 14:33:06396 'asan%': '<(asan)',
[email protected]365dd5b92011-05-26 01:30:56397 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
[email protected]41ed4e82011-08-25 23:02:07398 'enable_web_intents%': '<(enable_web_intents)',
[email protected]4076d2f2011-08-11 18:20:22399 # Whether to build for Wayland display server
400 'use_wayland%': 0,
[email protected]a22ebd812011-06-23 00:05:39401
[email protected]371e1092011-10-12 20:37:36402 # Use system yasm instead of bundled one.
403 'use_system_yasm%': 0,
404
[email protected]cf90a512011-10-08 00:00:44405 # Default to enabled PIE; this is important for ASLR but we need to be
406 # able to turn it off for remote debugging on Chromium OS
407 'linux_disable_pie%': 0,
408
[email protected]caa95c82009-11-23 22:39:32409 # The release channel that this build targets. This is used to restrict
410 # channel-specific build options, like which installer packages to create.
411 # The default is 'all', which does no channel-specific filtering.
412 'channel%': 'all',
413
[email protected]b3fb8092009-03-12 19:09:24414 # Override chromium_mac_pch and set it to 0 to suppress the use of
415 # precompiled headers on the Mac. Prefix header injection may still be
416 # used, but prefix headers will not be precompiled. This is useful when
417 # using distcc to distribute a build to compile slaves that don't
418 # share the same compiler executable as the system driving the compilation,
419 # because precompiled headers rely on pointers into a specific compiler
420 # executable's image. Setting this to 0 is needed to use an experimental
421 # Linux-Mac cross compiler distcc farm.
422 'chromium_mac_pch%': 1,
423
[email protected]3224dcd2009-09-16 17:31:25424 # Mac OS X SDK and deployment target support.
425 # The SDK identifies the version of the system headers that will be used,
426 # and corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time macro.
427 # "Maximum allowed" refers to the operating system version whose APIs are
428 # available in the headers.
429 # The deployment target identifies the minimum system version that the
430 # built products are expected to function on. It corresponds to the
431 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro.
432 # To ensure these macros are available, #include <AvailabilityMacros.h>.
433 # Additional documentation on these macros is available at
434 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTION3
435 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the
436 # deployment target to 10.5. Other projects, such as O3D, may override
437 # these defaults.
438 'mac_sdk%': '10.5',
439 'mac_deployment_target%': '10.5',
[email protected]9543af052009-09-15 22:42:59440
[email protected]f5ecbba12009-04-03 04:35:18441 # Set to 1 to enable code coverage. In addition to build changes
442 # (e.g. extra CFLAGS), also creates a new target in the src/chrome
443 # project file called "coverage".
444 # Currently ignored on Windows.
445 'coverage%': 0,
[email protected]653bd5f032009-04-08 12:55:49446
[email protected]7477ea6f2009-12-22 23:28:15447 # Although base/allocator lets you select a heap library via an
[email protected]7e0d664a2009-12-03 21:07:47448 # environment variable, the libcmt shim it uses sometimes gets in
449 # the way. To disable it entirely, and switch to normal msvcrt, do e.g.
450 # 'win_use_allocator_shim': 0,
451 # 'win_release_RuntimeLibrary': 2
452 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
[email protected]8974e042010-06-21 18:06:52453 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt
[email protected]279cd4212009-09-11 22:32:11454
[email protected]95ff8082009-11-13 22:21:01455 # Whether usage of OpenMAX is enabled.
456 'enable_openmax%': 0,
457
[email protected]d01120e62010-05-10 17:04:48458 # Whether proprietary audio/video codecs are assumed to be included with
459 # this build (only meaningful if branding!=Chrome).
460 'proprietary_codecs%': 0,
461
[email protected]e5b2eaa2009-04-14 01:39:12462 # TODO(bradnelson): eliminate this when possible.
463 # To allow local gyp files to prevent release.vsprops from being included.
464 # Yes(1) means include release.vsprops.
465 # Once all vsprops settings are migrated into gyp, this can go away.
466 'msvs_use_common_release%': 1,
[email protected]606116d22009-05-06 22:38:23467
[email protected]cbd5fd52009-08-26 00:14:27468 # TODO(bradnelson): eliminate this when possible.
469 # To allow local gyp files to override additional linker options for msvs.
470 # Yes(1) means set use the common linker options.
[email protected]48c7af72009-07-03 22:00:19471 'msvs_use_common_linker_extras%': 1,
472
[email protected]1ffb6502009-06-02 07:46:24473 # TODO(sgk): eliminate this if possible.
474 # It would be nicer to support this via a setting in 'target_defaults'
475 # in chrome/app/locales/locales.gypi overriding the setting in the
476 # 'Debug' configuration in the 'target_defaults' dict below,
477 # but that doesn't work as we'd like.
478 'msvs_debug_link_incremental%': '2',
479
[email protected]1f790ef2011-01-11 20:45:36480 # Needed for some of the largest modules.
481 'msvs_debug_link_nonincremental%': '1',
482
[email protected]5ab8f482011-08-18 18:30:06483 # Turn on Use Library Dependency Inputs for linking chrome.dll on Windows
484 # to get incremental linking to be faster in debug builds.
[email protected]f1b6f9912011-09-30 16:37:51485 'incremental_chrome_dll%': '<!(python <(DEPTH)/tools/win/supalink/check_installed.py)',
[email protected]5ab8f482011-08-18 18:30:06486
[email protected]573136142009-07-15 22:48:37487 # This is the location of the sandbox binary. Chrome looks for this before
488 # running the zygote process. If found, and SUID, it will be used to
489 # sandbox the zygote process and, thus, all renderer processes.
490 'linux_sandbox_path%': '',
491
[email protected]ad6d2c42009-09-15 20:13:38492 # Set this to true to enable SELinux support.
493 'selinux%': 0,
[email protected]4c9cc6c2009-10-01 18:54:57494
[email protected]58680ce2010-09-18 00:09:15495 # Set this to true when building with Clang.
496 # See http://code.google.com/p/chromium/wiki/Clang for details.
[email protected]58680ce2010-09-18 00:09:15497 'clang%': 0,
[email protected]e4ddf332011-10-20 21:52:24498 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts',
[email protected]58680ce2010-09-18 00:09:15499
[email protected]5e781232011-01-28 02:57:59500 # These two variables can be set in GYP_DEFINES while running
501 # |gclient runhooks| to let clang run a plugin in every compilation.
502 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
503 # Example:
[email protected]93120fe2011-02-03 20:46:42504 # 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:59505
506 'clang_load%': '',
507 'clang_add_plugin%': '',
508
[email protected]da1c8d692011-09-20 20:35:01509 # The default type of gtest.
510 'gtest_target_type%': 'executable',
511
[email protected]7664ab32011-02-01 23:35:25512 # Enable sampling based profiler.
513 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
514 'profiling%': '0',
515
[email protected]93b373502011-08-16 19:06:22516 # Enable strict glibc debug mode.
517 'glibcxx_debug%': 0,
518
[email protected]36532f332010-08-25 00:22:01519 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot.
520 'linux_breakpad%': 0,
521 # And if we want to dump symbols for Breakpad-enabled builds.
522 'linux_dump_symbols%': 0,
523 # And if we want to strip the binary after dumping symbols.
[email protected]05cb6962009-10-01 23:29:03524 'linux_strip_binary%': 0,
[email protected]1d87c282010-09-15 22:24:49525 # Strip the test binaries needed for Linux reliability tests.
526 'linux_strip_reliability_tests%': 0,
[email protected]05cb6962009-10-01 23:29:03527
[email protected]46ce5b562010-06-16 18:39:53528 # Enable TCMalloc.
529 'linux_use_tcmalloc%': 1,
[email protected]01699e22009-11-11 19:24:24530
[email protected]39ca7de2010-04-16 08:04:03531 # Disable TCMalloc's debugallocation.
532 'linux_use_debugallocation%': 0,
533
[email protected]d8b60602010-03-26 09:41:22534 # Disable TCMalloc's heapchecker.
535 'linux_use_heapchecker%': 0,
536
[email protected]64e2d4a42010-08-27 10:13:21537 # Disable shadow stack keeping used by heapcheck to unwind the stacks
538 # better.
539 'linux_keep_shadow_stacks%': 0,
540
[email protected]556c5d72010-06-10 05:45:01541 # Set to 1 to link against libgnome-keyring instead of using dlopen().
542 'linux_link_gnome_keyring%': 0,
[email protected]abcc9ac2011-05-16 20:04:35543 # Set to 1 to link against gsettings APIs instead of using dlopen().
544 'linux_link_gsettings%': 0,
[email protected]556c5d72010-06-10 05:45:01545
[email protected]77c1b29392009-12-04 06:21:29546 # Set Thumb compilation flags.
547 'arm_thumb%': 0,
548
[email protected]53e0f642010-03-05 01:41:56549 # Set ARM fpu compilation flags (only meaningful if armv7==1 and
550 # arm_neon==0).
551 'arm_fpu%': 'vfpv3',
552
[email protected]9821d0d2010-04-16 22:40:37553 # Enable new NPDevice API.
554 'enable_new_npdevice_api%': 0,
[email protected]ed154592010-04-29 00:18:50555
556 # Enable EGLImage support in OpenMAX
[email protected]58023be2011-02-04 20:34:14557 'enable_eglimage%': 1,
[email protected]ed154592010-04-29 00:18:50558
[email protected]6f51b27e2010-06-22 20:43:53559 # Enable a variable used elsewhere throughout the GYP files to determine
560 # whether to compile in the sources for the GPU plugin / process.
561 'enable_gpu%': 1,
562
[email protected]e72e55b2011-01-06 22:19:30563 # .gyp files or targets should set chromium_code to 1 if they build
564 # Chromium-specific code, as opposed to external code. This variable is
565 # used to control such things as the set of warnings to enable, and
566 # whether warnings are treated as errors.
567 'chromium_code%': 0,
568
569 # Set to 1 to compile with the built in pdf viewer.
570 'internal_pdf%': 0,
571
572 # This allows to use libcros from the current system, ie. /usr/lib/
573 # The cros_api will be pulled in as a static library, and all headers
574 # from the system include dirs.
[email protected]bb6aba32011-01-07 19:04:43575 'system_libcros%': 0,
[email protected]e72e55b2011-01-06 22:19:30576
[email protected]e72e55b2011-01-06 22:19:30577 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_'
578 # so Cocoa is happy (http://crbug.com/20441).
579 'locales': [
580 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
581 'en-US', 'es-419', 'es', 'et', 'fa', 'fi', 'fil', 'fr', 'gu', 'he',
582 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv',
583 'ml', 'mr', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru',
584 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk',
585 'vi', 'zh-CN', 'zh-TW',
586 ],
587
[email protected]cc0322d2011-07-24 09:29:19588 # Pseudo locales are special locales which are used for testing and
589 # debugging. They don't get copied to the final app. For more info,
590 # check out https://sites.google.com/a/chromium.org/dev/Home/fake-bidi
591 'pseudo_locales': [
592 'fake-bidi',
593 ],
594
[email protected]bb6aba32011-01-07 19:04:43595 'grit_defines': [],
596
[email protected]29c2daea2011-01-05 20:38:50597 # Use Harfbuzz-NG instead of Harfbuzz.
598 # Under development: http://crbug.com/68551
599 'use_harfbuzz_ng%': 0,
600
[email protected]bd3bd442011-03-28 07:58:51601 # If debug_devtools is set to 1, JavaScript files for DevTools are
602 # stored as is and loaded from disk. Otherwise, a concatenated file
603 # is stored in resources.pak. It is still possible to load JS files
604 # from disk by passing --debug-devtools cmdline switch.
605 'debug_devtools%': 0,
606
[email protected]be8a9272011-02-10 22:06:07607 # Point to ICU directory.
608 'icu_src_dir': '../third_party/icu',
609
[email protected]464750f2011-10-24 23:16:18610 # The Java Bridge is not compiled in by default.
611 'java_bridge%': 0,
612
[email protected]912c55c2009-07-31 23:33:55613 'conditions': [
[email protected]f0c4fce2011-10-20 18:16:11614 # Used to disable Native Client at compile time, for platforms where it
615 # isn't supported (ARM)
616 ['target_arch=="arm"', {
617 'disable_nacl%': 1,
618 }, {
619 'disable_nacl%': 0,
620 }],
[email protected]da1c8d692011-09-20 20:35:01621 ['os_posix==1 and OS!="mac" and OS!="android"', {
[email protected]242a9e62009-11-03 17:32:10622 # This will set gcc_version to XY if you are running gcc X.Y.*.
623 # This is used to tweak build flags for gcc 4.4.
624 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
[email protected]4d83eb72010-03-04 16:42:23625 # Figure out the python architecture to decide if we build pyauto.
[email protected]945361a2011-09-30 04:38:43626 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/<(system_libdir)/libpython<(python_ver).so.1.0)',
[email protected]cbd5fd52009-08-26 00:14:27627 'conditions': [
[email protected]2a77a9d2010-08-26 19:58:10628 ['branding=="Chrome"', {
[email protected]cbd5fd52009-08-26 00:14:27629 'linux_breakpad%': 1,
[email protected]cbd5fd52009-08-26 00:14:27630 }],
[email protected]4c9cc6c2009-10-01 18:54:57631 # All Chrome builds have breakpad symbols, but only process the
632 # symbols from official builds.
[email protected]c913cb82010-08-31 19:44:08633 ['(branding=="Chrome" and buildtype=="Official")', {
[email protected]4c9cc6c2009-10-01 18:54:57634 'linux_dump_symbols%': 1,
[email protected]4c9cc6c2009-10-01 18:54:57635 }],
[email protected]cbd5fd52009-08-26 00:14:27636 ],
[email protected]da1c8d692011-09-20 20:35:01637 }], # os_posix==1 and OS!="mac" and OS!="android"
638 ['OS=="android"', {
639 # Location of Android NDK.
640 'variables': {
641 'variables': {
642 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)',
643 'android_target_arch%': 'arm', # target_arch in android terms.
[email protected]bb6aba32011-01-07 19:04:43644
[email protected]da1c8d692011-09-20 20:35:01645 # Switch between different build types, currently only '0' is
646 # supported.
647 'android_build_type%': 0,
648 },
649 'android_ndk_root%': '<(android_ndk_root)',
650 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<(android_target_arch)',
651 'android_build_type%': '<(android_build_type)',
652 },
653 'android_ndk_root%': '<(android_ndk_root)',
654 'android_ndk_sysroot': '<(android_ndk_sysroot)',
655 'android_ndk_include': '<(android_ndk_sysroot)/usr/include',
656 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib',
657
658 # Uses Android's crash report system
659 'linux_breakpad%': 0,
660
661 # Always uses openssl.
662 'use_openssl%': 1,
663
664 'proprietary_codecs%': '<(proprietary_codecs)',
665 'safe_browsing%': 0,
666 'configuration_policy%': 0,
[email protected]9eb100e2011-10-14 05:08:22667 'input_speech%': 0,
[email protected]464750f2011-10-24 23:16:18668 'java_bridge%': 1,
[email protected]da1c8d692011-09-20 20:35:01669
670 # Builds the gtest targets as a shared_library.
671 # TODO(michaelbai): Use the fixed value 'shared_library' once it
672 # is fully supported.
673 'gtest_target_type%': '<(gtest_target_type)',
674
675 # Uses system APIs for decoding audio and video.
676 'use_libffmpeg%': '0',
677
678 # Always use the chromium skia. The use_system_harfbuzz needs to
679 # match use_system_skia.
680 'use_system_skia%': '0',
681 'use_system_harfbuzz%': '0',
682
683 # Use the system icu.
[email protected]965b6b22011-09-29 16:07:28684 'use_system_icu%': 0,
[email protected]da1c8d692011-09-20 20:35:01685
686 # Choose static link by build type.
687 'conditions': [
688 ['android_build_type==0', {
689 'static_link_system_icu%': 1,
690 }, {
691 'static_link_system_icu%': 0,
692 }],
693 ],
694 # Enable to use system sqlite.
695 'use_system_sqlite%': '<(android_build_type)',
[email protected]d5cf9fb2011-09-27 00:15:16696 # Enable to use system libjpeg.
[email protected]da1c8d692011-09-20 20:35:01697 'use_system_libjpeg%': '<(android_build_type)',
698 # Enable to use the system libexpat.
699 'use_system_libexpat%': '<(android_build_type)',
700 # Enable to use the system stlport, otherwise statically
701 # link the NDK one?
702 'use_system_stlport%': '<(android_build_type)',
703 # Copy it out one scope.
704 'android_build_type%': '<(android_build_type)',
705 }], # OS=="android"
[email protected]e14a9f92009-08-05 19:26:07706 ['OS=="mac"', {
[email protected]e1ece302011-09-15 03:58:11707 # Enable clang on mac by default!
708 'clang%': 1,
[email protected]e14a9f92009-08-05 19:26:07709 'conditions': [
710 # mac_product_name is set to the name of the .app bundle as it should
711 # appear on disk. This duplicates data from
712 # chrome/app/theme/chromium/BRANDING and
713 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get
714 # these names into the build system.
715 ['branding=="Chrome"', {
716 'mac_product_name%': 'Google Chrome',
717 }, { # else: branding!="Chrome"
718 'mac_product_name%': 'Chromium',
719 }],
720
721 # Feature variables for enabling Mac Breakpad and Keystone auto-update
722 # support. Both features are on by default in official builds with
723 # Chrome branding.
724 ['branding=="Chrome" and buildtype=="Official"', {
725 'mac_breakpad%': 1,
726 'mac_keystone%': 1,
727 }, { # else: branding!="Chrome" or buildtype!="Official"
728 'mac_breakpad%': 0,
729 'mac_keystone%': 0,
730 }],
731 ],
732 }], # OS=="mac"
[email protected]bb6aba32011-01-07 19:04:43733
[email protected]912c55c2009-07-31 23:33:55734 # Whether to use multiple cores to compile with visual studio. This is
735 # optional because it sometimes causes corruption on VS 2005.
736 # It is on by default on VS 2008 and off on VS 2005.
737 ['OS=="win"', {
738 'conditions': [
[email protected]8974e042010-06-21 18:06:52739 ['component=="shared_library"', {
740 'win_use_allocator_shim%': 0,
741 }],
[email protected]912c55c2009-07-31 23:33:55742 ['MSVS_VERSION=="2005"', {
[email protected]669795372009-08-14 17:51:13743 'msvs_multi_core_compile%': 0,
[email protected]912c55c2009-07-31 23:33:55744 },{
745 'msvs_multi_core_compile%': 1,
746 }],
[email protected]10bb8c92009-08-07 21:16:03747 # Don't do incremental linking for large modules on 32-bit.
748 ['MSVS_OS_BITS==32', {
749 'msvs_large_module_debug_link_mode%': '1', # No
750 },{
751 'msvs_large_module_debug_link_mode%': '2', # Yes
752 }],
[email protected]3e2648a2011-03-21 20:58:50753 ['MSVS_VERSION=="2010e" or MSVS_VERSION=="2008e" or MSVS_VERSION=="2005e"', {
754 'msvs_express%': 1,
755 'secure_atl%': 0,
756 },{
757 'msvs_express%': 0,
758 'secure_atl%': 1,
759 }],
[email protected]912c55c2009-07-31 23:33:55760 ],
[email protected]ef4fa4072009-12-04 22:46:50761 'nacl_win64_defines': [
762 # This flag is used to minimize dependencies when building
763 # Native Client loader for 64-bit Windows.
764 'NACL_WIN64',
765 ],
[email protected]912c55c2009-07-31 23:33:55766 }],
[email protected]bb6aba32011-01-07 19:04:43767
[email protected]79e2336c2011-05-12 18:18:34768 ['os_posix==1 and chromeos==0 and target_arch!="arm"', {
[email protected]8e553f492010-10-25 20:05:44769 'use_cups%': 1,
770 }, {
771 'use_cups%': 0,
772 }],
[email protected]bb6aba32011-01-07 19:04:43773
[email protected]19fe8f0b2010-12-07 07:27:27774 # Set the relative path from this file to the GYP file of the JPEG
775 # library used by Chromium.
776 ['use_libjpeg_turbo==1', {
777 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
778 }, {
779 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp',
780 }], # use_libjpeg_turbo==1
[email protected]bb6aba32011-01-07 19:04:43781
[email protected]abcc9ac2011-05-16 20:04:35782 # Options controlling the use of GConf (the classic GNOME configuration
783 # system) and GIO, which contains GSettings (the new GNOME config system).
[email protected]1c6fe29302011-01-20 22:14:31784 ['chromeos==1', {
785 'use_gconf%': 0,
[email protected]abcc9ac2011-05-16 20:04:35786 'use_gio%': 0,
[email protected]1c6fe29302011-01-20 22:14:31787 }, {
788 'use_gconf%': 1,
[email protected]abcc9ac2011-05-16 20:04:35789 'use_gio%': 1,
[email protected]1c6fe29302011-01-20 22:14:31790 }],
791
[email protected]4de39f82011-03-28 12:01:29792 # Set up -D and -E flags passed into grit.
[email protected]1660bffd2011-03-23 16:24:29793 ['branding=="Chrome"', {
794 # TODO(mmoss) The .grd files look for _google_chrome, but for
795 # consistency they should look for google_chrome_build like C++.
[email protected]4de39f82011-03-28 12:01:29796 'grit_defines': ['-D', '_google_chrome',
797 '-E', 'CHROMIUM_BUILD=google_chrome'],
[email protected]1660bffd2011-03-23 16:24:29798 }, {
[email protected]4de39f82011-03-28 12:01:29799 'grit_defines': ['-D', '_chromium',
800 '-E', 'CHROMIUM_BUILD=chromium'],
[email protected]1660bffd2011-03-23 16:24:29801 }],
[email protected]bb6aba32011-01-07 19:04:43802 ['chromeos==1', {
803 'grit_defines': ['-D', 'chromeos'],
804 }],
805 ['toolkit_views==1', {
806 'grit_defines': ['-D', 'toolkit_views'],
807 }],
[email protected]fd88a8842011-09-13 02:50:22808 ['use_only_pure_views==1', {
809 'grit_defines': ['-D', 'use_only_pure_views'],
[email protected]1b546692011-06-30 18:22:30810 }],
[email protected]8dd791d2011-09-16 16:37:30811 ['use_aura==1', {
812 'grit_defines': ['-D', 'use_aura'],
813 }],
[email protected]c329adf82011-10-05 14:34:57814 ['use_nss==1', {
815 'grit_defines': ['-D', 'use_nss'],
816 }],
[email protected]bb6aba32011-01-07 19:04:43817 ['touchui==1', {
818 'grit_defines': ['-D', 'touchui'],
819 }],
[email protected]2cc81d32011-10-04 17:03:18820 ['use_virtual_keyboard==1', {
821 'grit_defines': ['-D', 'use_virtual_keyboard'],
822 }],
[email protected]e47c32032011-03-01 19:26:20823 ['file_manager_extension==1', {
824 'grit_defines': ['-D', 'file_manager_extension'],
825 }],
[email protected]8b2e9f392011-08-05 04:00:47826 ['webui_task_manager==1', {
827 'grit_defines': ['-D', 'webui_task_manager'],
828 }],
[email protected]9a425422011-01-11 00:53:18829 ['remoting==1', {
830 'grit_defines': ['-D', 'remoting'],
831 }],
[email protected]bb6aba32011-01-07 19:04:43832 ['use_titlecase_in_grd_files==1', {
833 'grit_defines': ['-D', 'use_titlecase'],
834 }],
[email protected]00dc155832011-02-01 18:51:19835 ['use_third_party_translations==1', {
836 'grit_defines': ['-D', 'use_third_party_translations'],
[email protected]fb6c102e2011-06-27 21:58:12837 'locales': [
[email protected]8581e1ba2011-08-22 23:27:16838 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia',
839 'ka', 'ku', 'kw', 'ms', 'ug'
[email protected]fb6c102e2011-06-27 21:58:12840 ],
[email protected]00dc155832011-02-01 18:51:19841 }],
[email protected]da1c8d692011-09-20 20:35:01842 ['OS=="android"', {
843 'grit_defines': ['-D', 'android'],
844 }],
[email protected]5d451ad2011-02-11 16:43:46845 ['clang_use_chrome_plugins==1', {
846 'clang_chrome_plugins_flags':
847 '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)',
848 }],
[email protected]cfa2e1102011-04-27 22:30:23849
[email protected]452da69e2011-05-24 02:36:05850 # Set use_ibus to 1 to enable ibus support.
[email protected]cfa2e1102011-04-27 22:30:23851 ['touchui==1 and chromeos==1', {
852 'use_ibus%': 1,
853 }, {
854 'use_ibus%': 0,
[email protected]365dd5b92011-05-26 01:30:56855 }],
856
857 ['enable_register_protocol_handler==1', {
858 'grit_defines': ['-D', 'enable_register_protocol_handler'],
859 }],
[email protected]92799b632011-08-15 14:33:06860
[email protected]41ed4e82011-08-25 23:02:07861 ['enable_web_intents==1', {
862 'grit_defines': ['-D', 'enable_web_intents'],
863 }],
864
[email protected]92799b632011-08-15 14:33:06865 ['asan==1', {
866 'clang%': 1,
[email protected]5dc6aaac2011-10-12 16:55:20867 # Do not use Chrome plugins for Clang. The Clang version in
868 # third_party/asan may be different from the default one.
869 'clang_use_chrome_plugins%': 0,
[email protected]92799b632011-08-15 14:33:06870 }],
[email protected]912c55c2009-07-31 23:33:55871 ],
[email protected]35958422011-09-28 02:03:59872 # List of default apps to install in new profiles. The first list contains
873 # the source files as found in svn. The second list, used only for linux,
874 # contains the destination location for each of the files.
875 'default_apps_list': [
876 'browser/resources/default_apps/external_extensions.json',
877 'browser/resources/default_apps/gmail.crx',
878 'browser/resources/default_apps/youtube.crx',
879 ],
880 'default_apps_list_linux_dest': [
881 '<(PRODUCT_DIR)/default_apps/external_extensions.json',
882 '<(PRODUCT_DIR)/default_apps/gmail.crx',
883 '<(PRODUCT_DIR)/default_apps/youtube.crx',
884 ],
[email protected]2f80c312009-02-25 21:26:55885 },
886 'target_defaults': {
[email protected]1c966092009-08-20 21:19:26887 'variables': {
[email protected]a6e22132010-02-10 20:43:18888 # The condition that operates on chromium_code is in a target_conditions
889 # section, and will not have access to the default fallback value of
890 # chromium_code at the top of this file, or to the chromium_code
891 # variable placed at the root variables scope of .gyp files, because
892 # those variables are not set at target scope. As a workaround,
893 # if chromium_code is not set at target scope, define it in target scope
894 # to contain whatever value it has during early variable expansion.
895 # That's enough to make it available during target conditional
896 # processing.
897 'chromium_code%': '<(chromium_code)',
898
[email protected]7e0d664a2009-12-03 21:07:47899 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html
[email protected]d5d593a2009-08-28 23:23:29900 'mac_release_optimization%': '3', # Use -O3 unless overridden
[email protected]ffd984b12009-09-11 19:37:00901 'mac_debug_optimization%': '0', # Use -O0 unless overridden
[email protected]626d2d22011-10-11 15:47:33902
[email protected]7e0d664a2009-12-03 21:07:47903 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
904 'win_release_Optimization%': '2', # 2 = /Os
905 'win_debug_Optimization%': '0', # 0 = /Od
[email protected]626d2d22011-10-11 15:47:33906
907 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
908 'win_release_OmitFramePointers%': '1',
909
[email protected]6b0507b2010-05-07 07:41:21910 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx
911 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off
[email protected]626d2d22011-10-11 15:47:33912
[email protected]6b0507b2010-05-07 07:41:21913 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
[email protected]2ae6e022010-05-07 13:19:15914 'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off,
915 'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max
[email protected]626d2d22011-10-11 15:47:33916
[email protected]fac10d12010-11-08 16:00:31917 # VS inserts quite a lot of extra checks to algorithms like
918 # std::partial_sort in Debug build which make them O(N^2)
919 # instead of O(N*logN). This is particularly slow under memory
920 # tools like ThreadSanitizer so we want it to be disablable.
921 # See http://msdn.microsoft.com/en-us/library/aa985982(v=VS.80).aspx
922 'win_debug_disable_iterator_debugging%': '0',
[email protected]7e0d664a2009-12-03 21:07:47923
[email protected]ffd984b12009-09-11 19:37:00924 'release_extra_cflags%': '',
925 'debug_extra_cflags%': '',
[email protected]92822e82009-09-18 14:26:56926 'release_valgrind_build%': 0,
[email protected]8974e042010-06-21 18:06:52927
[email protected]ef3326702011-10-06 18:06:44928 # Only used by Windows build for now. Can be used to build into a
929 # differet output directory, e.g., a build_dir_prefix of VS2010_ would
930 # output files in src/build/VS2010_{Debug,Release}.
931 'build_dir_prefix%': '',
932
[email protected]8974e042010-06-21 18:06:52933 'conditions': [
934 ['OS=="win" and component=="shared_library"', {
935 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
936 'win_release_RuntimeLibrary%': '2', # 2 = /MT (nondebug DLL)
937 'win_debug_RuntimeLibrary%': '3', # 3 = /MTd (debug DLL)
938 }, {
939 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
940 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static)
941 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static)
942 }],
943 ],
[email protected]1c966092009-08-20 21:19:26944 },
[email protected]32aa8cc2009-03-04 21:36:39945 'conditions': [
946 ['branding=="Chrome"', {
947 'defines': ['GOOGLE_CHROME_BUILD'],
948 }, { # else: branding!="Chrome"
949 'defines': ['CHROMIUM_BUILD'],
950 }],
[email protected]63e39a282011-07-13 20:41:28951 ['component=="shared_library"', {
952 'defines': ['COMPONENT_BUILD'],
953 }],
[email protected]06c756182010-04-27 18:31:31954 ['toolkit_views==1', {
[email protected]e6970232009-05-12 23:51:17955 'defines': ['TOOLKIT_VIEWS=1'],
956 }],
[email protected]fd88a8842011-09-13 02:50:22957 ['use_only_pure_views==1', {
958 'defines': ['USE_ONLY_PURE_VIEWS=1'],
[email protected]1b546692011-06-30 18:22:30959 }],
[email protected]9c8a1982011-05-24 23:08:58960 ['views_compositor==1', {
[email protected]c3870f42011-06-10 16:43:27961 'defines': ['VIEWS_COMPOSITOR=1'],
[email protected]9c8a1982011-05-24 23:08:58962 }],
[email protected]1ee7c56c2011-10-19 14:51:33963 ['ui_compositor_image_transport==1', {
[email protected]839d5172011-10-13 17:18:11964 'defines': ['UI_COMPOSITOR_IMAGE_TRANSPORT'],
965 }],
[email protected]332749032011-10-22 00:32:46966 ['use_webkit_compositor==1', {
967 'defines': ['USE_WEBKIT_COMPOSITOR=1'],
968 }],
[email protected]41423092011-08-25 15:39:58969 ['use_aura==1', {
970 'defines': ['USE_AURA=1'],
[email protected]e599f0132011-08-24 19:03:35971 }],
[email protected]c329adf82011-10-05 14:34:57972 ['use_nss==1', {
973 'defines': ['USE_NSS=1'],
974 }],
[email protected]9d43e372011-09-22 19:39:52975 ['toolkit_uses_gtk==1', {
976 'defines': ['TOOLKIT_USES_GTK=1'],
977 }],
[email protected]fdc5bed2010-01-09 01:16:57978 ['chromeos==1', {
[email protected]16779842009-07-08 23:45:29979 'defines': ['OS_CHROMEOS=1'],
[email protected]2b883b92009-06-02 22:57:50980 }],
[email protected]0094fbe2010-07-15 21:51:43981 ['touchui==1', {
982 'defines': ['TOUCH_UI=1'],
983 }],
[email protected]2cc81d32011-10-04 17:03:18984 ['use_virtual_keyboard==1', {
985 'defines': ['USE_VIRTUAL_KEYBOARD=1'],
986 }],
[email protected]f56797b2011-09-25 00:04:35987 ['use_xi2_mt!=0', {
988 'defines': ['USE_XI2_MT=<(use_xi2_mt)'],
989 }],
[email protected]236754a2011-07-28 17:38:23990 ['use_wayland==1', {
991 'defines': ['USE_WAYLAND=1', 'WL_EGL_PLATFORM=1'],
992 }],
[email protected]e47c32032011-03-01 19:26:20993 ['file_manager_extension==1', {
994 'defines': ['FILE_MANAGER_EXTENSION=1'],
995 }],
[email protected]8b2e9f392011-08-05 04:00:47996 ['webui_task_manager==1', {
997 'defines': ['WEBUI_TASK_MANAGER=1'],
998 }],
[email protected]7664ab32011-02-01 23:35:25999 ['profiling==1', {
1000 'defines': ['ENABLE_PROFILING=1'],
1001 }],
[email protected]93b373502011-08-16 19:06:221002 ['OS=="linux" and glibcxx_debug==1', {
1003 'defines': ['_GLIBCXX_DEBUG=1',],
1004 'cflags_cc!': ['-fno-rtti'],
1005 'cflags_cc+': ['-frtti', '-g'],
1006 }],
[email protected]542bf24a2010-06-11 23:08:171007 ['remoting==1', {
1008 'defines': ['ENABLE_REMOTING=1'],
[email protected]c0bac532010-06-11 00:39:001009 }],
[email protected]a026daa2011-04-20 15:49:511010 ['p2p_apis==1', {
1011 'defines': ['ENABLE_P2P_APIS=1'],
1012 }],
[email protected]d01120e62010-05-10 17:04:481013 ['proprietary_codecs==1', {
1014 'defines': ['USE_PROPRIETARY_CODECS'],
1015 }],
[email protected]1b4209f2011-01-07 00:25:401016 ['enable_flapper_hacks==1', {
1017 'defines': ['ENABLE_FLAPPER_HACKS=1'],
1018 }],
[email protected]67c125d2011-10-11 18:58:221019 ['enable_pepper_threading==1', {
1020 'defines': ['ENABLE_PEPPER_THREADING'],
1021 }],
[email protected]f31e2e52011-07-14 16:01:191022 ['configuration_policy==1', {
1023 'defines': ['ENABLE_CONFIGURATION_POLICY'],
1024 }],
[email protected]9eb100e2011-10-14 05:08:221025 ['input_speech==1', {
1026 'defines': ['ENABLE_INPUT_SPEECH'],
1027 }],
[email protected]9c1949e2009-10-02 19:59:541028 ['fastbuild!=0', {
[email protected]5834f4392011-09-13 20:06:171029
[email protected]9c1949e2009-10-02 19:59:541030 'conditions': [
[email protected]da4d4ea2011-09-22 20:23:141031 # For Windows and Mac, we don't genererate debug information.
1032 ['OS=="win" or OS=="mac"', {
[email protected]9c1949e2009-10-02 19:59:541033 'msvs_settings': {
1034 'VCLinkerTool': {
1035 'GenerateDebugInformation': 'false',
1036 },
1037 'VCCLCompilerTool': {
1038 'DebugInformationFormat': '0',
1039 }
[email protected]da4d4ea2011-09-22 20:23:141040 },
1041 'xcode_settings': {
1042 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
1043 },
[email protected]1cc2fa72010-07-03 08:49:241044 }, { # else: OS != "win", generate less debug information.
1045 'variables': {
1046 'debug_extra_cflags': '-g1',
1047 },
[email protected]37c84192010-04-14 21:37:401048 }],
[email protected]aecc4d12011-01-19 05:32:331049 # Clang creates chubby debug information, which makes linking very
1050 # slow. For now, don't create debug information with clang. See
1051 # http://crbug.com/70000
1052 ['OS=="linux" and clang==1', {
1053 'variables': {
1054 'debug_extra_cflags': '-g0',
1055 },
1056 }],
[email protected]9c1949e2009-10-02 19:59:541057 ], # conditions for fastbuild.
1058 }], # fastbuild!=0
[email protected]20960e072011-09-20 20:59:011059 ['dcheck_always_on!=0', {
1060 'defines': ['DCHECK_ALWAYS_ON=1'],
1061 }], # dcheck_always_on!=0
[email protected]ad6d2c42009-09-15 20:13:381062 ['selinux==1', {
1063 'defines': ['CHROMIUM_SELINUX=1'],
1064 }],
[email protected]7e0d664a2009-12-03 21:07:471065 ['win_use_allocator_shim==0', {
1066 'conditions': [
1067 ['OS=="win"', {
1068 'defines': ['NO_TCMALLOC'],
1069 }],
1070 ],
1071 }],
[email protected]43f28f832010-02-03 02:28:481072 ['enable_gpu==1', {
[email protected]7477ea6f2009-12-22 23:28:151073 'defines': [
1074 'ENABLE_GPU=1',
1075 ],
1076 }],
[email protected]b1c2a5542010-10-08 12:44:401077 ['use_openssl==1', {
1078 'defines': [
1079 'USE_OPENSSL=1',
1080 ],
1081 }],
[email protected]ed154592010-04-29 00:18:501082 ['enable_eglimage==1', {
1083 'defines': [
1084 'ENABLE_EGLIMAGE=1',
1085 ],
1086 }],
[email protected]7d7564a12011-06-21 19:20:221087 ['use_skia==1', {
1088 'defines': [
1089 'USE_SKIA=1',
1090 ],
1091 }],
[email protected]f5ecbba12009-04-03 04:35:181092 ['coverage!=0', {
1093 'conditions': [
1094 ['OS=="mac"', {
1095 'xcode_settings': {
[email protected]ab2956372009-08-13 18:11:041096 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs
1097 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage
[email protected]5ae4f55e2009-04-13 23:19:471098 },
[email protected]e4fb84c2009-12-28 20:45:431099 # Add -lgcov for types executable, shared_library, and
[email protected]dc259ce52010-04-13 04:03:101100 # loadable_module; not for static_library.
[email protected]e4fb84c2009-12-28 20:45:431101 # This is a delayed conditional.
[email protected]f5ecbba12009-04-03 04:35:181102 'target_conditions': [
[email protected]e4fb84c2009-12-28 20:45:431103 ['_type!="static_library"', {
[email protected]f5ecbba12009-04-03 04:35:181104 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] },
[email protected]5ae4f55e2009-04-13 23:19:471105 }],
1106 ],
1107 }],
[email protected]da1c8d692011-09-20 20:35:011108 ['OS=="linux" or OS=="android"', {
[email protected]f5ecbba12009-04-03 04:35:181109 'cflags': [ '-ftest-coverage',
1110 '-fprofile-arcs' ],
[email protected]7122ffd52009-04-30 23:19:001111 'link_settings': { 'libraries': [ '-lgcov' ] },
[email protected]f5ecbba12009-04-03 04:35:181112 }],
[email protected]e8f6ff42009-07-07 18:20:531113 # Finally, for Windows, we simply turn on profiling.
1114 ['OS=="win"', {
1115 'msvs_settings': {
1116 'VCLinkerTool': {
1117 'Profile': 'true',
1118 },
[email protected]10bb8c92009-08-07 21:16:031119 'VCCLCompilerTool': {
[email protected]e8f6ff42009-07-07 18:20:531120 # /Z7, not /Zi, so coverage is happyb
1121 'DebugInformationFormat': '1',
[email protected]1f9471a2010-01-04 06:40:161122 'AdditionalOptions': ['/Yd'],
[email protected]e8f6ff42009-07-07 18:20:531123 }
1124 }
1125 }], # OS==win
1126 ], # conditions for coverage
1127 }], # coverage!=0
[email protected]4e4d6042010-08-26 18:34:381128 ['OS=="win"', {
1129 'defines': [
1130 '__STD_C',
1131 '_CRT_SECURE_NO_DEPRECATE',
1132 '_SCL_SECURE_NO_DEPRECATE',
1133 ],
1134 'include_dirs': [
1135 '<(DEPTH)/third_party/wtl/include',
1136 ],
1137 }], # OS==win
[email protected]365dd5b92011-05-26 01:30:561138 ['enable_register_protocol_handler==1', {
1139 'defines': [
[email protected]06bba4fb2011-06-09 05:17:191140 'ENABLE_REGISTER_PROTOCOL_HANDLER=1',
[email protected]365dd5b92011-05-26 01:30:561141 ],
1142 }],
[email protected]41ed4e82011-08-25 23:02:071143 ['enable_web_intents==1', {
1144 'defines': [
[email protected]1f2d9ed2011-10-04 20:18:471145 'ENABLE_WEB_INTENTS=1',
[email protected]41ed4e82011-08-25 23:02:071146 ],
1147 }],
[email protected]a6e22132010-02-10 20:43:181148 ], # conditions for 'target_defaults'
1149 'target_conditions': [
[email protected]c14d8e772010-02-09 22:06:151150 ['chromium_code==0', {
[email protected]d8543312010-02-10 17:43:281151 'conditions': [
[email protected]79e2336c2011-05-12 18:18:341152 [ 'os_posix==1 and OS!="mac"', {
[email protected]c0a6b272011-02-09 22:32:331153 # We don't want to get warnings from third-party code,
1154 # so remove any existing warning-enabling flags like -Wall.
[email protected]d8543312010-02-10 17:43:281155 'cflags!': [
1156 '-Wall',
1157 '-Wextra',
1158 '-Werror',
1159 ],
[email protected]167ec822011-10-24 22:05:271160 'cflags_cc': [
[email protected]ec1d155be2011-02-08 22:19:001161 # Don't warn about hash_map in third-party code.
1162 '-Wno-deprecated',
[email protected]167ec822011-10-24 22:05:271163 ],
1164 'cflags': [
[email protected]c0a6b272011-02-09 22:32:331165 # Don't warn about printf format problems.
1166 # This is off by default in gcc but on in Ubuntu's gcc(!).
[email protected]ec392872011-02-10 22:38:221167 '-Wno-format',
[email protected]ec1d155be2011-02-08 22:19:001168 ],
[email protected]d16bd642011-07-25 23:59:181169 'cflags_cc!': [
1170 # TODO(fischman): remove this.
1171 # http://code.google.com/p/chromium/issues/detail?id=90453
1172 '-Wsign-compare',
1173 ]
[email protected]d8543312010-02-10 17:43:281174 }],
[email protected]817f0f142011-10-13 04:23:221175 [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and chromeos==0', {
[email protected]6e4451892011-07-27 10:32:111176 'cflags': [
1177 # Don't warn about ignoring the return value from e.g. close().
1178 # This is off by default in some gccs but on by default in others.
1179 # Currently this option is not set for Chrome OS build because
1180 # the current version of gcc (4.3.4) used for building Chrome in
1181 # Chrome OS chroot doesn't support this option.
[email protected]817f0f142011-10-13 04:23:221182 # OpenBSD does not support this option either, since it's using
1183 # gcc 4.2.1, which does not have this flag yet.
[email protected]6e4451892011-07-27 10:32:111184 # TODO(mazda): remove the conditional for Chrome OS when gcc
1185 # version is upgraded.
1186 '-Wno-unused-result',
1187 ],
1188 }],
[email protected]d8543312010-02-10 17:43:281189 [ 'OS=="win"', {
1190 'defines': [
1191 '_CRT_SECURE_NO_DEPRECATE',
1192 '_CRT_NONSTDC_NO_WARNINGS',
1193 '_CRT_NONSTDC_NO_DEPRECATE',
1194 '_SCL_SECURE_NO_DEPRECATE',
1195 ],
1196 'msvs_disabled_warnings': [4800],
1197 'msvs_settings': {
1198 'VCCLCompilerTool': {
[email protected]942c3a60f2011-05-03 02:04:111199 'WarningLevel': '3',
1200 'WarnAsError': 'false', # TODO(maruel): Enable it.
[email protected]d8543312010-02-10 17:43:281201 'Detect64BitPortabilityProblems': 'false',
1202 },
1203 },
1204 }],
[email protected]ea47b6a2011-07-17 19:39:421205 # TODO(darin): Unfortunately, some third_party code depends on base/
1206 [ 'OS=="win" and component=="shared_library"', {
1207 'msvs_disabled_warnings': [
1208 4251, # class 'std::xx' needs to have dll-interface.
1209 ],
1210 }],
[email protected]d8543312010-02-10 17:43:281211 [ 'OS=="mac"', {
1212 'xcode_settings': {
1213 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
[email protected]4c4c2e5332010-06-15 11:51:061214 'WARNING_CFLAGS!': ['-Wall', '-Wextra'],
[email protected]d8543312010-02-10 17:43:281215 },
1216 }],
[email protected]c14d8e772010-02-09 22:06:151217 ],
1218 }, {
1219 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the
1220 # C99 macros on Mac and Linux.
1221 'defines': [
1222 '__STDC_FORMAT_MACROS',
1223 ],
1224 'conditions': [
1225 ['OS!="win"', {
[email protected]40519592010-11-16 15:23:301226 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:161227 ['exclude', '(^|/)win/'],
[email protected]40519592010-11-16 15:23:301228 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
[email protected]c14d8e772010-02-09 22:06:151229 }],
1230 ['OS!="mac"', {
[email protected]40519592010-11-16 15:23:301231 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:161232 ['exclude', '(^|/)(cocoa|mac)/'],
1233 ['exclude', '\\.mm?$' ] ],
[email protected]c14d8e772010-02-09 22:06:151234 }],
[email protected]02065c62011-09-23 00:08:461235 ['use_x11!=1', {
1236 'sources/': [
1237 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
1238 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
1239 ],
1240 }],
[email protected]79e2336c2011-05-12 18:18:341241 ['toolkit_uses_gtk!=1', {
[email protected]c14d8e772010-02-09 22:06:151242 'sources/': [
[email protected]02065c62011-09-23 00:08:461243 ['exclude', '_(gtk|xdg)(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:161244 ['exclude', '(^|/)gtk/'],
[email protected]02065c62011-09-23 00:08:461245 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
[email protected]18cff3d2010-02-17 18:03:131246 ],
1247 }],
[email protected]f1b2cd02011-08-10 16:50:441248 ['use_wayland!=1', {
1249 'sources/': [
1250 ['exclude', '_(wayland)(_unittest)?\\.(h|cc)$'],
1251 ['exclude', '(^|/)wayland/'],
1252 ['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'],
1253 ],
1254 }],
[email protected]167ec822011-10-24 22:05:271255 # Do not exclude the linux files on OpenBSD since most of them can be
1256 # shared at this point.
1257 # In case a file is not needed, it is going to be excluded later on.
1258 ['OS!="linux" and OS!="openbsd"', {
[email protected]18cff3d2010-02-17 18:03:131259 'sources/': [
[email protected]40519592010-11-16 15:23:301260 ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:161261 ['exclude', '(^|/)linux/'],
[email protected]18cff3d2010-02-17 18:03:131262 ],
[email protected]c14d8e772010-02-09 22:06:151263 }],
[email protected]f98d7b92011-09-09 10:17:351264 ['OS!="android"', {
1265 'sources/': [
1266 ['exclude', '_android(_unittest)?\\.cc$'],
1267 ['exclude', '(^|/)android/'],
1268 ],
1269 }],
[email protected]c14d8e772010-02-09 22:06:151270 # We use "POSIX" to refer to all non-Windows operating systems.
1271 ['OS=="win"', {
[email protected]d4af1e72011-10-21 17:45:431272 'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ],
[email protected]f55bd4862010-05-27 15:38:071273 # turn on warnings for signed/unsigned mismatch on chromium code.
1274 'msvs_settings': {
1275 'VCCLCompilerTool': {
1276 'AdditionalOptions': ['/we4389'],
1277 },
1278 },
[email protected]c14d8e772010-02-09 22:06:151279 }],
[email protected]63e39a282011-07-13 20:41:281280 ['OS=="win" and component=="shared_library"', {
1281 'msvs_disabled_warnings': [
1282 4251, # class 'std::xx' needs to have dll-interface.
1283 ],
1284 }],
[email protected]c14d8e772010-02-09 22:06:151285 ['chromeos!=1', {
[email protected]40519592010-11-16 15:23:301286 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
[email protected]c14d8e772010-02-09 22:06:151287 }],
[email protected]06c756182010-04-27 18:31:311288 ['toolkit_views==0', {
[email protected]40519592010-11-16 15:23:301289 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
[email protected]c14d8e772010-02-09 22:06:151290 }],
[email protected]41423092011-08-25 15:39:581291 ['use_aura==0', {
[email protected]f941f47a2011-10-15 18:44:511292 'sources/': [ ['exclude', '_aura\\.(h|cc)$'],
1293 ['exclude', '(^|/)aura/'],
1294 ]
[email protected]41423092011-08-25 15:39:581295 }],
[email protected]50ea9262011-10-10 15:42:431296 ['use_aura==0 or use_x11==0', {
1297 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
1298 }],
1299 ['use_aura==0 or OS!="win"', {
1300 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
1301 }],
[email protected]c14d8e772010-02-09 22:06:151302 ],
1303 }],
[email protected]a6e22132010-02-10 20:43:181304 ], # target_conditions for 'target_defaults'
[email protected]2f80c312009-02-25 21:26:551305 'default_configuration': 'Debug',
1306 'configurations': {
[email protected]5153767c2009-12-22 01:52:501307 # VCLinkerTool LinkIncremental values below:
1308 # 0 == default
1309 # 1 == /INCREMENTAL:NO
1310 # 2 == /INCREMENTAL
1311 # Debug links incremental, Release does not.
1312 #
[email protected]7b99801e2010-11-03 17:26:231313 # Abstract base configurations to cover common attributes.
[email protected]5153767c2009-12-22 01:52:501314 #
1315 'Common_Base': {
[email protected]bb05e452009-10-29 21:24:561316 'abstract': 1,
1317 'msvs_configuration_attributes': {
[email protected]534303c2011-09-28 00:02:511318 'OutputDirectory': '<(DEPTH)\\build\\<(build_dir_prefix)$(ConfigurationName)',
[email protected]bb05e452009-10-29 21:24:561319 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
1320 'CharacterSet': '1',
1321 },
[email protected]5153767c2009-12-22 01:52:501322 },
1323 'x86_Base': {
1324 'abstract': 1,
[email protected]ef4fa4072009-12-04 22:46:501325 'msvs_settings': {
1326 'VCLinkerTool': {
1327 'TargetMachine': '1',
1328 },
1329 },
[email protected]2fa40782009-11-01 21:17:341330 'msvs_configuration_platform': 'Win32',
[email protected]bb05e452009-10-29 21:24:561331 },
[email protected]5153767c2009-12-22 01:52:501332 'x64_Base': {
1333 'abstract': 1,
1334 'msvs_configuration_platform': 'x64',
1335 'msvs_settings': {
1336 'VCLinkerTool': {
1337 'TargetMachine': '17', # x86 - 64
[email protected]5153767c2009-12-22 01:52:501338 'AdditionalLibraryDirectories!':
1339 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
1340 'AdditionalLibraryDirectories':
1341 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
1342 },
[email protected]d26b4418ab2010-03-24 22:06:351343 'VCLibrarianTool': {
[email protected]5153767c2009-12-22 01:52:501344 'AdditionalLibraryDirectories!':
1345 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
1346 'AdditionalLibraryDirectories':
1347 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
1348 },
1349 },
1350 'defines': [
1351 # Not sure if tcmalloc works on 64-bit Windows.
1352 'NO_TCMALLOC',
1353 ],
1354 },
1355 'Debug_Base': {
1356 'abstract': 1,
[email protected]14339762011-04-05 07:36:581357 'defines': [
1358 'DYNAMIC_ANNOTATIONS_ENABLED=1',
1359 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
1360 ],
[email protected]1c966092009-08-20 21:19:261361 'xcode_settings': {
1362 'COPY_PHASE_STRIP': 'NO',
[email protected]d5d593a2009-08-28 23:23:291363 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)',
[email protected]a68c29a2011-07-01 16:23:491364 'OTHER_CFLAGS': [
[email protected]a68c29a2011-07-01 16:23:491365 '<@(debug_extra_cflags)',
1366 ],
[email protected]1c966092009-08-20 21:19:261367 },
[email protected]bb05e452009-10-29 21:24:561368 'msvs_settings': {
1369 'VCCLCompilerTool': {
[email protected]7e0d664a2009-12-03 21:07:471370 'Optimization': '<(win_debug_Optimization)',
[email protected]bb05e452009-10-29 21:24:561371 'PreprocessorDefinitions': ['_DEBUG'],
[email protected]6b0507b2010-05-07 07:41:211372 'BasicRuntimeChecks': '<(win_debug_RuntimeChecks)',
[email protected]7e0d664a2009-12-03 21:07:471373 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)',
[email protected]2ae6e022010-05-07 13:19:151374 'conditions': [
1375 # According to MSVS, InlineFunctionExpansion=0 means
1376 # "default inlining", not "/Ob0".
1377 # Thus, we have to handle InlineFunctionExpansion==0 separately.
1378 ['win_debug_InlineFunctionExpansion==0', {
1379 'AdditionalOptions': ['/Ob0'],
1380 }],
1381 ['win_debug_InlineFunctionExpansion!=""', {
1382 'InlineFunctionExpansion':
1383 '<(win_debug_InlineFunctionExpansion)',
1384 }],
[email protected]fac10d12010-11-08 16:00:311385 ['win_debug_disable_iterator_debugging==1', {
1386 'PreprocessorDefinitions': ['_HAS_ITERATOR_DEBUGGING=0'],
1387 }],
[email protected]2ae6e022010-05-07 13:19:151388 ],
[email protected]bb05e452009-10-29 21:24:561389 },
1390 'VCLinkerTool': {
1391 'LinkIncremental': '<(msvs_debug_link_incremental)',
[email protected]646f6b42011-07-14 13:57:021392 # ASLR makes debugging with windbg difficult because Chrome.exe and
1393 # Chrome.dll share the same base name. As result, windbg will
1394 # name the Chrome.dll module like chrome_<base address>, where
1395 # <base address> typically changes with each launch. This in turn
1396 # means that breakpoints in Chrome.dll don't stick from one launch
1397 # to the next. For this reason, we turn ASLR off in debug builds.
1398 # Note that this is a three-way bool, where 0 means to pick up
1399 # the default setting, 1 is off and 2 is on.
1400 'RandomizedBaseAddress': 1,
[email protected]bb05e452009-10-29 21:24:561401 },
1402 'VCResourceCompilerTool': {
1403 'PreprocessorDefinitions': ['_DEBUG'],
1404 },
1405 },
[email protected]2f80c312009-02-25 21:26:551406 'conditions': [
[email protected]bb05e452009-10-29 21:24:561407 ['OS=="linux"', {
1408 'cflags': [
1409 '<@(debug_extra_cflags)',
1410 ],
[email protected]2f80c312009-02-25 21:26:551411 }],
[email protected]56cca4e2011-07-01 21:33:351412 ['release_valgrind_build==0', {
1413 'xcode_settings': {
1414 'OTHER_CFLAGS': [
1415 '-fstack-protector-all', # Implies -fstack-protector
1416 ],
1417 },
1418 }],
[email protected]2f80c312009-02-25 21:26:551419 ],
1420 },
[email protected]5153767c2009-12-22 01:52:501421 'Release_Base': {
1422 'abstract': 1,
[email protected]2f80c312009-02-25 21:26:551423 'defines': [
1424 'NDEBUG',
1425 ],
[email protected]1c966092009-08-20 21:19:261426 'xcode_settings': {
1427 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip
1428 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)',
[email protected]ffd984b12009-09-11 19:37:001429 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ],
[email protected]1c966092009-08-20 21:19:261430 },
[email protected]bb05e452009-10-29 21:24:561431 'msvs_settings': {
[email protected]7e0d664a2009-12-03 21:07:471432 'VCCLCompilerTool': {
1433 'Optimization': '<(win_release_Optimization)',
1434 'RuntimeLibrary': '<(win_release_RuntimeLibrary)',
[email protected]2ae6e022010-05-07 13:19:151435 'conditions': [
1436 # According to MSVS, InlineFunctionExpansion=0 means
1437 # "default inlining", not "/Ob0".
1438 # Thus, we have to handle InlineFunctionExpansion==0 separately.
1439 ['win_release_InlineFunctionExpansion==0', {
1440 'AdditionalOptions': ['/Ob0'],
1441 }],
1442 ['win_release_InlineFunctionExpansion!=""', {
1443 'InlineFunctionExpansion':
1444 '<(win_release_InlineFunctionExpansion)',
1445 }],
[email protected]626d2d22011-10-11 15:47:331446
1447 ['win_release_OmitFramePointers==1', {
1448 'OmitFramePointers': 'true',
1449 }],
1450 ['win_release_OmitFramePointers==0', {
1451 'OmitFramePointers': 'false',
1452 }],
[email protected]2ae6e022010-05-07 13:19:151453 ],
[email protected]7e0d664a2009-12-03 21:07:471454 },
[email protected]bb05e452009-10-29 21:24:561455 'VCLinkerTool': {
[email protected]c059c612011-08-08 20:56:341456 # LinkIncremental is a tri-state boolean, where 0 means default
1457 # (i.e., inherit from parent solution), 1 means false, and
1458 # 2 means true.
[email protected]bb05e452009-10-29 21:24:561459 'LinkIncremental': '1',
[email protected]c059c612011-08-08 20:56:341460 # This corresponds to the /PROFILE flag which ensures the PDB
1461 # file contains FIXUP information (growing the PDB file by about
1462 # 5%) but does not otherwise alter the output binary. This
1463 # information is used by the Syzygy optimization tool when
1464 # decomposing the release image.
1465 'Profile': 'true',
[email protected]bb05e452009-10-29 21:24:561466 },
1467 },
[email protected]2f80c312009-02-25 21:26:551468 'conditions': [
[email protected]92822e82009-09-18 14:26:561469 ['release_valgrind_build==0', {
[email protected]14339762011-04-05 07:36:581470 'defines': [
1471 'NVALGRIND',
1472 'DYNAMIC_ANNOTATIONS_ENABLED=0',
1473 ],
[email protected]ee857512010-05-14 08:24:421474 }, {
[email protected]14339762011-04-05 07:36:581475 'defines': [
1476 'DYNAMIC_ANNOTATIONS_ENABLED=1',
1477 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
1478 ],
[email protected]92822e82009-09-18 14:26:561479 }],
[email protected]7e0d664a2009-12-03 21:07:471480 ['win_use_allocator_shim==0', {
1481 'defines': ['NO_TCMALLOC'],
1482 }],
[email protected]bb05e452009-10-29 21:24:561483 ['OS=="linux"', {
1484 'cflags': [
[email protected]ffd984b12009-09-11 19:37:001485 '<@(release_extra_cflags)',
[email protected]bb05e452009-10-29 21:24:561486 ],
1487 }],
[email protected]2f80c312009-02-25 21:26:551488 ],
1489 },
[email protected]5153767c2009-12-22 01:52:501490 #
1491 # Concrete configurations
1492 #
1493 'Debug': {
1494 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
1495 },
1496 'Release': {
1497 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
1498 'conditions': [
1499 ['msvs_use_common_release', {
[email protected]1f9471a2010-01-04 06:40:161500 'includes': ['release.gypi'],
[email protected]5153767c2009-12-22 01:52:501501 }],
1502 ]
1503 },
[email protected]f926fa0a2009-08-04 22:50:131504 'conditions': [
1505 [ 'OS=="win"', {
1506 # TODO(bradnelson): add a gyp mechanism to make this more graceful.
[email protected]ef4fa4072009-12-04 22:46:501507 'Debug_x64': {
[email protected]5153767c2009-12-22 01:52:501508 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
[email protected]78263c12009-11-01 23:45:301509 },
1510 'Release_x64': {
[email protected]5153767c2009-12-22 01:52:501511 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
[email protected]78263c12009-11-01 23:45:301512 },
[email protected]f926fa0a2009-08-04 22:50:131513 }],
1514 ],
[email protected]2f80c312009-02-25 21:26:551515 },
1516 },
1517 'conditions': [
[email protected]79e2336c2011-05-12 18:18:341518 ['os_posix==1 and OS!="mac"', {
[email protected]9d384032009-03-20 23:13:261519 'target_defaults': {
[email protected]5315f2842009-04-28 00:43:271520 # Enable -Werror by default, but put it in a variable so it can
1521 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
1522 'variables': {
[email protected]57e94022011-05-04 15:33:191523 # Use -fno-strict-aliasing, see http://crbug.com/32204
[email protected]ecf52cb82010-01-13 19:25:421524 'no_strict_aliasing%': 1,
[email protected]79e2336c2011-05-12 18:18:341525 'conditions': [
1526 ['OS=="linux"', {
1527 'werror%': '-Werror',
1528 }, { # turn off -Werror on other Unices
1529 'werror%': '',
1530 }],
[email protected]47deeb62009-12-17 14:49:391531 ],
[email protected]5315f2842009-04-28 00:43:271532 },
[email protected]9d384032009-03-20 23:13:261533 'cflags': [
[email protected]1bba09c2009-08-13 12:53:161534 '<(werror)', # See note above about the werror variable.
1535 '-pthread',
1536 '-fno-exceptions',
1537 '-Wall',
[email protected]0fa17082010-03-26 00:48:051538 # TODO(evan): turn this back on once all the builds work.
1539 # '-Wextra',
[email protected]225c8f52010-02-05 22:23:201540 # Don't warn about unused function params. We use those everywhere.
1541 '-Wno-unused-parameter',
1542 # Don't warn about the "struct foo f = {0};" initialization pattern.
1543 '-Wno-missing-field-initializers',
[email protected]1bba09c2009-08-13 12:53:161544 '-D_FILE_OFFSET_BITS=64',
[email protected]3df6e3a2010-01-21 20:23:121545 # Don't export any symbols (for example, to plugins we dlopen()).
1546 # Note: this is *required* to make some plugins work.
1547 '-fvisibility=hidden',
[email protected]7ca6ce12010-09-15 23:39:351548 '-pipe',
[email protected]8a2fcba2009-07-29 00:52:241549 ],
1550 'cflags_cc': [
[email protected]832d0212009-10-28 19:12:221551 '-fno-rtti',
[email protected]8a2fcba2009-07-29 00:52:241552 '-fno-threadsafe-statics',
[email protected]f5986c42009-11-17 18:39:361553 # Make inline functions have hidden visiblity by default.
1554 # Surprisingly, not covered by -fvisibility=hidden.
1555 '-fvisibility-inlines-hidden',
[email protected]554abd902011-07-25 04:03:171556 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't,
1557 # so we specify it explicitly.
1558 # TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it.
[email protected]d16bd642011-07-25 23:59:181559 # http://code.google.com/p/chromium/issues/detail?id=90453
[email protected]554abd902011-07-25 04:03:171560 '-Wsign-compare',
[email protected]9d384032009-03-20 23:13:261561 ],
[email protected]a6cf87e2009-04-03 04:07:381562 'ldflags': [
[email protected]138241f2010-03-30 23:53:101563 '-pthread', '-Wl,-z,noexecstack',
[email protected]9d384032009-03-20 23:13:261564 ],
[email protected]3aacaf952009-04-02 15:34:091565 'configurations': {
[email protected]5153767c2009-12-22 01:52:501566 'Debug_Base': {
[email protected]c5bdc032009-04-20 19:11:311567 'variables': {
1568 'debug_optimize%': '0',
1569 },
[email protected]3aacaf952009-04-02 15:34:091570 'defines': [
1571 '_DEBUG',
1572 ],
1573 'cflags': [
[email protected]9cb5cc702011-02-01 19:56:041574 '-O>(debug_optimize)',
[email protected]3aacaf952009-04-02 15:34:091575 '-g',
1576 ],
[email protected]da1c8d692011-09-20 20:35:011577 'conditions' : [
1578 ['OS=="android"', {
1579 'cflags': [
1580 '-fno-omit-frame-pointer',
1581 ],
1582 }],
1583 ],
1584 'target_conditions' : [
1585 ['_toolset=="target"', {
1586 'conditions': [
1587 ['OS=="android" and debug_optimize==0', {
1588 'cflags': [
1589 '-mlong-calls', # Needed when compiling with -O0
1590 ],
1591 }],
1592 ['arm_thumb==1', {
1593 'cflags': [
1594 '-marm',
1595 ],
1596 }],
1597 ],
1598 }],
1599 ],
[email protected]5315f2842009-04-28 00:43:271600 },
[email protected]5153767c2009-12-22 01:52:501601 'Release_Base': {
[email protected]740e2de2009-07-21 11:41:011602 'variables': {
1603 'release_optimize%': '2',
[email protected]1dd529642010-05-15 01:02:511604 # Binaries become big and gold is unable to perform GC
1605 # and remove unused sections for some of test targets
1606 # on 32 bit platform.
1607 # (This is currently observed only in chromeos valgrind bots)
1608 # The following flag is to disable --gc-sections linker
1609 # option for these bots.
1610 'no_gc_sections%': 0,
[email protected]409dceef2011-05-10 19:49:121611
1612 # TODO(bradnelson): reexamine how this is done if we change the
1613 # expansion of configurations
1614 'release_valgrind_build%': 0,
[email protected]740e2de2009-07-21 11:41:011615 },
[email protected]3aacaf952009-04-02 15:34:091616 'cflags': [
[email protected]9cb5cc702011-02-01 19:56:041617 '-O>(release_optimize)',
[email protected]d8cc3a62009-04-08 18:29:531618 # Don't emit the GCC version ident directives, they just end up
1619 # in the .comment section taking up binary size.
1620 '-fno-ident',
1621 # Put data and code in their own sections, so that unused symbols
1622 # can be removed at link time with --gc-sections.
1623 '-fdata-sections',
1624 '-ffunction-sections',
[email protected]3aacaf952009-04-02 15:34:091625 ],
[email protected]c902f2cba2010-08-06 20:04:181626 'ldflags': [
1627 # Specifically tell the linker to perform optimizations.
1628 # See http://lwn.net/Articles/192624/ .
1629 '-Wl,-O1',
[email protected]27c2e492010-08-06 22:55:221630 '-Wl,--as-needed',
[email protected]c902f2cba2010-08-06 20:04:181631 ],
[email protected]1dd529642010-05-15 01:02:511632 'conditions' : [
1633 ['no_gc_sections==0', {
1634 'ldflags': [
1635 '-Wl,--gc-sections',
1636 ],
1637 }],
[email protected]da1c8d692011-09-20 20:35:011638 ['OS=="android"', {
1639 'cflags': [
1640 '-fomit-frame-pointer',
1641 ],
1642 }],
[email protected]ecf7b6482010-10-13 09:15:201643 ['clang==1', {
1644 'cflags!': [
1645 '-fno-ident',
1646 ],
1647 }],
[email protected]7664ab32011-02-01 23:35:251648 ['profiling==1', {
1649 'cflags': [
1650 '-fno-omit-frame-pointer',
1651 '-g',
1652 ],
1653 }],
[email protected]c75f33e42011-05-04 18:11:521654 # At gyp time, we test the linker for ICF support; this flag
1655 # is then provided to us by gyp. (Currently only gold supports
1656 # an --icf flag.)
[email protected]16d71b0d2011-06-22 00:43:531657 # There seems to be a conflict of --icf and -pie in gold which
1658 # can generate crashy binaries. As a security measure, -pie
1659 # takes precendence for now.
[email protected]409dceef2011-05-10 19:49:121660 ['LINKER_SUPPORTS_ICF==1 and release_valgrind_build==0', {
[email protected]f2fcf4df72011-06-03 20:05:461661 'target_conditions': [
1662 ['_toolset=="target"', {
1663 'ldflags': [
[email protected]16d71b0d2011-06-22 00:43:531664 #'-Wl,--icf=safe',
1665 '-Wl,--icf=none',
[email protected]f2fcf4df72011-06-03 20:05:461666 ]
1667 }]
[email protected]c75f33e42011-05-04 18:11:521668 ]
1669 }],
[email protected]1dd529642010-05-15 01:02:511670 ]
[email protected]3aacaf952009-04-02 15:34:091671 },
1672 },
[email protected]601b540222009-04-03 21:32:041673 'variants': {
1674 'coverage': {
1675 'cflags': ['-fprofile-arcs', '-ftest-coverage'],
1676 'ldflags': ['-fprofile-arcs'],
1677 },
1678 'profile': {
1679 'cflags': ['-pg', '-g'],
1680 'ldflags': ['-pg'],
1681 },
1682 'symbols': {
1683 'cflags': ['-g'],
1684 },
1685 },
[email protected]606116d22009-05-06 22:38:231686 'conditions': [
[email protected]04b482602011-09-14 02:36:211687 ['target_arch=="ia32"', {
1688 'target_conditions': [
1689 ['_toolset=="target"', {
1690 'asflags': [
1691 # Needed so that libs with .s files (e.g. libicudata.a)
1692 # are compatible with the general 32-bit-ness.
1693 '-32',
1694 ],
1695 # All floating-point computations on x87 happens in 80-bit
1696 # precision. Because the C and C++ language standards allow
1697 # the compiler to keep the floating-point values in higher
1698 # precision than what's specified in the source and doing so
1699 # is more efficient than constantly rounding up to 64-bit or
1700 # 32-bit precision as specified in the source, the compiler,
1701 # especially in the optimized mode, tries very hard to keep
1702 # values in x87 floating-point stack (in 80-bit precision)
1703 # as long as possible. This has important side effects, that
1704 # the real value used in computation may change depending on
1705 # how the compiler did the optimization - that is, the value
1706 # kept in 80-bit is different than the value rounded down to
1707 # 64-bit or 32-bit. There are possible compiler options to
1708 # make this behavior consistent (e.g. -ffloat-store would keep
1709 # all floating-values in the memory, thus force them to be
1710 # rounded to its original precision) but they have significant
1711 # runtime performance penalty.
1712 #
1713 # -mfpmath=sse -msse2 makes the compiler use SSE instructions
1714 # which keep floating-point values in SSE registers in its
1715 # native precision (32-bit for single precision, and 64-bit
1716 # for double precision values). This means the floating-point
1717 # value used during computation does not change depending on
1718 # how the compiler optimized the code, since the value is
1719 # always kept in its specified precision.
1720 'conditions': [
1721 ['branding=="Chromium" and disable_sse2==0', {
1722 'cflags': [
1723 '-march=pentium4',
1724 '-msse2',
1725 '-mfpmath=sse',
1726 ],
1727 }],
1728 # ChromeOS targets Pinetrail, which is sse3, but most of the
1729 # benefit comes from sse2 so this setting allows ChromeOS
1730 # to build on other CPUs. In the future -march=atom would
1731 # help but requires a newer compiler.
1732 ['chromeos==1 and disable_sse2==0', {
1733 'cflags': [
1734 '-msse2',
1735 ],
1736 }],
1737 # Install packages have started cropping up with
1738 # different headers between the 32-bit and 64-bit
1739 # versions, so we have to shadow those differences off
1740 # and make sure a 32-bit-on-64-bit build picks up the
1741 # right files.
1742 ['host_arch!="ia32"', {
1743 'include_dirs+': [
1744 '/usr/include32',
1745 ],
1746 }],
1747 ],
1748 # -mmmx allows mmintrin.h to be used for mmx intrinsics.
1749 # video playback is mmx and sse2 optimized.
[email protected]ffde7932009-05-29 00:39:061750 'cflags': [
[email protected]04b482602011-09-14 02:36:211751 '-m32',
1752 '-mmmx',
1753 ],
1754 'ldflags': [
1755 '-m32',
[email protected]ffde7932009-05-29 00:39:061756 ],
1757 }],
[email protected]606116d22009-05-06 22:38:231758 ],
1759 }],
[email protected]3dda8a962009-08-10 18:58:071760 ['target_arch=="arm"', {
[email protected]77c1b29392009-12-04 06:21:291761 'target_conditions': [
1762 ['_toolset=="target"', {
1763 'cflags_cc': [
1764 # The codesourcery arm-2009q3 toolchain warns at that the ABI
1765 # has changed whenever it encounters a varargs function. This
1766 # silences those warnings, as they are not helpful and
1767 # clutter legitimate warnings.
1768 '-Wno-abi',
1769 ],
1770 'conditions': [
[email protected]da1c8d692011-09-20 20:35:011771 ['arm_thumb==1', {
[email protected]77c1b29392009-12-04 06:21:291772 'cflags': [
1773 '-mthumb',
[email protected]77c1b29392009-12-04 06:21:291774 ]
1775 }],
1776 ['armv7==1', {
[email protected]dc9711f2009-11-13 19:30:251777 'cflags': [
1778 '-march=armv7-a',
1779 '-mtune=cortex-a8',
[email protected]dc9711f2009-11-13 19:30:251780 '-mfloat-abi=softfp',
1781 ],
[email protected]eafc0b452010-02-26 21:53:431782 'conditions': [
1783 ['arm_neon==1', {
1784 'cflags': [ '-mfpu=neon', ],
1785 }, {
[email protected]53e0f642010-03-05 01:41:561786 'cflags': [ '-mfpu=<(arm_fpu)', ],
[email protected]eafc0b452010-02-26 21:53:431787 }]
1788 ],
[email protected]dc9711f2009-11-13 19:30:251789 }],
[email protected]da1c8d692011-09-20 20:35:011790 ['OS=="android"', {
1791 # The following flags are derived from what Android uses
1792 # by default when building for arm.
1793 'cflags': [ '-Wno-psabi', ],
1794 'conditions': [
1795 ['arm_thumb == 1', {
1796 # Android toolchain doesn't support -mimplicit-it=thumb
1797 'cflags!': [ '-Wa,-mimplicit-it=thumb', ],
1798 'cflags': [ '-mthumb-interwork', ],
1799 }],
1800 ['armv7==0', {
1801 # Flags suitable for Android emulator
1802 'cflags': [
1803 '-march=armv5te',
1804 '-mtune=xscale',
1805 '-msoft-float',
1806 '-D__ARM_ARCH_5__',
1807 '-D__ARM_ARCH_5T__',
1808 '-D__ARM_ARCH_5E__',
1809 '-D__ARM_ARCH_5TE__',
1810 ],
1811 }],
1812 ],
1813 }],
[email protected]3dda8a962009-08-10 18:58:071814 ],
1815 }],
1816 ],
1817 }],
[email protected]2fb843b2010-08-12 02:11:081818 ['linux_fpic==1', {
[email protected]c76723a2010-01-25 23:10:581819 'cflags': [
1820 '-fPIC',
1821 ],
1822 }],
[email protected]cf90a512011-10-08 00:00:441823 # TODO(rkc): Currently building Chrome with the PIE flag causes
1824 # remote debugging to break (remote debugger does not get correct
1825 # section header offsets hence causing all symbol handling to go
1826 # kaboom). See crosbug.com/15266
1827 # Remove this flag once this issue is fixed.
1828 ['linux_disable_pie==1', {
1829 'target_conditions': [
1830 ['_type=="executable"', {
1831 'ldflags': [
1832 '-nopie',
1833 ],
1834 }],
1835 ],
1836 }],
[email protected]ee28c9f2009-09-04 01:53:011837 ['sysroot!=""', {
[email protected]fd36ce822009-10-28 20:13:571838 'target_conditions': [
1839 ['_toolset=="target"', {
1840 'cflags': [
1841 '--sysroot=<(sysroot)',
1842 ],
1843 'ldflags': [
1844 '--sysroot=<(sysroot)',
1845 ],
1846 }]]
[email protected]ee28c9f2009-09-04 01:53:011847 }],
[email protected]58680ce2010-09-18 00:09:151848 ['clang==1', {
[email protected]18ca15a2011-08-10 03:07:121849 'cflags': [
1850 '-Wheader-hygiene',
1851 # Clang spots more unused functions.
1852 '-Wno-unused-function',
1853 # Don't die on dtoa code that uses a char as an array index.
1854 '-Wno-char-subscripts',
[email protected]d6431722011-09-01 00:46:331855 # Especially needed for gtest macros using enum values from Mac
1856 # system headers.
1857 # TODO(pkasting): In C++11 this is legal, so this should be
1858 # removed when we change to that. (This is also why we don't
1859 # bother fixing all these cases today.)
[email protected]18ca15a2011-08-10 03:07:121860 '-Wno-unnamed-type-template-args',
[email protected]241109b52011-10-15 19:00:301861 # WebKit uses nullptr in a legit way, other that that this warning
1862 # doesn't fire.
1863 '-Wno-c++11-compat',
1864 # This (rightyfully) complains about 'override', which we use
1865 # heavily.
1866 '-Wno-c++11-extensions',
[email protected]18ca15a2011-08-10 03:07:121867 ],
1868 'cflags!': [
1869 # Clang doesn't seem to know know this flag.
1870 '-mfpmath=sse',
1871 ],
[email protected]58680ce2010-09-18 00:09:151872 }],
[email protected]5d451ad2011-02-11 16:43:461873 ['clang==1 and clang_use_chrome_plugins==1', {
[email protected]d23720682011-08-11 00:16:261874 'cflags': [
1875 '<(clang_chrome_plugins_flags)',
1876 ],
[email protected]5d451ad2011-02-11 16:43:461877 }],
[email protected]5e781232011-01-28 02:57:591878 ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
[email protected]d23720682011-08-11 00:16:261879 'cflags': [
1880 '-Xclang', '-load', '-Xclang', '<(clang_load)',
1881 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
1882 ],
[email protected]5e781232011-01-28 02:57:591883 }],
[email protected]92799b632011-08-15 14:33:061884 ['asan==1', {
1885 # Only in the linux section for now, since ASAN doesn't
1886 # work on Mac yet.
1887 'cflags': [
[email protected]74a26d72011-09-29 17:29:031888 '-fasan',
1889 '-w',
[email protected]92799b632011-08-15 14:33:061890 ],
1891 'ldflags': [
1892 '-fasan',
1893 ],
1894 }],
[email protected]cc4219a2009-08-14 05:30:521895 ['no_strict_aliasing==1', {
1896 'cflags': [
1897 '-fno-strict-aliasing',
1898 ],
1899 }],
[email protected]cbd5fd52009-08-26 00:14:271900 ['linux_breakpad==1', {
[email protected]c87efd42010-08-26 18:28:171901 'cflags': [ '-g' ],
[email protected]cbd5fd52009-08-26 00:14:271902 'defines': ['USE_LINUX_BREAKPAD'],
1903 }],
[email protected]d8b60602010-03-26 09:41:221904 ['linux_use_heapchecker==1', {
1905 'variables': {'linux_use_tcmalloc%': 1},
1906 }],
[email protected]61a9b2d82010-02-26 00:31:081907 ['linux_use_tcmalloc==0', {
1908 'defines': ['NO_TCMALLOC'],
[email protected]01699e22009-11-11 19:24:241909 }],
[email protected]d8b60602010-03-26 09:41:221910 ['linux_use_heapchecker==0', {
1911 'defines': ['NO_HEAPCHECKER'],
1912 }],
[email protected]64e2d4a42010-08-27 10:13:211913 ['linux_keep_shadow_stacks==1', {
1914 'defines': ['KEEP_SHADOW_STACKS'],
1915 'cflags': ['-finstrument-functions'],
1916 }],
[email protected]606116d22009-05-06 22:38:231917 ],
[email protected]9d384032009-03-20 23:13:261918 },
1919 }],
[email protected]c51e8d52009-12-11 20:04:061920 # FreeBSD-specific options; note that most FreeBSD options are set above,
1921 # with Linux.
1922 ['OS=="freebsd"', {
1923 'target_defaults': {
1924 'ldflags': [
1925 '-Wl,--no-keep-memory',
1926 ],
1927 },
1928 }],
[email protected]da1c8d692011-09-20 20:35:011929 # Android-specific options; note that most are set above with Linux.
1930 ['OS=="android"', {
1931 'variables': {
1932 'android_target_arch%': 'arm', # target_arch in android terms.
1933 'conditions': [
1934 # Android uses x86 instead of ia32 for their target_arch designation.
1935 ['target_arch=="ia32"', {
1936 'android_target_arch%': 'x86',
1937 }],
1938 # Use shared stlport library when system one used.
1939 # Figure this out early since it needs symbols from libgcc.a, so it
1940 # has to be before that in the set of libraries.
1941 ['use_system_stlport==1', {
1942 'android_stlport_library': 'stlport',
1943 }, {
1944 'android_stlport_library': 'stlport_static',
1945 }],
1946 ],
1947
1948 # Placing this variable here prevents from forking libvpx, used
1949 # by remoting. Remoting is off, so it needn't built,
1950 # so forking it's deps seems like overkill.
1951 # But this variable need defined to properly run gyp.
1952 # A proper solution is to have an OS==android conditional
1953 # in third_party/libvpx/libvpx.gyp to define it.
1954 'libvpx_path': 'lib/linux/arm',
1955 },
1956 'target_defaults': {
1957 # Build a Release build by default to match Android build behavior.
1958 # This is typical with Android because Debug builds tend to be much
1959 # larger and run very slowly on constrained devices. It is still
1960 # possible to do a Debug build by specifying BUILDTYPE=Debug on the
1961 # 'make' command line.
1962 'default_configuration': 'Release',
1963
1964 'variables': {
1965 'release_extra_cflags%': '',
1966 },
1967
1968 'target_conditions': [
1969 # Settings for building device targets using Android's toolchain.
1970 # These are based on the setup.mk file from the Android NDK.
1971 #
1972 # The NDK Android executable link step looks as follows:
1973 # $LDFLAGS
1974 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o
1975 # $(PRIVATE_OBJECTS) <-- The .o that we built
1976 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built
1977 # $(TARGET_LIBGCC) <-- libgcc.a
1978 # $(PRIVATE_SHARED_LIBRARIES) <-- The .so that we built
1979 # $(PRIVATE_LDLIBS) <-- System .so
1980 # $(TARGET_CRTEND_O) <-- crtend.o
1981 #
1982 # For now the above are approximated for executables by adding
1983 # crtbegin.o to the end of the ldflags and 'crtend.o' to the end
1984 # of 'libraries'.
1985 #
1986 # The NDK Android shared library link step looks as follows:
1987 # $LDFLAGS
1988 # $(PRIVATE_OBJECTS) <-- The .o that we built
1989 # -l,--whole-archive
1990 # $(PRIVATE_WHOLE_STATIC_LIBRARIES)
1991 # -l,--no-whole-archive
1992 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built
1993 # $(TARGET_LIBGCC) <-- libgcc.a
1994 # $(PRIVATE_SHARED_LIBRARIES) <-- The .so that we built
1995 # $(PRIVATE_LDLIBS) <-- System .so
1996 #
1997 # For now, assume not need any whole static libs.
1998 #
1999 # For both executables and shared libraries, add the proper
2000 # libgcc.a to the start of libraries which puts it in the
2001 # proper spot after .o and .a files get linked in.
2002 #
2003 # TODO: The proper thing to do longer-tem would be proper gyp
2004 # support for a custom link command line.
2005 ['_toolset=="target"', {
2006 'cflags!': [
2007 '-pthread', # Not supported by Android toolchain.
2008 ],
2009 'cflags': [
2010 '-U__linux__', # Don't allow toolchain to claim -D__linux__
2011 '-ffunction-sections',
2012 '-funwind-tables',
2013 '-g',
2014 '-fstack-protector',
2015 '-fno-short-enums',
2016 '-finline-limit=64',
2017 '-Wa,--noexecstack',
2018 '-Wno-error=non-virtual-dtor', # TODO(michaelbai): Fix warnings.
2019 '<@(release_extra_cflags)',
2020 # Note: This include is in cflags to ensure that it comes after
2021 # all of the includes.
2022 '-I<(android_ndk_include)',
2023 ],
2024 'defines': [
2025 'ANDROID',
2026 '__GNU_SOURCE=1', # Necessary for clone()
2027 'USE_STLPORT=1',
2028 '_STLP_USE_PTR_SPECIALIZATIONS=1',
2029 'HAVE_OFF64_T',
2030 'HAVE_SYS_UIO_H',
2031 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize.
2032 ],
2033 'ldflags!': [
2034 '-pthread', # Not supported by Android toolchain.
2035 ],
2036 'ldflags': [
2037 '-nostdlib',
2038 '-Wl,--no-undefined',
2039 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2040 # Don't export symbols from statically linked libraries.
2041 '-Wl,--exclude-libs=ALL',
2042 ],
2043 'libraries!': [
2044 '-lrt', # librt is built into Bionic.
2045 # Not supported by Android toolchain.
2046 # Where do these come from? Can't find references in
2047 # any Chromium gyp or gypi file. Maybe they come from
2048 # gyp itself?
2049 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lplc4', '-lnspr4',
2050 ],
2051 'libraries': [
2052 '-l<(android_stlport_library)',
2053 # Manually link the libgcc.a that the cross compiler uses.
2054 '<!($CROSS_CC -print-libgcc-file-name)',
2055 '-lc',
2056 '-ldl',
2057 '-lstdc++',
2058 '-lm',
2059 ],
2060 'conditions': [
2061 ['android_build_type==0', {
2062 'ldflags': [
2063 '-Wl,-rpath-link=<(android_ndk_lib)',
2064 '-L<(android_ndk_lib)',
2065 ],
2066 }],
2067 # NOTE: The stlport header include paths below are specified in
2068 # cflags rather than include_dirs because they need to come
2069 # after include_dirs. Think of them like system headers, but
2070 # don't use '-isystem' because the arm-linux-androideabi-4.4.3
2071 # toolchain (circa Gingerbread) will exhibit strange errors.
2072 # The include ordering here is important; change with caution.
2073 ['use_system_stlport==0', {
2074 'cflags': [
2075 '-I<(android_ndk_root)/sources/cxx-stl/stlport/stlport',
2076 ],
2077 'conditions': [
2078 ['target_arch=="arm" and armv7==1', {
2079 'ldflags': [
2080 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeabi-v7a',
2081 ],
2082 }],
2083 ['target_arch=="arm" and armv7==0', {
2084 'ldflags': [
2085 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeabi',
2086 ],
2087 }],
2088 ['target_arch=="ia32"', {
2089 'ldflags': [
2090 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/x86',
2091 ],
2092 }],
2093 ],
2094 }],
2095 ['target_arch=="ia32"', {
2096 # The x86 toolchain currently has problems with stack-protector.
2097 'cflags!': [
2098 '-fstack-protector',
2099 ],
2100 'cflags': [
2101 '-fno-stack-protector',
2102 ],
2103 }],
2104 ],
2105 'target_conditions': [
2106 ['_type=="executable"', {
2107 'ldflags': [
2108 '-Bdynamic',
2109 '-Wl,-dynamic-linker,/system/bin/linker',
2110 '-Wl,--gc-sections',
2111 '-Wl,-z,nocopyreloc',
2112 # crtbegin_dynamic.o should be the last item in ldflags.
2113 '<(android_ndk_lib)/crtbegin_dynamic.o',
2114 ],
2115 'libraries': [
2116 # crtend_android.o needs to be the last item in libraries.
2117 # Do not add any libraries after this!
2118 '<(android_ndk_lib)/crtend_android.o',
2119 ],
2120 }],
2121 ['_type=="shared_library"', {
2122 'ldflags': [
2123 '-Wl,-shared,-Bsymbolic',
2124 ],
2125 }],
2126 ],
2127 }],
2128 # Settings for building host targets using the system toolchain.
2129 ['_toolset=="host"', {
2130 'ldflags!': [
2131 '-Wl,-z,noexecstack',
2132 '-Wl,--gc-sections',
2133 '-Wl,-O1',
2134 '-Wl,--as-needed',
2135 ],
[email protected]965b6b22011-09-29 16:07:282136 'sources/': [
2137 ['exclude', '_android(_unittest)?\\.cc$'],
2138 ['exclude', '(^|/)android/']
2139 ],
[email protected]da1c8d692011-09-20 20:35:012140 }],
2141 ],
2142 },
2143 }],
[email protected]93f21e42010-04-01 00:35:152144 ['OS=="solaris"', {
2145 'cflags!': ['-fvisibility=hidden'],
2146 'cflags_cc!': ['-fvisibility-inlines-hidden'],
2147 }],
[email protected]2f80c312009-02-25 21:26:552148 ['OS=="mac"', {
2149 'target_defaults': {
[email protected]24700642009-06-01 16:01:202150 'variables': {
[email protected]162407f2011-09-08 15:33:172151 # These should end with %, but there seems to be a bug with % in
2152 # variables that are intended to be set to different values in
2153 # different targets, like these.
2154 'mac_pie': 1, # Most executables can be position-independent.
[email protected]24700642009-06-01 16:01:202155 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
[email protected]177cd082011-10-04 18:36:382156 'mac_strip': 1, # Strip debugging symbols from the target.
[email protected]24700642009-06-01 16:01:202157 },
[email protected]d92c7c012009-03-19 19:26:422158 'mac_bundle': 0,
[email protected]2f80c312009-02-25 21:26:552159 'xcode_settings': {
2160 'ALWAYS_SEARCH_USER_PATHS': 'NO',
[email protected]ab2956372009-08-13 18:11:042161 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99
2162 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
2163 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
2164 # (Equivalent to -fPIC)
2165 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
2166 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
2167 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
[email protected]3224dcd2009-09-16 17:31:252168 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
2169 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
[email protected]ab2956372009-08-13 18:11:042170 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors
2171 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
2172 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
2173 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
[email protected]2f80c312009-02-25 21:26:552174 'GCC_VERSION': '4.2',
[email protected]ab2956372009-08-13 18:11:042175 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
[email protected]3224dcd2009-09-16 17:31:252176 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min
2177 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
[email protected]ab2956372009-08-13 18:11:042178 'PREBINDING': 'NO', # No -Wl,-prebind
[email protected]e1ece302011-09-15 03:58:112179 # Keep pch files below xcodebuild/.
2180 'SHARED_PRECOMPS_DIR': '$(CONFIGURATION_BUILD_DIR)/SharedPrecompiledHeaders',
[email protected]2f80c312009-02-25 21:26:552181 'USE_HEADERMAP': 'NO',
[email protected]57e94022011-05-04 15:33:192182 'OTHER_CFLAGS': [
2183 '-fno-strict-aliasing', # See http://crbug.com/32204
2184 ],
[email protected]080e86f2010-06-21 15:19:042185 'WARNING_CFLAGS': [
2186 '-Wall',
2187 '-Wendif-labels',
2188 '-Wextra',
2189 # Don't warn about unused function parameters.
2190 '-Wno-unused-parameter',
2191 # Don't warn about the "struct foo f = {0};" initialization
2192 # pattern.
2193 '-Wno-missing-field-initializers',
2194 ],
[email protected]b3fb8092009-03-12 19:09:242195 'conditions': [
2196 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
[email protected]9543af052009-09-15 22:42:592197 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
2198 ],
[email protected]66733172010-09-22 00:09:282199 ['clang==1', {
[email protected]34f40892011-09-06 21:53:302200 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang',
2201 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++',
[email protected]a79fd882011-10-03 18:22:382202
2203 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default
2204 # when buliding with clang. This warning is triggered when the
2205 # override keyword is used via the OVERRIDE macro from
2206 # base/compiler_specific.h.
2207 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO',
2208
[email protected]34f40892011-09-06 21:53:302209 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
[email protected]66733172010-09-22 00:09:282210 'WARNING_CFLAGS': [
[email protected]7f8d486f2011-04-05 19:49:072211 '-Wheader-hygiene',
[email protected]66733172010-09-22 00:09:282212 # Don't die on dtoa code that uses a char as an array index.
2213 # This is required solely for base/third_party/dmg_fp/dtoa.cc.
2214 '-Wno-char-subscripts',
[email protected]25d3bb722010-11-22 14:31:452215 # Clang spots more unused functions.
2216 '-Wno-unused-function',
[email protected]d6431722011-09-01 00:46:332217 # See comments on this flag higher up in this file.
[email protected]0fa0fbc2010-10-12 04:32:052218 '-Wno-unnamed-type-template-args',
[email protected]241109b52011-10-15 19:00:302219 # WebKit uses nullptr in a legit way, other that that this
2220 # warning doesn't fire.
2221 '-Wno-c++0x-compat',
2222 # This (rightyfully) complains about 'override', which we use
2223 # heavily.
2224 '-Wno-c++11-extensions',
[email protected]66733172010-09-22 00:09:282225 ],
2226 }],
[email protected]5d451ad2011-02-11 16:43:462227 ['clang==1 and clang_use_chrome_plugins==1', {
2228 'OTHER_CFLAGS': [
2229 '<(clang_chrome_plugins_flags)',
2230 ],
2231 }],
[email protected]5e781232011-01-28 02:57:592232 ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
2233 'OTHER_CFLAGS': [
2234 '-Xclang', '-load', '-Xclang', '<(clang_load)',
2235 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
2236 ],
2237 }],
[email protected]b3fb8092009-03-12 19:09:242238 ],
[email protected]2f80c312009-02-25 21:26:552239 },
[email protected]34f40892011-09-06 21:53:302240 'conditions': [
2241 ['clang==1', {
2242 'variables': {
2243 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin',
2244 },
2245 }],
2246 ],
[email protected]2f80c312009-02-25 21:26:552247 'target_conditions': [
[email protected]2f80c312009-02-25 21:26:552248 ['_type!="static_library"', {
[email protected]5d7dc972009-04-16 15:30:462249 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
2250 }],
2251 ['_mac_bundle', {
2252 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
[email protected]87fde4a2009-02-28 00:50:082253 }],
[email protected]6303fed2011-08-11 01:12:102254 ['_type=="executable"', {
2255 'postbuilds': [
2256 {
2257 # Arranges for data (heap) pages to be protected against
[email protected]8c40f322011-08-24 03:33:362258 # code execution when running on Mac OS X 10.7 ("Lion"), and
2259 # ensures that the position-independent executable (PIE) bit
2260 # is set for ASLR when running on Mac OS X 10.5 ("Leopard").
[email protected]6303fed2011-08-11 01:12:102261 'variables': {
[email protected]8c40f322011-08-24 03:33:362262 # Define change_mach_o_flags in a variable ending in _path
2263 # so that GYP understands it's a path and performs proper
2264 # relativization during dict merging.
2265 'change_mach_o_flags_path':
2266 'mac/change_mach_o_flags_from_xcode.sh',
[email protected]162407f2011-09-08 15:33:172267 'change_mach_o_flags_options%': [
[email protected]081c0342011-08-24 14:59:132268 ],
2269 'target_conditions': [
[email protected]162407f2011-09-08 15:33:172270 ['mac_pie==0 or release_valgrind_build==1', {
2271 # Don't enable PIE if it's unwanted. It's unwanted if
2272 # the target specifies mac_pie=0 or if building for
2273 # Valgrind, because Valgrind doesn't understand slide.
2274 # See the similar mac_pie/release_valgrind_build check
2275 # below.
[email protected]081c0342011-08-24 14:59:132276 'change_mach_o_flags_options': [
[email protected]081c0342011-08-24 14:59:132277 '--no-pie',
2278 ],
2279 }],
2280 ],
[email protected]6303fed2011-08-11 01:12:102281 },
[email protected]8c40f322011-08-24 03:33:362282 'postbuild_name': 'Change Mach-O Flags',
2283 'action': [
2284 '<(change_mach_o_flags_path)',
[email protected]081c0342011-08-24 14:59:132285 '>@(change_mach_o_flags_options)',
[email protected]8c40f322011-08-24 03:33:362286 ],
[email protected]6303fed2011-08-11 01:12:102287 },
2288 ],
[email protected]5a5d97aa2011-09-02 15:34:002289 'conditions': [
2290 ['asan==1', {
2291 'variables': {
2292 'asan_saves_file': 'asan.saves',
2293 },
2294 'xcode_settings': {
2295 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)'
2296 },
2297 }],
2298 ],
[email protected]162407f2011-09-08 15:33:172299 'target_conditions': [
2300 ['mac_pie==1 and release_valgrind_build==0', {
2301 # Turn on position-independence (ASLR) for executables. When
2302 # PIE is on for the Chrome executables, the framework will
2303 # also be subject to ASLR.
2304 # Don't do this when building for Valgrind, because Valgrind
2305 # doesn't understand slide. TODO: Make Valgrind on Mac OS X
2306 # understand slide, and get rid of the Valgrind check.
2307 'xcode_settings': {
2308 'OTHER_LDFLAGS': [
2309 '-Wl,-pie', # Position-independent executable (MH_PIE)
2310 ],
2311 },
2312 }],
2313 ],
[email protected]6a0242bc2011-07-01 00:34:462314 }],
[email protected]9a5e72862010-09-02 16:16:582315 ['(_type=="executable" or _type=="shared_library" or \
2316 _type=="loadable_module") and mac_strip!=0', {
[email protected]24700642009-06-01 16:01:202317 'target_conditions': [
2318 ['mac_real_dsym == 1', {
2319 # To get a real .dSYM bundle produced by dsymutil, set the
2320 # debug information format to dwarf-with-dsym. Since
2321 # strip_from_xcode will not be used, set Xcode to do the
2322 # stripping as well.
2323 'configurations': {
[email protected]5153767c2009-12-22 01:52:502324 'Release_Base': {
[email protected]24700642009-06-01 16:01:202325 'xcode_settings': {
2326 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
2327 'DEPLOYMENT_POSTPROCESSING': 'YES',
2328 'STRIP_INSTALLED_PRODUCT': 'YES',
[email protected]e14a9f92009-08-05 19:26:072329 'target_conditions': [
[email protected]c2111422010-06-01 18:30:252330 ['_type=="shared_library" or _type=="loadable_module"', {
[email protected]e14a9f92009-08-05 19:26:072331 # The Xcode default is to strip debugging symbols
2332 # only (-S). Local symbols should be stripped as
2333 # well, which will be handled by -x. Xcode will
2334 # continue to insert -S when stripping even when
2335 # additional flags are added with STRIPFLAGS.
2336 'STRIPFLAGS': '-x',
[email protected]c2111422010-06-01 18:30:252337 }], # _type=="shared_library" or _type=="loadable_module"'
[email protected]e14a9f92009-08-05 19:26:072338 ], # target_conditions
2339 }, # xcode_settings
2340 }, # configuration "Release"
2341 }, # configurations
[email protected]24700642009-06-01 16:01:202342 }, { # mac_real_dsym != 1
2343 # To get a fast fake .dSYM bundle, use a post-build step to
2344 # produce the .dSYM and strip the executable. strip_from_xcode
2345 # only operates in the Release configuration.
2346 'postbuilds': [
2347 {
2348 'variables': {
2349 # Define strip_from_xcode in a variable ending in _path
2350 # so that gyp understands it's a path and performs proper
2351 # relativization during dict merging.
2352 'strip_from_xcode_path': 'mac/strip_from_xcode',
2353 },
2354 'postbuild_name': 'Strip If Needed',
2355 'action': ['<(strip_from_xcode_path)'],
2356 },
[email protected]e14a9f92009-08-05 19:26:072357 ], # postbuilds
2358 }], # mac_real_dsym
2359 ], # target_conditions
[email protected]9a5e72862010-09-02 16:16:582360 }], # (_type=="executable" or _type=="shared_library" or
2361 # _type=="loadable_module") and mac_strip!=0
[email protected]e14a9f92009-08-05 19:26:072362 ], # target_conditions
2363 }, # target_defaults
2364 }], # OS=="mac"
[email protected]2f80c312009-02-25 21:26:552365 ['OS=="win"', {
2366 'target_defaults': {
2367 'defines': [
[email protected]a89e0942011-09-26 16:06:472368 '_WIN32_WINNT=0x0601',
2369 'WINVER=0x0601',
[email protected]2f80c312009-02-25 21:26:552370 'WIN32',
2371 '_WINDOWS',
[email protected]2f80c312009-02-25 21:26:552372 'NOMINMAX',
[email protected]e3116282011-08-13 00:52:282373 'PSAPI_VERSION=1',
[email protected]2f80c312009-02-25 21:26:552374 '_CRT_RAND_S',
2375 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
2376 'WIN32_LEAN_AND_MEAN',
[email protected]7a812dd62010-06-30 18:52:272377 '_ATL_NO_OPENGL',
[email protected]adfb98c2009-06-23 20:08:452378 '_HAS_TR1=0',
[email protected]2f80c312009-02-25 21:26:552379 ],
[email protected]8974e042010-06-21 18:06:522380 'conditions': [
2381 ['component=="static_library"', {
2382 'defines': [
2383 '_HAS_EXCEPTIONS=0',
2384 ],
2385 }],
[email protected]3e2648a2011-03-21 20:58:502386 ['secure_atl', {
2387 'defines': [
2388 '_SECURE_ATL',
2389 ],
2390 }],
[email protected]8974e042010-06-21 18:06:522391 ],
[email protected]5b5ca7cb2009-07-20 23:00:202392 'msvs_system_include_dirs': [
[email protected]998b5152009-12-12 22:19:522393 '<(DEPTH)/third_party/platformsdk_win7/files/Include',
[email protected]a78da50e2010-06-09 21:31:372394 '<(DEPTH)/third_party/directxsdk/files/Include',
[email protected]2f80c312009-02-25 21:26:552395 '$(VSInstallDir)/VC/atlmfc/include',
2396 ],
[email protected]a8d99cef2009-08-26 20:47:492397 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
[email protected]942c3a60f2011-05-03 02:04:112398 'msvs_disabled_warnings': [4351, 4396, 4503, 4819,
2399 # TODO(maruel): These warnings are level 4. They will be slowly
2400 # removed as code is fixed.
2401 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245,
2402 4310, 4355, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701,
2403 4702, 4706,
2404 ],
[email protected]2f80c312009-02-25 21:26:552405 'msvs_settings': {
2406 'VCCLCompilerTool': {
2407 'MinimalRebuild': 'false',
[email protected]2f80c312009-02-25 21:26:552408 'BufferSecurityCheck': 'true',
2409 'EnableFunctionLevelLinking': 'true',
2410 'RuntimeTypeInfo': 'false',
[email protected]942c3a60f2011-05-03 02:04:112411 'WarningLevel': '4',
[email protected]2f80c312009-02-25 21:26:552412 'WarnAsError': 'true',
2413 'DebugInformationFormat': '3',
[email protected]3fef6e62009-07-31 19:58:582414 'conditions': [
[email protected]3e2648a2011-03-21 20:58:502415 ['msvs_multi_core_compile', {
[email protected]1f9471a2010-01-04 06:40:162416 'AdditionalOptions': ['/MP'],
[email protected]912c55c2009-07-31 23:33:552417 }],
[email protected]3e2648a2011-03-21 20:58:502418 ['MSVS_VERSION=="2005e"', {
2419 'AdditionalOptions': ['/w44068'], # Unknown pragma to 4 (ATL)
2420 }],
[email protected]8974e042010-06-21 18:06:522421 ['component=="shared_library"', {
2422 'ExceptionHandling': '1', # /EHsc
2423 }, {
2424 'ExceptionHandling': '0',
2425 }],
[email protected]3fef6e62009-07-31 19:58:582426 ],
[email protected]2f80c312009-02-25 21:26:552427 },
2428 'VCLibrarianTool': {
[email protected]1f9471a2010-01-04 06:40:162429 'AdditionalOptions': ['/ignore:4221'],
[email protected]a78da50e2010-06-09 21:31:372430 'AdditionalLibraryDirectories': [
2431 '<(DEPTH)/third_party/platformsdk_win7/files/Lib',
2432 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
2433 ],
[email protected]2f80c312009-02-25 21:26:552434 },
2435 'VCLinkerTool': {
[email protected]2f80c312009-02-25 21:26:552436 'AdditionalDependencies': [
2437 'wininet.lib',
[email protected]b1d8c252011-01-13 20:27:502438 'dnsapi.lib',
[email protected]2f80c312009-02-25 21:26:552439 'version.lib',
2440 'msimg32.lib',
2441 'ws2_32.lib',
2442 'usp10.lib',
2443 'psapi.lib',
[email protected]96fd0032009-04-24 00:13:082444 'dbghelp.lib',
[email protected]dfdf7ee2011-04-28 18:51:482445 'winmm.lib',
2446 'shlwapi.lib',
[email protected]2f80c312009-02-25 21:26:552447 ],
[email protected]4de39f82011-03-28 12:01:292448 'conditions': [
[email protected]3e2648a2011-03-21 20:58:502449 ['msvs_express', {
2450 # Explicitly required when using the ATL with express
2451 'AdditionalDependencies': [
2452 'atlthunk.lib',
2453 ],
2454 }],
2455 ['MSVS_VERSION=="2005e"', {
2456 # Non-express versions link automatically to these
2457 'AdditionalDependencies': [
2458 'advapi32.lib',
2459 'comdlg32.lib',
2460 'ole32.lib',
2461 'shell32.lib',
2462 'user32.lib',
2463 'winspool.lib',
2464 ],
2465 }],
2466 ],
[email protected]a78da50e2010-06-09 21:31:372467 'AdditionalLibraryDirectories': [
2468 '<(DEPTH)/third_party/platformsdk_win7/files/Lib',
2469 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
2470 ],
[email protected]2f80c312009-02-25 21:26:552471 'GenerateDebugInformation': 'true',
2472 'MapFileName': '$(OutDir)\\$(TargetName).map',
2473 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
[email protected]2f80c312009-02-25 21:26:552474 'FixedBaseAddress': '1',
[email protected]825ff8d2009-05-22 01:40:482475 # SubSystem values:
2476 # 0 == not set
2477 # 1 == /SUBSYSTEM:CONSOLE
2478 # 2 == /SUBSYSTEM:WINDOWS
2479 # Most of the executables we'll ever create are tests
2480 # and utilities with console output.
2481 'SubSystem': '1',
[email protected]2f80c312009-02-25 21:26:552482 },
2483 'VCMIDLTool': {
2484 'GenerateStublessProxies': 'true',
2485 'TypeLibraryName': '$(InputName).tlb',
2486 'OutputDirectory': '$(IntDir)',
2487 'HeaderFileName': '$(InputName).h',
2488 'DLLDataFileName': 'dlldata.c',
2489 'InterfaceIdentifierFileName': '$(InputName)_i.c',
2490 'ProxyFileName': '$(InputName)_p.c',
2491 },
2492 'VCResourceCompilerTool': {
2493 'Culture' : '1033',
[email protected]4d91cbc2010-05-07 20:41:382494 'AdditionalIncludeDirectories': [
2495 '<(DEPTH)',
2496 '<(SHARED_INTERMEDIATE_DIR)',
2497 ],
[email protected]2f80c312009-02-25 21:26:552498 },
2499 },
2500 },
2501 }],
[email protected]79e2336c2011-05-12 18:18:342502 ['disable_nacl==1', {
[email protected]d8c7cbcc2009-10-02 19:00:312503 'target_defaults': {
2504 'defines': [
2505 'DISABLE_NACL',
2506 ],
2507 },
2508 }],
[email protected]cfbf9bc2009-12-07 22:07:562509 ['OS=="win" and msvs_use_common_linker_extras', {
[email protected]48c7af72009-07-03 22:00:192510 'target_defaults': {
2511 'msvs_settings': {
2512 'VCLinkerTool': {
[email protected]48c7af72009-07-03 22:00:192513 'DelayLoadDLLs': [
2514 'dbghelp.dll',
2515 'dwmapi.dll',
2516 'uxtheme.dll',
2517 ],
2518 },
2519 },
[email protected]ef4fa4072009-12-04 22:46:502520 'configurations': {
[email protected]5153767c2009-12-22 01:52:502521 'x86_Base': {
[email protected]ef4fa4072009-12-04 22:46:502522 'msvs_settings': {
2523 'VCLinkerTool': {
[email protected]1f9471a2010-01-04 06:40:162524 'AdditionalOptions': [
2525 '/safeseh',
2526 '/dynamicbase',
2527 '/ignore:4199',
2528 '/ignore:4221',
2529 '/nxcompat',
2530 ],
[email protected]ef4fa4072009-12-04 22:46:502531 },
2532 },
2533 },
[email protected]5153767c2009-12-22 01:52:502534 'x64_Base': {
[email protected]ef4fa4072009-12-04 22:46:502535 'msvs_settings': {
2536 'VCLinkerTool': {
[email protected]1f9471a2010-01-04 06:40:162537 'AdditionalOptions': [
[email protected]ef4fa4072009-12-04 22:46:502538 # safeseh is not compatible with x64
[email protected]1f9471a2010-01-04 06:40:162539 '/dynamicbase',
2540 '/ignore:4199',
2541 '/ignore:4221',
2542 '/nxcompat',
2543 ],
[email protected]ef4fa4072009-12-04 22:46:502544 },
2545 },
2546 },
2547 },
[email protected]48c7af72009-07-03 22:00:192548 },
2549 }],
[email protected]9821d0d2010-04-16 22:40:372550 ['enable_new_npdevice_api==1', {
2551 'target_defaults': {
2552 'defines': [
2553 'ENABLE_NEW_NPDEVICE_API',
2554 ],
2555 },
2556 }],
[email protected]34f40892011-09-06 21:53:302557 ['clang==1', {
2558 'make_global_settings': [
[email protected]e4ddf332011-10-20 21:52:242559 ['CC', '<(make_clang_dir)/bin/clang'],
2560 ['CXX', '<(make_clang_dir)/bin/clang++'],
[email protected]60550c82011-09-06 23:51:072561 ['LINK', '$(CXX)'],
[email protected]34f40892011-09-06 21:53:302562 ['CC.host', '$(CC)'],
2563 ['CXX.host', '$(CXX)'],
2564 ['LINK.host', '$(LINK)'],
2565 ],
2566 }],
[email protected]2f80c312009-02-25 21:26:552567 ],
2568 'xcode_settings': {
[email protected]0c8ab452009-11-06 21:57:502569 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
2570 # This block adds *project-wide* configuration settings to each project
2571 # file. It's almost always wrong to put things here. Specify your
2572 # custom xcode_settings in target_defaults to add them to targets instead.
2573
2574 # In an Xcode Project Info window, the "Base SDK for All Configurations"
2575 # setting sets the SDK on a project-wide basis. In order to get the
2576 # configured SDK to show properly in the Xcode UI, SDKROOT must be set
2577 # here at the project level.
2578 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
2579
[email protected]2f80c312009-02-25 21:26:552580 # The Xcode generator will look for an xcode_settings section at the root
2581 # of each dict and use it to apply settings on a file-wide basis. Most
2582 # settings should not be here, they should be in target-specific
2583 # xcode_settings sections, or better yet, should use non-Xcode-specific
2584 # settings in target dicts. SYMROOT is a special case, because many other
2585 # Xcode variables depend on it, including variables such as
2586 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2587 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2588 # files to appear (when present) in the UI as actual files and not red
2589 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2590 # and therefore SYMROOT, needs to be set at the project level.
[email protected]bfa24b962009-03-02 00:16:162591 'SYMROOT': '<(DEPTH)/xcodebuild',
[email protected]2f80c312009-02-25 21:26:552592 },
[email protected]ee28c9f2009-09-04 01:53:012593}