blob: 11748279bbeb5e145943b1b0deea37e6f2f5a163 [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]bb6aba32011-01-07 19:04:4324 # Disable touch support by default.
25 'touchui%': 0,
26 },
27 # Copy conditionally-set variables out one scope.
28 'chromeos%': '<(chromeos)',
29 'touchui%': '<(touchui)',
[email protected]e72e55b2011-01-06 22:19:3030
[email protected]e72e55b2011-01-06 22:19:3031 # Compute the architecture that we're building on.
32 'conditions': [
[email protected]c49ab0c2011-05-18 17:25:3733 [ 'OS=="win" or OS=="mac"', {
34 'host_arch%': 'ia32',
35 }, {
[email protected]79e2336c2011-05-12 18:18:3436 # This handles the Unix platforms for which there is some support.
37 # Anything else gets passed through, which probably won't work very
38 # well; such hosts should pass an explicit target_arch to gyp.
[email protected]e72e55b2011-01-06 22:19:3039 'host_arch%':
[email protected]79e2336c2011-05-12 18:18:3440 '<!(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:3041 }],
[email protected]bb6aba32011-01-07 19:04:4342
43 # Set default value of toolkit_views on for Windows, Chrome OS
44 # and the touch UI.
45 ['OS=="win" or chromeos==1 or touchui==1', {
46 'toolkit_views%': 1,
47 }, {
48 'toolkit_views%': 0,
49 }],
[email protected]e72e55b2011-01-06 22:19:3050 ],
51 },
52
53 # Copy conditionally-set variables out one scope.
54 'chromeos%': '<(chromeos)',
55 'touchui%': '<(touchui)',
56 'host_arch%': '<(host_arch)',
[email protected]bb6aba32011-01-07 19:04:4357 'toolkit_views%': '<(toolkit_views)',
[email protected]e72e55b2011-01-06 22:19:3058
[email protected]8fb0ef02011-05-20 00:53:5059 # We used to provide a variable for changing how libraries were built.
60 # This variable remains until we can clean up all the users.
61 # This needs to be one nested variables dict in so that dependent
62 # gyp files can make use of it in their outer variables. (Yikes!)
63 # http://code.google.com/p/chromium/issues/detail?id=83308
64 'library%': 'static_library',
65
[email protected]e14a9f92009-08-05 19:26:0766 # Override branding to select the desired branding flavor.
67 'branding%': 'Chromium',
68
69 # Override buildtype to select the desired build flavor.
70 # Dev - everyday build for development/testing
71 # Official - release build (generally implies additional processing)
72 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
73 # conversion is done), some of the things which are now controlled by
74 # 'branding', such as symbol generation, will need to be refactored based
75 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official
76 # builds).
77 'buildtype%': 'Dev',
[email protected]cbd5fd52009-08-26 00:14:2778
[email protected]e72e55b2011-01-06 22:19:3079 # Default architecture we're building for is the architecture we're
80 # building on.
81 'target_arch%': '<(host_arch)',
[email protected]b3f23ba2010-04-26 22:58:1782
[email protected]e72e55b2011-01-06 22:19:3083 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
84 # are built under a chromium full build (1) or a webkit.org chromium
85 # build (0).
86 'inside_chromium_build%': 1,
[email protected]8974e042010-06-21 18:06:5287
[email protected]e72e55b2011-01-06 22:19:3088 # Set to 1 to enable fast builds. It disables debug info for fastest
89 # compilation.
90 'fastbuild%': 0,
[email protected]93012ca2010-08-10 20:10:4991
[email protected]3d38d8e2011-04-16 20:48:5192 # Disable file manager component extension by default.
93 'file_manager_extension%': 0,
94
[email protected]e72e55b2011-01-06 22:19:3095 # Python version.
96 'python_ver%': '2.5',
[email protected]b3f23ba2010-04-26 22:58:1797
[email protected]e72e55b2011-01-06 22:19:3098 # Set ARM-v7 compilation flags
99 'armv7%': 0,
100
101 # Set Neon compilation flags (only meaningful if armv7==1).
102 'arm_neon%': 1,
103
104 # The system root for cross-compiles. Default: none.
105 'sysroot%': '',
106
107 # On Linux, we build with sse2 for Chromium builds.
108 'disable_sse2%': 0,
109
110 # Use libjpeg-turbo as the JPEG codec used by Chromium.
[email protected]32e56e52011-02-28 02:28:03111 'use_libjpeg_turbo%': 1,
[email protected]e72e55b2011-01-06 22:19:30112
113 # Variable 'component' is for cases where we would like to build some
114 # components as dynamic shared libraries but still need variable
115 # 'library' for static libraries.
116 # By default, component is set to whatever library is set to and
117 # it can be overriden by the GYP command line or by ~/.gyp/include.gypi.
[email protected]5a547332011-05-19 23:18:53118 'component%': 'static_library',
[email protected]e72e55b2011-01-06 22:19:30119
[email protected]bb6aba32011-01-07 19:04:43120 # Set to select the Title Case versions of strings in GRD files.
121 'use_titlecase_in_grd_files%': 0,
[email protected]63692212010-09-16 00:22:21122
[email protected]98da0042011-02-02 00:10:27123 # Use translations provided by volunteers at launchpad.net. This
124 # currently only works on Linux.
[email protected]00dc155832011-02-01 18:51:19125 'use_third_party_translations%': 0,
126
[email protected]9a425422011-01-11 00:53:18127 # Remoting compilation is enabled by default. Set to 0 to disable.
128 'remoting%': 1,
129
[email protected]a026daa2011-04-20 15:49:51130 # P2P APIs are compiled in by default. Set to 0 to disable.
131 # Also note that this should be enabled for remoting to compile.
132 'p2p_apis%': 1,
133
[email protected]5d451ad2011-02-11 16:43:46134 # If this is set, the clang plugins used on the buildbot will be used.
135 # Run tools/clang/scripts/update.sh to make sure they are compiled.
136 # This causes 'clang_chrome_plugins_flags' to be set.
137 # Has no effect if 'clang' is not set as well.
138 'clang_use_chrome_plugins%': 0,
139
[email protected]bb6aba32011-01-07 19:04:43140 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34141 # A flag for POSIX platforms
[email protected]c49ab0c2011-05-18 17:25:37142 ['OS=="win"', {
[email protected]79e2336c2011-05-12 18:18:34143 'os_posix%': 0,
[email protected]c49ab0c2011-05-18 17:25:37144 }, {
145 'os_posix%': 1,
[email protected]79e2336c2011-05-12 18:18:34146 }],
147
148 # Flags to use Gtk and X11 on non-Mac POSIX platforms
[email protected]c49ab0c2011-05-18 17:25:37149 ['OS=="win" or OS=="mac"', {
[email protected]79e2336c2011-05-12 18:18:34150 'toolkit_uses_gtk%': 0,
151 'use_x11%': 0,
[email protected]c49ab0c2011-05-18 17:25:37152 }, {
153 'toolkit_uses_gtk%': 1,
154 'use_x11%': 1,
[email protected]79e2336c2011-05-12 18:18:34155 }],
156
[email protected]63692212010-09-16 00:22:21157 # A flag to enable or disable our compile-time dependency
158 # on gnome-keyring. If that dependency is disabled, no gnome-keyring
159 # support will be available. This option is useful
160 # for Linux distributions.
161 ['chromeos==1', {
162 'use_gnome_keyring%': 0,
163 }, {
164 'use_gnome_keyring%': 1,
165 }],
[email protected]0afe5212010-10-01 18:56:11166
167 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared
168 # libraries on linux x86-64 and arm.
169 ['host_arch=="ia32"', {
170 'linux_fpic%': 0,
171 }, {
172 'linux_fpic%': 1,
173 }],
[email protected]1b4209f2011-01-07 00:25:40174
[email protected]bb6aba32011-01-07 19:04:43175 ['toolkit_views==0 or OS=="mac"', {
176 # GTK+ and Mac wants Title Case strings
177 'use_titlecase_in_grd_files%': 1,
178 }],
179
[email protected]1b4209f2011-01-07 00:25:40180 # Enable some hacks to support Flapper only on Chrome OS.
181 ['chromeos==1', {
182 'enable_flapper_hacks%': 1,
183 }, {
184 'enable_flapper_hacks%': 0,
185 }],
[email protected]3d38d8e2011-04-16 20:48:51186
187 # Enable file manager extension by default on Chrome OS.
188 ['chromeos==1', {
189 'file_manager_extension%': 1,
190 }, {
191 'file_manager_extension%': 0,
192 }],
[email protected]b3f23ba2010-04-26 22:58:17193 ],
[email protected]e14a9f92009-08-05 19:26:07194 },
195
[email protected]e72e55b2011-01-06 22:19:30196 # Copy conditionally-set variables out one scope.
[email protected]e14a9f92009-08-05 19:26:07197 'branding%': '<(branding)',
198 'buildtype%': '<(buildtype)',
[email protected]e0d00142009-09-18 22:10:27199 'target_arch%': '<(target_arch)',
[email protected]cf185b32010-01-12 04:29:59200 'host_arch%': '<(host_arch)',
[email protected]8fb0ef02011-05-20 00:53:50201 'library%': 'static_library',
[email protected]c153e5352009-09-22 12:37:44202 'toolkit_views%': '<(toolkit_views)',
[email protected]79e2336c2011-05-12 18:18:34203 'os_posix%': '<(os_posix)',
204 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
205 'use_x11%': '<(use_x11)',
[email protected]63692212010-09-16 00:22:21206 'use_gnome_keyring%': '<(use_gnome_keyring)',
[email protected]0afe5212010-10-01 18:56:11207 'linux_fpic%': '<(linux_fpic)',
[email protected]1b4209f2011-01-07 00:25:40208 'enable_flapper_hacks%': '<(enable_flapper_hacks)',
[email protected]c153e5352009-09-22 12:37:44209 'chromeos%': '<(chromeos)',
[email protected]93012ca2010-08-10 20:10:49210 'touchui%': '<(touchui)',
[email protected]e47c32032011-03-01 19:26:20211 'file_manager_extension%': '<(file_manager_extension)',
[email protected]b2f030c2009-09-24 20:36:21212 'inside_chromium_build%': '<(inside_chromium_build)',
[email protected]9c1949e2009-10-02 19:59:54213 'fastbuild%': '<(fastbuild)',
[email protected]a76fe1a2010-03-01 23:39:36214 'python_ver%': '<(python_ver)',
[email protected]eafc0b452010-02-26 21:53:43215 'armv7%': '<(armv7)',
216 'arm_neon%': '<(arm_neon)',
[email protected]4d83eb72010-03-04 16:42:23217 'sysroot%': '<(sysroot)',
[email protected]ac120ff2010-04-28 02:14:22218 'disable_sse2%': '<(disable_sse2)',
[email protected]8974e042010-06-21 18:06:52219 'component%': '<(component)',
[email protected]bb6aba32011-01-07 19:04:43220 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)',
[email protected]9e94cca2011-02-04 17:38:17221 'use_third_party_translations%': '<(use_third_party_translations)',
[email protected]9a425422011-01-11 00:53:18222 'remoting%': '<(remoting)',
[email protected]a026daa2011-04-20 15:49:51223 'p2p_apis%': '<(p2p_apis)',
[email protected]5d451ad2011-02-11 16:43:46224 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
[email protected]e14a9f92009-08-05 19:26:07225
[email protected]caa95c82009-11-23 22:39:32226 # The release channel that this build targets. This is used to restrict
227 # channel-specific build options, like which installer packages to create.
228 # The default is 'all', which does no channel-specific filtering.
229 'channel%': 'all',
230
[email protected]b3fb8092009-03-12 19:09:24231 # Override chromium_mac_pch and set it to 0 to suppress the use of
232 # precompiled headers on the Mac. Prefix header injection may still be
233 # used, but prefix headers will not be precompiled. This is useful when
234 # using distcc to distribute a build to compile slaves that don't
235 # share the same compiler executable as the system driving the compilation,
236 # because precompiled headers rely on pointers into a specific compiler
237 # executable's image. Setting this to 0 is needed to use an experimental
238 # Linux-Mac cross compiler distcc farm.
239 'chromium_mac_pch%': 1,
240
[email protected]3224dcd2009-09-16 17:31:25241 # Mac OS X SDK and deployment target support.
242 # The SDK identifies the version of the system headers that will be used,
243 # and corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time macro.
244 # "Maximum allowed" refers to the operating system version whose APIs are
245 # available in the headers.
246 # The deployment target identifies the minimum system version that the
247 # built products are expected to function on. It corresponds to the
248 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro.
249 # To ensure these macros are available, #include <AvailabilityMacros.h>.
250 # Additional documentation on these macros is available at
251 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTION3
252 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the
253 # deployment target to 10.5. Other projects, such as O3D, may override
254 # these defaults.
255 'mac_sdk%': '10.5',
256 'mac_deployment_target%': '10.5',
[email protected]9543af052009-09-15 22:42:59257
[email protected]f5ecbba12009-04-03 04:35:18258 # Set to 1 to enable code coverage. In addition to build changes
259 # (e.g. extra CFLAGS), also creates a new target in the src/chrome
260 # project file called "coverage".
261 # Currently ignored on Windows.
262 'coverage%': 0,
[email protected]653bd5f032009-04-08 12:55:49263
[email protected]c61f6432009-04-22 01:16:42264 # Overridable specification for potential use of alternative
265 # JavaScript engines.
266 'javascript_engine%': 'v8',
267
[email protected]7477ea6f2009-12-22 23:28:15268 # Although base/allocator lets you select a heap library via an
[email protected]7e0d664a2009-12-03 21:07:47269 # environment variable, the libcmt shim it uses sometimes gets in
270 # the way. To disable it entirely, and switch to normal msvcrt, do e.g.
271 # 'win_use_allocator_shim': 0,
272 # 'win_release_RuntimeLibrary': 2
273 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
[email protected]8974e042010-06-21 18:06:52274 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt
[email protected]279cd4212009-09-11 22:32:11275
[email protected]95ff8082009-11-13 22:21:01276 # Whether usage of OpenMAX is enabled.
277 'enable_openmax%': 0,
278
[email protected]d01120e62010-05-10 17:04:48279 # Whether proprietary audio/video codecs are assumed to be included with
280 # this build (only meaningful if branding!=Chrome).
281 'proprietary_codecs%': 0,
282
[email protected]e5b2eaa2009-04-14 01:39:12283 # TODO(bradnelson): eliminate this when possible.
284 # To allow local gyp files to prevent release.vsprops from being included.
285 # Yes(1) means include release.vsprops.
286 # Once all vsprops settings are migrated into gyp, this can go away.
287 'msvs_use_common_release%': 1,
[email protected]606116d22009-05-06 22:38:23288
[email protected]cbd5fd52009-08-26 00:14:27289 # TODO(bradnelson): eliminate this when possible.
290 # To allow local gyp files to override additional linker options for msvs.
291 # Yes(1) means set use the common linker options.
[email protected]48c7af72009-07-03 22:00:19292 'msvs_use_common_linker_extras%': 1,
293
[email protected]1ffb6502009-06-02 07:46:24294 # TODO(sgk): eliminate this if possible.
295 # It would be nicer to support this via a setting in 'target_defaults'
296 # in chrome/app/locales/locales.gypi overriding the setting in the
297 # 'Debug' configuration in the 'target_defaults' dict below,
298 # but that doesn't work as we'd like.
299 'msvs_debug_link_incremental%': '2',
300
[email protected]1f790ef2011-01-11 20:45:36301 # Needed for some of the largest modules.
302 'msvs_debug_link_nonincremental%': '1',
303
[email protected]573136142009-07-15 22:48:37304 # This is the location of the sandbox binary. Chrome looks for this before
305 # running the zygote process. If found, and SUID, it will be used to
306 # sandbox the zygote process and, thus, all renderer processes.
307 'linux_sandbox_path%': '',
308
[email protected]ad6d2c42009-09-15 20:13:38309 # Set this to true to enable SELinux support.
310 'selinux%': 0,
[email protected]4c9cc6c2009-10-01 18:54:57311
[email protected]58680ce2010-09-18 00:09:15312 # Set this to true when building with Clang.
313 # See http://code.google.com/p/chromium/wiki/Clang for details.
314 # TODO: eventually clang should behave identically to gcc, and this
315 # won't be necessary.
316 'clang%': 0,
317
[email protected]5e781232011-01-28 02:57:59318 # These two variables can be set in GYP_DEFINES while running
319 # |gclient runhooks| to let clang run a plugin in every compilation.
320 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
321 # Example:
[email protected]93120fe2011-02-03 20:46:42322 # 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:59323
324 'clang_load%': '',
325 'clang_add_plugin%': '',
326
[email protected]7664ab32011-02-01 23:35:25327 # Enable sampling based profiler.
328 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
329 'profiling%': '0',
330
[email protected]36532f332010-08-25 00:22:01331 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot.
332 'linux_breakpad%': 0,
333 # And if we want to dump symbols for Breakpad-enabled builds.
334 'linux_dump_symbols%': 0,
335 # And if we want to strip the binary after dumping symbols.
[email protected]05cb6962009-10-01 23:29:03336 'linux_strip_binary%': 0,
[email protected]1d87c282010-09-15 22:24:49337 # Strip the test binaries needed for Linux reliability tests.
338 'linux_strip_reliability_tests%': 0,
[email protected]05cb6962009-10-01 23:29:03339
[email protected]46ce5b562010-06-16 18:39:53340 # Enable TCMalloc.
341 'linux_use_tcmalloc%': 1,
[email protected]01699e22009-11-11 19:24:24342
[email protected]39ca7de2010-04-16 08:04:03343 # Disable TCMalloc's debugallocation.
344 'linux_use_debugallocation%': 0,
345
[email protected]d8b60602010-03-26 09:41:22346 # Disable TCMalloc's heapchecker.
347 'linux_use_heapchecker%': 0,
348
[email protected]64e2d4a42010-08-27 10:13:21349 # Disable shadow stack keeping used by heapcheck to unwind the stacks
350 # better.
351 'linux_keep_shadow_stacks%': 0,
352
[email protected]6def64a2010-10-28 20:40:34353 # Set to 1 to turn on seccomp sandbox by default.
354 # (Note: this is ignored for official builds.)
355 'linux_use_seccomp_sandbox%': 0,
[email protected]39c4e1a82010-03-30 19:47:41356
[email protected]556c5d72010-06-10 05:45:01357 # Set to 1 to link against libgnome-keyring instead of using dlopen().
358 'linux_link_gnome_keyring%': 0,
[email protected]abcc9ac2011-05-16 20:04:35359 # Set to 1 to link against gsettings APIs instead of using dlopen().
360 'linux_link_gsettings%': 0,
[email protected]556c5d72010-06-10 05:45:01361
[email protected]d8c7cbcc2009-10-02 19:00:31362 # Used to disable Native Client at compile time, for platforms where it
363 # isn't supported
364 'disable_nacl%': 0,
365
[email protected]77c1b29392009-12-04 06:21:29366 # Set Thumb compilation flags.
367 'arm_thumb%': 0,
368
[email protected]53e0f642010-03-05 01:41:56369 # Set ARM fpu compilation flags (only meaningful if armv7==1 and
370 # arm_neon==0).
371 'arm_fpu%': 'vfpv3',
372
[email protected]9821d0d2010-04-16 22:40:37373 # Enable new NPDevice API.
374 'enable_new_npdevice_api%': 0,
[email protected]ed154592010-04-29 00:18:50375
376 # Enable EGLImage support in OpenMAX
[email protected]58023be2011-02-04 20:34:14377 'enable_eglimage%': 1,
[email protected]ed154592010-04-29 00:18:50378
[email protected]6f51b27e2010-06-22 20:43:53379 # Enable a variable used elsewhere throughout the GYP files to determine
380 # whether to compile in the sources for the GPU plugin / process.
381 'enable_gpu%': 1,
382
[email protected]32e1dee2010-12-09 18:36:24383 # Use OpenSSL instead of NSS. Under development: see http://crbug.com/62803
[email protected]d518cd92010-09-29 12:27:44384 'use_openssl%': 0,
385
[email protected]e72e55b2011-01-06 22:19:30386 # .gyp files or targets should set chromium_code to 1 if they build
387 # Chromium-specific code, as opposed to external code. This variable is
388 # used to control such things as the set of warnings to enable, and
389 # whether warnings are treated as errors.
390 'chromium_code%': 0,
391
392 # Set to 1 to compile with the built in pdf viewer.
393 'internal_pdf%': 0,
394
395 # This allows to use libcros from the current system, ie. /usr/lib/
396 # The cros_api will be pulled in as a static library, and all headers
397 # from the system include dirs.
[email protected]bb6aba32011-01-07 19:04:43398 'system_libcros%': 0,
[email protected]e72e55b2011-01-06 22:19:30399
[email protected]e72e55b2011-01-06 22:19:30400 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_'
401 # so Cocoa is happy (http://crbug.com/20441).
402 'locales': [
403 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
404 'en-US', 'es-419', 'es', 'et', 'fa', 'fi', 'fil', 'fr', 'gu', 'he',
405 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv',
406 'ml', 'mr', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru',
407 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk',
408 'vi', 'zh-CN', 'zh-TW',
409 ],
410
[email protected]bb6aba32011-01-07 19:04:43411 'grit_defines': [],
412
[email protected]29c2daea2011-01-05 20:38:50413 # Use Harfbuzz-NG instead of Harfbuzz.
414 # Under development: http://crbug.com/68551
415 'use_harfbuzz_ng%': 0,
416
[email protected]bd3bd442011-03-28 07:58:51417 # If debug_devtools is set to 1, JavaScript files for DevTools are
418 # stored as is and loaded from disk. Otherwise, a concatenated file
419 # is stored in resources.pak. It is still possible to load JS files
420 # from disk by passing --debug-devtools cmdline switch.
421 'debug_devtools%': 0,
422
[email protected]be8a9272011-02-10 22:06:07423 # Point to ICU directory.
424 'icu_src_dir': '../third_party/icu',
425
[email protected]912c55c2009-07-31 23:33:55426 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34427 ['os_posix==1 and OS!="mac"', {
[email protected]242a9e62009-11-03 17:32:10428 # This will set gcc_version to XY if you are running gcc X.Y.*.
429 # This is used to tweak build flags for gcc 4.4.
430 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
[email protected]4d83eb72010-03-04 16:42:23431 # Figure out the python architecture to decide if we build pyauto.
[email protected]efd68462010-03-04 17:07:54432 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/lib/libpython<(python_ver).so.1.0)',
[email protected]cbd5fd52009-08-26 00:14:27433 'conditions': [
[email protected]2a77a9d2010-08-26 19:58:10434 ['branding=="Chrome"', {
[email protected]cbd5fd52009-08-26 00:14:27435 'linux_breakpad%': 1,
[email protected]cbd5fd52009-08-26 00:14:27436 }],
[email protected]4c9cc6c2009-10-01 18:54:57437 # All Chrome builds have breakpad symbols, but only process the
438 # symbols from official builds.
[email protected]c913cb82010-08-31 19:44:08439 ['(branding=="Chrome" and buildtype=="Official")', {
[email protected]4c9cc6c2009-10-01 18:54:57440 'linux_dump_symbols%': 1,
[email protected]4c9cc6c2009-10-01 18:54:57441 }],
[email protected]cbd5fd52009-08-26 00:14:27442 ],
[email protected]79e2336c2011-05-12 18:18:34443 }], # os_posix==1 and OS!="mac"
[email protected]bb6aba32011-01-07 19:04:43444
[email protected]e14a9f92009-08-05 19:26:07445 ['OS=="mac"', {
446 'conditions': [
447 # mac_product_name is set to the name of the .app bundle as it should
448 # appear on disk. This duplicates data from
449 # chrome/app/theme/chromium/BRANDING and
450 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get
451 # these names into the build system.
452 ['branding=="Chrome"', {
453 'mac_product_name%': 'Google Chrome',
454 }, { # else: branding!="Chrome"
455 'mac_product_name%': 'Chromium',
456 }],
457
458 # Feature variables for enabling Mac Breakpad and Keystone auto-update
459 # support. Both features are on by default in official builds with
460 # Chrome branding.
461 ['branding=="Chrome" and buildtype=="Official"', {
462 'mac_breakpad%': 1,
463 'mac_keystone%': 1,
464 }, { # else: branding!="Chrome" or buildtype!="Official"
465 'mac_breakpad%': 0,
466 'mac_keystone%': 0,
467 }],
468 ],
469 }], # OS=="mac"
[email protected]bb6aba32011-01-07 19:04:43470
[email protected]912c55c2009-07-31 23:33:55471 # Whether to use multiple cores to compile with visual studio. This is
472 # optional because it sometimes causes corruption on VS 2005.
473 # It is on by default on VS 2008 and off on VS 2005.
474 ['OS=="win"', {
475 'conditions': [
[email protected]8974e042010-06-21 18:06:52476 ['component=="shared_library"', {
477 'win_use_allocator_shim%': 0,
478 }],
[email protected]912c55c2009-07-31 23:33:55479 ['MSVS_VERSION=="2005"', {
[email protected]669795372009-08-14 17:51:13480 'msvs_multi_core_compile%': 0,
[email protected]912c55c2009-07-31 23:33:55481 },{
482 'msvs_multi_core_compile%': 1,
483 }],
[email protected]10bb8c92009-08-07 21:16:03484 # Don't do incremental linking for large modules on 32-bit.
485 ['MSVS_OS_BITS==32', {
486 'msvs_large_module_debug_link_mode%': '1', # No
487 },{
488 'msvs_large_module_debug_link_mode%': '2', # Yes
489 }],
[email protected]3e2648a2011-03-21 20:58:50490 ['MSVS_VERSION=="2010e" or MSVS_VERSION=="2008e" or MSVS_VERSION=="2005e"', {
491 'msvs_express%': 1,
492 'secure_atl%': 0,
493 },{
494 'msvs_express%': 0,
495 'secure_atl%': 1,
496 }],
[email protected]912c55c2009-07-31 23:33:55497 ],
[email protected]ef4fa4072009-12-04 22:46:50498 'nacl_win64_defines': [
499 # This flag is used to minimize dependencies when building
500 # Native Client loader for 64-bit Windows.
501 'NACL_WIN64',
502 ],
[email protected]912c55c2009-07-31 23:33:55503 }],
[email protected]bb6aba32011-01-07 19:04:43504
[email protected]79e2336c2011-05-12 18:18:34505 ['os_posix==1 and chromeos==0 and target_arch!="arm"', {
[email protected]8e553f492010-10-25 20:05:44506 'use_cups%': 1,
507 }, {
508 'use_cups%': 0,
509 }],
[email protected]bb6aba32011-01-07 19:04:43510
[email protected]19fe8f0b2010-12-07 07:27:27511 # Set the relative path from this file to the GYP file of the JPEG
512 # library used by Chromium.
513 ['use_libjpeg_turbo==1', {
514 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
515 }, {
516 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp',
517 }], # use_libjpeg_turbo==1
[email protected]bb6aba32011-01-07 19:04:43518
[email protected]abcc9ac2011-05-16 20:04:35519 # Options controlling the use of GConf (the classic GNOME configuration
520 # system) and GIO, which contains GSettings (the new GNOME config system).
[email protected]1c6fe29302011-01-20 22:14:31521 ['chromeos==1', {
522 'use_gconf%': 0,
[email protected]abcc9ac2011-05-16 20:04:35523 'use_gio%': 0,
[email protected]1c6fe29302011-01-20 22:14:31524 }, {
525 'use_gconf%': 1,
[email protected]abcc9ac2011-05-16 20:04:35526 'use_gio%': 1,
[email protected]1c6fe29302011-01-20 22:14:31527 }],
528
[email protected]4de39f82011-03-28 12:01:29529 # Set up -D and -E flags passed into grit.
[email protected]1660bffd2011-03-23 16:24:29530 ['branding=="Chrome"', {
531 # TODO(mmoss) The .grd files look for _google_chrome, but for
532 # consistency they should look for google_chrome_build like C++.
[email protected]4de39f82011-03-28 12:01:29533 'grit_defines': ['-D', '_google_chrome',
534 '-E', 'CHROMIUM_BUILD=google_chrome'],
[email protected]1660bffd2011-03-23 16:24:29535 }, {
[email protected]4de39f82011-03-28 12:01:29536 'grit_defines': ['-D', '_chromium',
537 '-E', 'CHROMIUM_BUILD=chromium'],
[email protected]1660bffd2011-03-23 16:24:29538 }],
[email protected]bb6aba32011-01-07 19:04:43539 ['chromeos==1', {
540 'grit_defines': ['-D', 'chromeos'],
541 }],
542 ['toolkit_views==1', {
543 'grit_defines': ['-D', 'toolkit_views'],
544 }],
545 ['touchui==1', {
546 'grit_defines': ['-D', 'touchui'],
547 }],
[email protected]e47c32032011-03-01 19:26:20548 ['file_manager_extension==1', {
549 'grit_defines': ['-D', 'file_manager_extension'],
550 }],
[email protected]9a425422011-01-11 00:53:18551 ['remoting==1', {
552 'grit_defines': ['-D', 'remoting'],
553 }],
[email protected]bb6aba32011-01-07 19:04:43554 ['use_titlecase_in_grd_files==1', {
555 'grit_defines': ['-D', 'use_titlecase'],
556 }],
[email protected]00dc155832011-02-01 18:51:19557 ['use_third_party_translations==1', {
558 'grit_defines': ['-D', 'use_third_party_translations'],
[email protected]98da0042011-02-02 00:10:27559 'locales': ['ast', 'eu', 'gl', 'ka', 'ku', 'ug'],
[email protected]00dc155832011-02-01 18:51:19560 }],
[email protected]5d451ad2011-02-11 16:43:46561
562 ['clang_use_chrome_plugins==1', {
563 'clang_chrome_plugins_flags':
564 '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)',
565 }],
[email protected]cfa2e1102011-04-27 22:30:23566
567 # Set 1 to enable ibus support. Currently it is only supported in touchui.
568 ['touchui==1 and chromeos==1', {
569 'use_ibus%': 1,
570 }, {
571 'use_ibus%': 0,
572 }]
[email protected]912c55c2009-07-31 23:33:55573 ],
[email protected]2f80c312009-02-25 21:26:55574 },
575 'target_defaults': {
[email protected]1c966092009-08-20 21:19:26576 'variables': {
[email protected]a6e22132010-02-10 20:43:18577 # The condition that operates on chromium_code is in a target_conditions
578 # section, and will not have access to the default fallback value of
579 # chromium_code at the top of this file, or to the chromium_code
580 # variable placed at the root variables scope of .gyp files, because
581 # those variables are not set at target scope. As a workaround,
582 # if chromium_code is not set at target scope, define it in target scope
583 # to contain whatever value it has during early variable expansion.
584 # That's enough to make it available during target conditional
585 # processing.
586 'chromium_code%': '<(chromium_code)',
587
[email protected]7e0d664a2009-12-03 21:07:47588 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html
[email protected]d5d593a2009-08-28 23:23:29589 'mac_release_optimization%': '3', # Use -O3 unless overridden
[email protected]ffd984b12009-09-11 19:37:00590 'mac_debug_optimization%': '0', # Use -O0 unless overridden
[email protected]7e0d664a2009-12-03 21:07:47591 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
592 'win_release_Optimization%': '2', # 2 = /Os
593 'win_debug_Optimization%': '0', # 0 = /Od
[email protected]6b0507b2010-05-07 07:41:21594 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx
595 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off
596 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
[email protected]2ae6e022010-05-07 13:19:15597 'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off,
598 'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max
[email protected]fac10d12010-11-08 16:00:31599 # VS inserts quite a lot of extra checks to algorithms like
600 # std::partial_sort in Debug build which make them O(N^2)
601 # instead of O(N*logN). This is particularly slow under memory
602 # tools like ThreadSanitizer so we want it to be disablable.
603 # See http://msdn.microsoft.com/en-us/library/aa985982(v=VS.80).aspx
604 'win_debug_disable_iterator_debugging%': '0',
[email protected]7e0d664a2009-12-03 21:07:47605
[email protected]ffd984b12009-09-11 19:37:00606 'release_extra_cflags%': '',
607 'debug_extra_cflags%': '',
[email protected]92822e82009-09-18 14:26:56608 'release_valgrind_build%': 0,
[email protected]8974e042010-06-21 18:06:52609
610 'conditions': [
611 ['OS=="win" and component=="shared_library"', {
612 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
613 'win_release_RuntimeLibrary%': '2', # 2 = /MT (nondebug DLL)
614 'win_debug_RuntimeLibrary%': '3', # 3 = /MTd (debug DLL)
615 }, {
616 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
617 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static)
618 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static)
619 }],
620 ],
[email protected]1c966092009-08-20 21:19:26621 },
[email protected]32aa8cc2009-03-04 21:36:39622 'conditions': [
623 ['branding=="Chrome"', {
624 'defines': ['GOOGLE_CHROME_BUILD'],
625 }, { # else: branding!="Chrome"
626 'defines': ['CHROMIUM_BUILD'],
627 }],
[email protected]06c756182010-04-27 18:31:31628 ['toolkit_views==1', {
[email protected]e6970232009-05-12 23:51:17629 'defines': ['TOOLKIT_VIEWS=1'],
630 }],
[email protected]fdc5bed2010-01-09 01:16:57631 ['chromeos==1', {
[email protected]16779842009-07-08 23:45:29632 'defines': ['OS_CHROMEOS=1'],
[email protected]2b883b92009-06-02 22:57:50633 }],
[email protected]0094fbe2010-07-15 21:51:43634 ['touchui==1', {
635 'defines': ['TOUCH_UI=1'],
636 }],
[email protected]e47c32032011-03-01 19:26:20637 ['file_manager_extension==1', {
638 'defines': ['FILE_MANAGER_EXTENSION=1'],
639 }],
[email protected]7664ab32011-02-01 23:35:25640 ['profiling==1', {
641 'defines': ['ENABLE_PROFILING=1'],
642 }],
[email protected]542bf24a2010-06-11 23:08:17643 ['remoting==1', {
644 'defines': ['ENABLE_REMOTING=1'],
[email protected]c0bac532010-06-11 00:39:00645 }],
[email protected]a026daa2011-04-20 15:49:51646 ['p2p_apis==1', {
647 'defines': ['ENABLE_P2P_APIS=1'],
648 }],
[email protected]d01120e62010-05-10 17:04:48649 ['proprietary_codecs==1', {
650 'defines': ['USE_PROPRIETARY_CODECS'],
651 }],
[email protected]1b4209f2011-01-07 00:25:40652 ['enable_flapper_hacks==1', {
653 'defines': ['ENABLE_FLAPPER_HACKS=1'],
654 }],
[email protected]9c1949e2009-10-02 19:59:54655 ['fastbuild!=0', {
656 'conditions': [
[email protected]1cc2fa72010-07-03 08:49:24657 # For Windows, we don't genererate debug information.
[email protected]9c1949e2009-10-02 19:59:54658 ['OS=="win"', {
659 'msvs_settings': {
660 'VCLinkerTool': {
661 'GenerateDebugInformation': 'false',
662 },
663 'VCCLCompilerTool': {
664 'DebugInformationFormat': '0',
665 }
666 }
[email protected]1cc2fa72010-07-03 08:49:24667 }, { # else: OS != "win", generate less debug information.
668 'variables': {
669 'debug_extra_cflags': '-g1',
670 },
[email protected]37c84192010-04-14 21:37:40671 }],
[email protected]aecc4d12011-01-19 05:32:33672 # Clang creates chubby debug information, which makes linking very
673 # slow. For now, don't create debug information with clang. See
674 # http://crbug.com/70000
675 ['OS=="linux" and clang==1', {
676 'variables': {
677 'debug_extra_cflags': '-g0',
678 },
679 }],
[email protected]9c1949e2009-10-02 19:59:54680 ], # conditions for fastbuild.
681 }], # fastbuild!=0
[email protected]ad6d2c42009-09-15 20:13:38682 ['selinux==1', {
683 'defines': ['CHROMIUM_SELINUX=1'],
684 }],
[email protected]7e0d664a2009-12-03 21:07:47685 ['win_use_allocator_shim==0', {
686 'conditions': [
687 ['OS=="win"', {
688 'defines': ['NO_TCMALLOC'],
689 }],
690 ],
691 }],
[email protected]43f28f832010-02-03 02:28:48692 ['enable_gpu==1', {
[email protected]7477ea6f2009-12-22 23:28:15693 'defines': [
694 'ENABLE_GPU=1',
695 ],
696 }],
[email protected]b1c2a5542010-10-08 12:44:40697 ['use_openssl==1', {
698 'defines': [
699 'USE_OPENSSL=1',
700 ],
701 }],
[email protected]ed154592010-04-29 00:18:50702 ['enable_eglimage==1', {
703 'defines': [
704 'ENABLE_EGLIMAGE=1',
705 ],
706 }],
[email protected]f5ecbba12009-04-03 04:35:18707 ['coverage!=0', {
708 'conditions': [
709 ['OS=="mac"', {
710 'xcode_settings': {
[email protected]ab2956372009-08-13 18:11:04711 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs
712 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage
[email protected]5ae4f55e2009-04-13 23:19:47713 },
[email protected]e4fb84c2009-12-28 20:45:43714 # Add -lgcov for types executable, shared_library, and
[email protected]dc259ce52010-04-13 04:03:10715 # loadable_module; not for static_library.
[email protected]e4fb84c2009-12-28 20:45:43716 # This is a delayed conditional.
[email protected]f5ecbba12009-04-03 04:35:18717 'target_conditions': [
[email protected]e4fb84c2009-12-28 20:45:43718 ['_type!="static_library"', {
[email protected]f5ecbba12009-04-03 04:35:18719 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] },
[email protected]5ae4f55e2009-04-13 23:19:47720 }],
721 ],
722 }],
[email protected]f5ecbba12009-04-03 04:35:18723 ['OS=="linux"', {
724 'cflags': [ '-ftest-coverage',
725 '-fprofile-arcs' ],
[email protected]7122ffd52009-04-30 23:19:00726 'link_settings': { 'libraries': [ '-lgcov' ] },
[email protected]f5ecbba12009-04-03 04:35:18727 }],
[email protected]e8f6ff42009-07-07 18:20:53728 # Finally, for Windows, we simply turn on profiling.
729 ['OS=="win"', {
730 'msvs_settings': {
731 'VCLinkerTool': {
732 'Profile': 'true',
733 },
[email protected]10bb8c92009-08-07 21:16:03734 'VCCLCompilerTool': {
[email protected]e8f6ff42009-07-07 18:20:53735 # /Z7, not /Zi, so coverage is happyb
736 'DebugInformationFormat': '1',
[email protected]1f9471a2010-01-04 06:40:16737 'AdditionalOptions': ['/Yd'],
[email protected]e8f6ff42009-07-07 18:20:53738 }
739 }
740 }], # OS==win
741 ], # conditions for coverage
742 }], # coverage!=0
[email protected]4e4d6042010-08-26 18:34:38743 ['OS=="win"', {
744 'defines': [
745 '__STD_C',
746 '_CRT_SECURE_NO_DEPRECATE',
747 '_SCL_SECURE_NO_DEPRECATE',
748 ],
749 'include_dirs': [
750 '<(DEPTH)/third_party/wtl/include',
751 ],
752 }], # OS==win
[email protected]a6e22132010-02-10 20:43:18753 ], # conditions for 'target_defaults'
754 'target_conditions': [
[email protected]c14d8e772010-02-09 22:06:15755 ['chromium_code==0', {
[email protected]d8543312010-02-10 17:43:28756 'conditions': [
[email protected]79e2336c2011-05-12 18:18:34757 [ 'os_posix==1 and OS!="mac"', {
[email protected]c0a6b272011-02-09 22:32:33758 # We don't want to get warnings from third-party code,
759 # so remove any existing warning-enabling flags like -Wall.
[email protected]d8543312010-02-10 17:43:28760 'cflags!': [
761 '-Wall',
762 '-Wextra',
763 '-Werror',
764 ],
[email protected]ec1d155be2011-02-08 22:19:00765 'cflags': [
766 # Don't warn about hash_map in third-party code.
767 '-Wno-deprecated',
[email protected]c0a6b272011-02-09 22:32:33768 # Don't warn about printf format problems.
769 # This is off by default in gcc but on in Ubuntu's gcc(!).
[email protected]ec392872011-02-10 22:38:22770 '-Wno-format',
[email protected]ec1d155be2011-02-08 22:19:00771 ],
[email protected]d8543312010-02-10 17:43:28772 }],
773 [ 'OS=="win"', {
774 'defines': [
775 '_CRT_SECURE_NO_DEPRECATE',
776 '_CRT_NONSTDC_NO_WARNINGS',
777 '_CRT_NONSTDC_NO_DEPRECATE',
778 '_SCL_SECURE_NO_DEPRECATE',
779 ],
780 'msvs_disabled_warnings': [4800],
781 'msvs_settings': {
782 'VCCLCompilerTool': {
[email protected]942c3a60f2011-05-03 02:04:11783 'WarningLevel': '3',
784 'WarnAsError': 'false', # TODO(maruel): Enable it.
[email protected]d8543312010-02-10 17:43:28785 'Detect64BitPortabilityProblems': 'false',
786 },
787 },
788 }],
789 [ 'OS=="mac"', {
790 'xcode_settings': {
791 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
[email protected]4c4c2e5332010-06-15 11:51:06792 'WARNING_CFLAGS!': ['-Wall', '-Wextra'],
[email protected]d8543312010-02-10 17:43:28793 },
794 }],
[email protected]c14d8e772010-02-09 22:06:15795 ],
796 }, {
797 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the
798 # C99 macros on Mac and Linux.
799 'defines': [
800 '__STDC_FORMAT_MACROS',
801 ],
802 'conditions': [
803 ['OS!="win"', {
[email protected]40519592010-11-16 15:23:30804 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:16805 ['exclude', '(^|/)win/'],
[email protected]40519592010-11-16 15:23:30806 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
[email protected]c14d8e772010-02-09 22:06:15807 }],
808 ['OS!="mac"', {
[email protected]40519592010-11-16 15:23:30809 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:16810 ['exclude', '(^|/)(cocoa|mac)/'],
811 ['exclude', '\\.mm?$' ] ],
[email protected]c14d8e772010-02-09 22:06:15812 }],
[email protected]79e2336c2011-05-12 18:18:34813 ['toolkit_uses_gtk!=1', {
[email protected]c14d8e772010-02-09 22:06:15814 'sources/': [
[email protected]40519592010-11-16 15:23:30815 ['exclude', '_(chromeos|gtk|x|x11|xdg)(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:16816 ['exclude', '(^|/)gtk/'],
[email protected]40519592010-11-16 15:23:30817 ['exclude', '(^|/)(gtk|x11)_[^/]*\\.(h|cc)$'],
[email protected]18cff3d2010-02-17 18:03:13818 ],
819 }],
820 ['OS!="linux"', {
821 'sources/': [
[email protected]40519592010-11-16 15:23:30822 ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
[email protected]a316ca532010-11-15 14:08:16823 ['exclude', '(^|/)linux/'],
[email protected]18cff3d2010-02-17 18:03:13824 ],
[email protected]c14d8e772010-02-09 22:06:15825 }],
826 # We use "POSIX" to refer to all non-Windows operating systems.
827 ['OS=="win"', {
[email protected]40519592010-11-16 15:23:30828 'sources/': [ ['exclude', '_posix\\.(h|cc)$'] ],
[email protected]f55bd4862010-05-27 15:38:07829 # turn on warnings for signed/unsigned mismatch on chromium code.
830 'msvs_settings': {
831 'VCCLCompilerTool': {
832 'AdditionalOptions': ['/we4389'],
833 },
834 },
[email protected]c14d8e772010-02-09 22:06:15835 }],
[email protected]c14d8e772010-02-09 22:06:15836 ['chromeos!=1', {
[email protected]40519592010-11-16 15:23:30837 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
[email protected]c14d8e772010-02-09 22:06:15838 }],
[email protected]06c756182010-04-27 18:31:31839 ['toolkit_views==0', {
[email protected]40519592010-11-16 15:23:30840 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
[email protected]c14d8e772010-02-09 22:06:15841 }],
842 ],
843 }],
[email protected]a6e22132010-02-10 20:43:18844 ], # target_conditions for 'target_defaults'
[email protected]2f80c312009-02-25 21:26:55845 'default_configuration': 'Debug',
846 'configurations': {
[email protected]5153767c2009-12-22 01:52:50847 # VCLinkerTool LinkIncremental values below:
848 # 0 == default
849 # 1 == /INCREMENTAL:NO
850 # 2 == /INCREMENTAL
851 # Debug links incremental, Release does not.
852 #
[email protected]7b99801e2010-11-03 17:26:23853 # Abstract base configurations to cover common attributes.
[email protected]5153767c2009-12-22 01:52:50854 #
855 'Common_Base': {
[email protected]bb05e452009-10-29 21:24:56856 'abstract': 1,
857 'msvs_configuration_attributes': {
858 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
859 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
860 'CharacterSet': '1',
861 },
[email protected]5153767c2009-12-22 01:52:50862 },
863 'x86_Base': {
864 'abstract': 1,
[email protected]ef4fa4072009-12-04 22:46:50865 'msvs_settings': {
866 'VCLinkerTool': {
867 'TargetMachine': '1',
868 },
869 },
[email protected]2fa40782009-11-01 21:17:34870 'msvs_configuration_platform': 'Win32',
[email protected]bb05e452009-10-29 21:24:56871 },
[email protected]5153767c2009-12-22 01:52:50872 'x64_Base': {
873 'abstract': 1,
874 'msvs_configuration_platform': 'x64',
875 'msvs_settings': {
876 'VCLinkerTool': {
877 'TargetMachine': '17', # x86 - 64
[email protected]5153767c2009-12-22 01:52:50878 'AdditionalLibraryDirectories!':
879 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
880 'AdditionalLibraryDirectories':
881 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
882 },
[email protected]d26b4418ab2010-03-24 22:06:35883 'VCLibrarianTool': {
[email protected]5153767c2009-12-22 01:52:50884 'AdditionalLibraryDirectories!':
885 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
886 'AdditionalLibraryDirectories':
887 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
888 },
889 },
890 'defines': [
891 # Not sure if tcmalloc works on 64-bit Windows.
892 'NO_TCMALLOC',
893 ],
894 },
895 'Debug_Base': {
896 'abstract': 1,
[email protected]14339762011-04-05 07:36:58897 'defines': [
898 'DYNAMIC_ANNOTATIONS_ENABLED=1',
899 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
900 ],
[email protected]1c966092009-08-20 21:19:26901 'xcode_settings': {
902 'COPY_PHASE_STRIP': 'NO',
[email protected]d5d593a2009-08-28 23:23:29903 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)',
[email protected]bd232ac2009-10-21 02:23:53904 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ],
[email protected]1c966092009-08-20 21:19:26905 },
[email protected]bb05e452009-10-29 21:24:56906 'msvs_settings': {
907 'VCCLCompilerTool': {
[email protected]7e0d664a2009-12-03 21:07:47908 'Optimization': '<(win_debug_Optimization)',
[email protected]bb05e452009-10-29 21:24:56909 'PreprocessorDefinitions': ['_DEBUG'],
[email protected]6b0507b2010-05-07 07:41:21910 'BasicRuntimeChecks': '<(win_debug_RuntimeChecks)',
[email protected]7e0d664a2009-12-03 21:07:47911 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)',
[email protected]2ae6e022010-05-07 13:19:15912 'conditions': [
913 # According to MSVS, InlineFunctionExpansion=0 means
914 # "default inlining", not "/Ob0".
915 # Thus, we have to handle InlineFunctionExpansion==0 separately.
916 ['win_debug_InlineFunctionExpansion==0', {
917 'AdditionalOptions': ['/Ob0'],
918 }],
919 ['win_debug_InlineFunctionExpansion!=""', {
920 'InlineFunctionExpansion':
921 '<(win_debug_InlineFunctionExpansion)',
922 }],
[email protected]fac10d12010-11-08 16:00:31923 ['win_debug_disable_iterator_debugging==1', {
924 'PreprocessorDefinitions': ['_HAS_ITERATOR_DEBUGGING=0'],
925 }],
[email protected]2ae6e022010-05-07 13:19:15926 ],
[email protected]bb05e452009-10-29 21:24:56927 },
928 'VCLinkerTool': {
929 'LinkIncremental': '<(msvs_debug_link_incremental)',
930 },
931 'VCResourceCompilerTool': {
932 'PreprocessorDefinitions': ['_DEBUG'],
933 },
934 },
[email protected]2f80c312009-02-25 21:26:55935 'conditions': [
[email protected]bb05e452009-10-29 21:24:56936 ['OS=="linux"', {
937 'cflags': [
938 '<@(debug_extra_cflags)',
939 ],
[email protected]2f80c312009-02-25 21:26:55940 }],
941 ],
942 },
[email protected]5153767c2009-12-22 01:52:50943 'Release_Base': {
944 'abstract': 1,
[email protected]2f80c312009-02-25 21:26:55945 'defines': [
946 'NDEBUG',
947 ],
[email protected]1c966092009-08-20 21:19:26948 'xcode_settings': {
949 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip
950 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)',
[email protected]ffd984b12009-09-11 19:37:00951 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ],
[email protected]1c966092009-08-20 21:19:26952 },
[email protected]bb05e452009-10-29 21:24:56953 'msvs_settings': {
[email protected]7e0d664a2009-12-03 21:07:47954 'VCCLCompilerTool': {
955 'Optimization': '<(win_release_Optimization)',
956 'RuntimeLibrary': '<(win_release_RuntimeLibrary)',
[email protected]2ae6e022010-05-07 13:19:15957 'conditions': [
958 # According to MSVS, InlineFunctionExpansion=0 means
959 # "default inlining", not "/Ob0".
960 # Thus, we have to handle InlineFunctionExpansion==0 separately.
961 ['win_release_InlineFunctionExpansion==0', {
962 'AdditionalOptions': ['/Ob0'],
963 }],
964 ['win_release_InlineFunctionExpansion!=""', {
965 'InlineFunctionExpansion':
966 '<(win_release_InlineFunctionExpansion)',
967 }],
968 ],
[email protected]7e0d664a2009-12-03 21:07:47969 },
[email protected]bb05e452009-10-29 21:24:56970 'VCLinkerTool': {
971 'LinkIncremental': '1',
972 },
973 },
[email protected]2f80c312009-02-25 21:26:55974 'conditions': [
[email protected]92822e82009-09-18 14:26:56975 ['release_valgrind_build==0', {
[email protected]14339762011-04-05 07:36:58976 'defines': [
977 'NVALGRIND',
978 'DYNAMIC_ANNOTATIONS_ENABLED=0',
979 ],
[email protected]ee857512010-05-14 08:24:42980 }, {
[email protected]14339762011-04-05 07:36:58981 'defines': [
982 'DYNAMIC_ANNOTATIONS_ENABLED=1',
983 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
984 ],
[email protected]92822e82009-09-18 14:26:56985 }],
[email protected]7e0d664a2009-12-03 21:07:47986 ['win_use_allocator_shim==0', {
987 'defines': ['NO_TCMALLOC'],
988 }],
[email protected]bb05e452009-10-29 21:24:56989 ['OS=="linux"', {
990 'cflags': [
[email protected]ffd984b12009-09-11 19:37:00991 '<@(release_extra_cflags)',
[email protected]bb05e452009-10-29 21:24:56992 ],
993 }],
[email protected]2f80c312009-02-25 21:26:55994 ],
995 },
[email protected]5153767c2009-12-22 01:52:50996 'Purify_Base': {
997 'abstract': 1,
998 'defines': [
999 'PURIFY',
1000 'NO_TCMALLOC',
1001 ],
1002 'msvs_settings': {
1003 'VCCLCompilerTool': {
1004 'Optimization': '0',
1005 'RuntimeLibrary': '0',
1006 'BufferSecurityCheck': 'false',
1007 },
1008 'VCLinkerTool': {
1009 'EnableCOMDATFolding': '1',
1010 'LinkIncremental': '1',
1011 },
1012 },
1013 },
1014 #
1015 # Concrete configurations
1016 #
1017 'Debug': {
1018 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
1019 },
1020 'Release': {
1021 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
1022 'conditions': [
1023 ['msvs_use_common_release', {
[email protected]1f9471a2010-01-04 06:40:161024 'includes': ['release.gypi'],
[email protected]5153767c2009-12-22 01:52:501025 }],
1026 ]
1027 },
[email protected]f926fa0a2009-08-04 22:50:131028 'conditions': [
1029 [ 'OS=="win"', {
1030 # TODO(bradnelson): add a gyp mechanism to make this more graceful.
1031 'Purify': {
[email protected]5153767c2009-12-22 01:52:501032 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base', 'Purify'],
[email protected]ef4fa4072009-12-04 22:46:501033 },
1034 'Debug_x64': {
[email protected]5153767c2009-12-22 01:52:501035 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'],
[email protected]78263c12009-11-01 23:45:301036 },
1037 'Release_x64': {
[email protected]5153767c2009-12-22 01:52:501038 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'],
[email protected]78263c12009-11-01 23:45:301039 },
1040 'Purify_x64': {
[email protected]1f9471a2010-01-04 06:40:161041 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base', 'Purify_Base'],
[email protected]78263c12009-11-01 23:45:301042 },
[email protected]f926fa0a2009-08-04 22:50:131043 }],
1044 ],
[email protected]2f80c312009-02-25 21:26:551045 },
1046 },
1047 'conditions': [
[email protected]79e2336c2011-05-12 18:18:341048 ['os_posix==1 and OS!="mac"', {
[email protected]9d384032009-03-20 23:13:261049 'target_defaults': {
[email protected]5315f2842009-04-28 00:43:271050 # Enable -Werror by default, but put it in a variable so it can
1051 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
1052 'variables': {
[email protected]57e94022011-05-04 15:33:191053 # Use -fno-strict-aliasing, see http://crbug.com/32204
[email protected]ecf52cb82010-01-13 19:25:421054 'no_strict_aliasing%': 1,
[email protected]79e2336c2011-05-12 18:18:341055 'conditions': [
1056 ['OS=="linux"', {
1057 'werror%': '-Werror',
1058 }, { # turn off -Werror on other Unices
1059 'werror%': '',
1060 }],
[email protected]47deeb62009-12-17 14:49:391061 ],
[email protected]5315f2842009-04-28 00:43:271062 },
[email protected]9d384032009-03-20 23:13:261063 'cflags': [
[email protected]1bba09c2009-08-13 12:53:161064 '<(werror)', # See note above about the werror variable.
1065 '-pthread',
1066 '-fno-exceptions',
1067 '-Wall',
[email protected]0fa17082010-03-26 00:48:051068 # TODO(evan): turn this back on once all the builds work.
1069 # '-Wextra',
[email protected]225c8f52010-02-05 22:23:201070 # Don't warn about unused function params. We use those everywhere.
1071 '-Wno-unused-parameter',
1072 # Don't warn about the "struct foo f = {0};" initialization pattern.
1073 '-Wno-missing-field-initializers',
[email protected]1bba09c2009-08-13 12:53:161074 '-D_FILE_OFFSET_BITS=64',
[email protected]3df6e3a2010-01-21 20:23:121075 # Don't export any symbols (for example, to plugins we dlopen()).
1076 # Note: this is *required* to make some plugins work.
1077 '-fvisibility=hidden',
[email protected]7ca6ce12010-09-15 23:39:351078 '-pipe',
[email protected]8a2fcba2009-07-29 00:52:241079 ],
1080 'cflags_cc': [
[email protected]832d0212009-10-28 19:12:221081 '-fno-rtti',
[email protected]8a2fcba2009-07-29 00:52:241082 '-fno-threadsafe-statics',
[email protected]f5986c42009-11-17 18:39:361083 # Make inline functions have hidden visiblity by default.
1084 # Surprisingly, not covered by -fvisibility=hidden.
1085 '-fvisibility-inlines-hidden',
[email protected]9d384032009-03-20 23:13:261086 ],
[email protected]a6cf87e2009-04-03 04:07:381087 'ldflags': [
[email protected]138241f2010-03-30 23:53:101088 '-pthread', '-Wl,-z,noexecstack',
[email protected]9d384032009-03-20 23:13:261089 ],
[email protected]3aacaf952009-04-02 15:34:091090 'configurations': {
[email protected]5153767c2009-12-22 01:52:501091 'Debug_Base': {
[email protected]c5bdc032009-04-20 19:11:311092 'variables': {
1093 'debug_optimize%': '0',
1094 },
[email protected]3aacaf952009-04-02 15:34:091095 'defines': [
1096 '_DEBUG',
1097 ],
1098 'cflags': [
[email protected]9cb5cc702011-02-01 19:56:041099 '-O>(debug_optimize)',
[email protected]3aacaf952009-04-02 15:34:091100 '-g',
1101 ],
[email protected]5315f2842009-04-28 00:43:271102 },
[email protected]5153767c2009-12-22 01:52:501103 'Release_Base': {
[email protected]740e2de2009-07-21 11:41:011104 'variables': {
1105 'release_optimize%': '2',
[email protected]1dd529642010-05-15 01:02:511106 # Binaries become big and gold is unable to perform GC
1107 # and remove unused sections for some of test targets
1108 # on 32 bit platform.
1109 # (This is currently observed only in chromeos valgrind bots)
1110 # The following flag is to disable --gc-sections linker
1111 # option for these bots.
1112 'no_gc_sections%': 0,
[email protected]409dceef2011-05-10 19:49:121113
1114 # TODO(bradnelson): reexamine how this is done if we change the
1115 # expansion of configurations
1116 'release_valgrind_build%': 0,
[email protected]740e2de2009-07-21 11:41:011117 },
[email protected]3aacaf952009-04-02 15:34:091118 'cflags': [
[email protected]9cb5cc702011-02-01 19:56:041119 '-O>(release_optimize)',
[email protected]d8cc3a62009-04-08 18:29:531120 # Don't emit the GCC version ident directives, they just end up
1121 # in the .comment section taking up binary size.
1122 '-fno-ident',
1123 # Put data and code in their own sections, so that unused symbols
1124 # can be removed at link time with --gc-sections.
1125 '-fdata-sections',
1126 '-ffunction-sections',
[email protected]3aacaf952009-04-02 15:34:091127 ],
[email protected]c902f2cba2010-08-06 20:04:181128 'ldflags': [
1129 # Specifically tell the linker to perform optimizations.
1130 # See http://lwn.net/Articles/192624/ .
1131 '-Wl,-O1',
[email protected]27c2e492010-08-06 22:55:221132 '-Wl,--as-needed',
[email protected]c902f2cba2010-08-06 20:04:181133 ],
[email protected]1dd529642010-05-15 01:02:511134 'conditions' : [
1135 ['no_gc_sections==0', {
1136 'ldflags': [
1137 '-Wl,--gc-sections',
1138 ],
1139 }],
[email protected]ecf7b6482010-10-13 09:15:201140 ['clang==1', {
1141 'cflags!': [
1142 '-fno-ident',
1143 ],
1144 }],
[email protected]7664ab32011-02-01 23:35:251145 ['profiling==1', {
1146 'cflags': [
1147 '-fno-omit-frame-pointer',
1148 '-g',
1149 ],
1150 }],
[email protected]c75f33e42011-05-04 18:11:521151 # At gyp time, we test the linker for ICF support; this flag
1152 # is then provided to us by gyp. (Currently only gold supports
1153 # an --icf flag.)
[email protected]409dceef2011-05-10 19:49:121154 ['LINKER_SUPPORTS_ICF==1 and release_valgrind_build==0', {
[email protected]c75f33e42011-05-04 18:11:521155 'ldflags': [
1156 '-Wl,--icf=safe',
1157 ]
1158 }],
[email protected]1dd529642010-05-15 01:02:511159 ]
[email protected]3aacaf952009-04-02 15:34:091160 },
1161 },
[email protected]601b540222009-04-03 21:32:041162 'variants': {
1163 'coverage': {
1164 'cflags': ['-fprofile-arcs', '-ftest-coverage'],
1165 'ldflags': ['-fprofile-arcs'],
1166 },
1167 'profile': {
1168 'cflags': ['-pg', '-g'],
1169 'ldflags': ['-pg'],
1170 },
1171 'symbols': {
1172 'cflags': ['-g'],
1173 },
1174 },
[email protected]606116d22009-05-06 22:38:231175 'conditions': [
[email protected]7e8eb7612009-07-29 15:56:001176 [ 'target_arch=="ia32"', {
[email protected]606116d22009-05-06 22:38:231177 'asflags': [
1178 # Needed so that libs with .s files (e.g. libicudata.a)
1179 # are compatible with the general 32-bit-ness.
1180 '-32',
1181 ],
1182 # All floating-point computations on x87 happens in 80-bit
1183 # precision. Because the C and C++ language standards allow
1184 # the compiler to keep the floating-point values in higher
1185 # precision than what's specified in the source and doing so
1186 # is more efficient than constantly rounding up to 64-bit or
1187 # 32-bit precision as specified in the source, the compiler,
1188 # especially in the optimized mode, tries very hard to keep
1189 # values in x87 floating-point stack (in 80-bit precision)
1190 # as long as possible. This has important side effects, that
1191 # the real value used in computation may change depending on
1192 # how the compiler did the optimization - that is, the value
1193 # kept in 80-bit is different than the value rounded down to
1194 # 64-bit or 32-bit. There are possible compiler options to make
1195 # this behavior consistent (e.g. -ffloat-store would keep all
1196 # floating-values in the memory, thus force them to be rounded
1197 # to its original precision) but they have significant runtime
1198 # performance penalty.
1199 #
1200 # -mfpmath=sse -msse2 makes the compiler use SSE instructions
1201 # which keep floating-point values in SSE registers in its
1202 # native precision (32-bit for single precision, and 64-bit for
1203 # double precision values). This means the floating-point value
1204 # used during computation does not change depending on how the
1205 # compiler optimized the code, since the value is always kept
1206 # in its specified precision.
[email protected]ffde7932009-05-29 00:39:061207 'conditions': [
[email protected]ac120ff2010-04-28 02:14:221208 ['branding=="Chromium" and disable_sse2==0', {
[email protected]ffde7932009-05-29 00:39:061209 'cflags': [
1210 '-march=pentium4',
1211 '-msse2',
1212 '-mfpmath=sse',
1213 ],
1214 }],
[email protected]06c756182010-04-27 18:31:311215 # ChromeOS targets Pinetrail, which is sse3, but most of the
[email protected]0183dbb2010-04-16 02:00:441216 # benefit comes from sse2 so this setting allows ChromeOS
1217 # to build on other CPUs. In the future -march=atom would help
1218 # but requires a newer compiler.
[email protected]ac120ff2010-04-28 02:14:221219 ['chromeos==1 and disable_sse2==0', {
[email protected]0183dbb2010-04-16 02:00:441220 'cflags': [
1221 '-msse2',
1222 ],
1223 }],
[email protected]34799f9d2010-07-08 17:51:331224 # Install packages have started cropping up with
1225 # different headers between the 32-bit and 64-bit
1226 # versions, so we have to shadow those differences off
1227 # and make sure a 32-bit-on-64-bit build picks up the
1228 # right files.
1229 ['host_arch!="ia32"', {
1230 'include_dirs+': [
1231 '/usr/include32',
1232 ],
1233 }],
[email protected]ffde7932009-05-29 00:39:061234 ],
[email protected]dc259ce52010-04-13 04:03:101235 # -mmmx allows mmintrin.h to be used for mmx intrinsics.
1236 # video playback is mmx and sse2 optimized.
[email protected]606116d22009-05-06 22:38:231237 'cflags': [
1238 '-m32',
[email protected]dc259ce52010-04-13 04:03:101239 '-mmmx',
[email protected]1c6560af2009-07-14 11:02:161240 ],
[email protected]606116d22009-05-06 22:38:231241 'ldflags': [
1242 '-m32',
1243 ],
1244 }],
[email protected]3dda8a962009-08-10 18:58:071245 ['target_arch=="arm"', {
[email protected]77c1b29392009-12-04 06:21:291246 'target_conditions': [
1247 ['_toolset=="target"', {
1248 'cflags_cc': [
1249 # The codesourcery arm-2009q3 toolchain warns at that the ABI
1250 # has changed whenever it encounters a varargs function. This
1251 # silences those warnings, as they are not helpful and
1252 # clutter legitimate warnings.
1253 '-Wno-abi',
1254 ],
1255 'conditions': [
1256 ['arm_thumb == 1', {
1257 'cflags': [
1258 '-mthumb',
[email protected]77c1b29392009-12-04 06:21:291259 ]
1260 }],
1261 ['armv7==1', {
[email protected]dc9711f2009-11-13 19:30:251262 'cflags': [
1263 '-march=armv7-a',
1264 '-mtune=cortex-a8',
[email protected]dc9711f2009-11-13 19:30:251265 '-mfloat-abi=softfp',
1266 ],
[email protected]eafc0b452010-02-26 21:53:431267 'conditions': [
1268 ['arm_neon==1', {
1269 'cflags': [ '-mfpu=neon', ],
1270 }, {
[email protected]53e0f642010-03-05 01:41:561271 'cflags': [ '-mfpu=<(arm_fpu)', ],
[email protected]eafc0b452010-02-26 21:53:431272 }]
1273 ],
[email protected]dc9711f2009-11-13 19:30:251274 }],
[email protected]3dda8a962009-08-10 18:58:071275 ],
1276 }],
1277 ],
1278 }],
[email protected]2fb843b2010-08-12 02:11:081279 ['linux_fpic==1', {
[email protected]c76723a2010-01-25 23:10:581280 'cflags': [
1281 '-fPIC',
1282 ],
1283 }],
[email protected]ee28c9f2009-09-04 01:53:011284 ['sysroot!=""', {
[email protected]fd36ce822009-10-28 20:13:571285 'target_conditions': [
1286 ['_toolset=="target"', {
1287 'cflags': [
1288 '--sysroot=<(sysroot)',
1289 ],
1290 'ldflags': [
1291 '--sysroot=<(sysroot)',
1292 ],
1293 }]]
[email protected]ee28c9f2009-09-04 01:53:011294 }],
[email protected]58680ce2010-09-18 00:09:151295 ['clang==1', {
[email protected]3e40c882011-02-10 21:03:351296 'target_conditions': [
1297 ['_toolset=="target"', {
1298 'cflags': [
[email protected]7f8d486f2011-04-05 19:49:071299 '-Wheader-hygiene',
[email protected]3e40c882011-02-10 21:03:351300 # Clang spots more unused functions.
1301 '-Wno-unused-function',
1302 # Don't die on dtoa code that uses a char as an array index.
1303 '-Wno-char-subscripts',
1304 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see
1305 # http://code.google.com/p/googletest/source/detail?r=446 .
1306 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 )
1307 '-Wno-unnamed-type-template-args',
[email protected]3e40c882011-02-10 21:03:351308 ],
1309 'cflags!': [
1310 # Clang doesn't seem to know know this flag.
1311 '-mfpmath=sse',
1312 ],
1313 }]],
[email protected]58680ce2010-09-18 00:09:151314 }],
[email protected]5d451ad2011-02-11 16:43:461315 ['clang==1 and clang_use_chrome_plugins==1', {
1316 'target_conditions': [
1317 ['_toolset=="target"', {
1318 'cflags': [
1319 '<(clang_chrome_plugins_flags)',
1320 ],
1321 }]],
1322 }],
[email protected]5e781232011-01-28 02:57:591323 ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
[email protected]3e40c882011-02-10 21:03:351324 'target_conditions': [
1325 ['_toolset=="target"', {
1326 'cflags': [
1327 '-Xclang', '-load', '-Xclang', '<(clang_load)',
1328 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
1329 ],
1330 }]],
[email protected]5e781232011-01-28 02:57:591331 }],
[email protected]cc4219a2009-08-14 05:30:521332 ['no_strict_aliasing==1', {
1333 'cflags': [
1334 '-fno-strict-aliasing',
1335 ],
1336 }],
[email protected]cbd5fd52009-08-26 00:14:271337 ['linux_breakpad==1', {
[email protected]c87efd42010-08-26 18:28:171338 'cflags': [ '-g' ],
[email protected]cbd5fd52009-08-26 00:14:271339 'defines': ['USE_LINUX_BREAKPAD'],
1340 }],
[email protected]d8b60602010-03-26 09:41:221341 ['linux_use_heapchecker==1', {
1342 'variables': {'linux_use_tcmalloc%': 1},
1343 }],
[email protected]61a9b2d82010-02-26 00:31:081344 ['linux_use_tcmalloc==0', {
1345 'defines': ['NO_TCMALLOC'],
[email protected]01699e22009-11-11 19:24:241346 }],
[email protected]d8b60602010-03-26 09:41:221347 ['linux_use_heapchecker==0', {
1348 'defines': ['NO_HEAPCHECKER'],
1349 }],
[email protected]64e2d4a42010-08-27 10:13:211350 ['linux_keep_shadow_stacks==1', {
1351 'defines': ['KEEP_SHADOW_STACKS'],
1352 'cflags': ['-finstrument-functions'],
1353 }],
[email protected]606116d22009-05-06 22:38:231354 ],
[email protected]9d384032009-03-20 23:13:261355 },
1356 }],
[email protected]c51e8d52009-12-11 20:04:061357 # FreeBSD-specific options; note that most FreeBSD options are set above,
1358 # with Linux.
1359 ['OS=="freebsd"', {
1360 'target_defaults': {
1361 'ldflags': [
1362 '-Wl,--no-keep-memory',
1363 ],
1364 },
1365 }],
[email protected]93f21e42010-04-01 00:35:151366 ['OS=="solaris"', {
1367 'cflags!': ['-fvisibility=hidden'],
1368 'cflags_cc!': ['-fvisibility-inlines-hidden'],
1369 }],
[email protected]2f80c312009-02-25 21:26:551370 ['OS=="mac"', {
1371 'target_defaults': {
[email protected]24700642009-06-01 16:01:201372 'variables': {
[email protected]9a5e72862010-09-02 16:16:581373 # These should be 'mac_real_dsym%' and 'mac_strip%', but there
1374 # seems to be a bug with % in variables that are intended to be
1375 # set to different values in different targets, like these two.
1376 'mac_strip': 1, # Strip debugging symbols from the target.
[email protected]24700642009-06-01 16:01:201377 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
1378 },
[email protected]d92c7c012009-03-19 19:26:421379 'mac_bundle': 0,
[email protected]2f80c312009-02-25 21:26:551380 'xcode_settings': {
1381 'ALWAYS_SEARCH_USER_PATHS': 'NO',
[email protected]ab2956372009-08-13 18:11:041382 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99
1383 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
1384 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
1385 # (Equivalent to -fPIC)
1386 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
1387 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
1388 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
[email protected]3224dcd2009-09-16 17:31:251389 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
1390 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
[email protected]ab2956372009-08-13 18:11:041391 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors
1392 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
1393 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
1394 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
[email protected]2f80c312009-02-25 21:26:551395 'GCC_VERSION': '4.2',
[email protected]ab2956372009-08-13 18:11:041396 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
[email protected]3224dcd2009-09-16 17:31:251397 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min
1398 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
[email protected]ab2956372009-08-13 18:11:041399 'PREBINDING': 'NO', # No -Wl,-prebind
[email protected]2f80c312009-02-25 21:26:551400 'USE_HEADERMAP': 'NO',
[email protected]57e94022011-05-04 15:33:191401 'OTHER_CFLAGS': [
1402 '-fno-strict-aliasing', # See http://crbug.com/32204
1403 ],
[email protected]080e86f2010-06-21 15:19:041404 'WARNING_CFLAGS': [
1405 '-Wall',
1406 '-Wendif-labels',
1407 '-Wextra',
1408 # Don't warn about unused function parameters.
1409 '-Wno-unused-parameter',
1410 # Don't warn about the "struct foo f = {0};" initialization
1411 # pattern.
1412 '-Wno-missing-field-initializers',
1413 ],
[email protected]b3fb8092009-03-12 19:09:241414 'conditions': [
1415 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
[email protected]9543af052009-09-15 22:42:591416 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
1417 ],
[email protected]66733172010-09-22 00:09:281418 ['clang==1', {
1419 'WARNING_CFLAGS': [
[email protected]7f8d486f2011-04-05 19:49:071420 '-Wheader-hygiene',
[email protected]66733172010-09-22 00:09:281421 # Don't die on dtoa code that uses a char as an array index.
1422 # This is required solely for base/third_party/dmg_fp/dtoa.cc.
1423 '-Wno-char-subscripts',
[email protected]25d3bb722010-11-22 14:31:451424 # Clang spots more unused functions.
1425 '-Wno-unused-function',
[email protected]0fa0fbc2010-10-12 04:32:051426 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see
1427 # http://code.google.com/p/googletest/source/detail?r=446 .
1428 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ).
1429 '-Wno-unnamed-type-template-args',
[email protected]66733172010-09-22 00:09:281430 ],
[email protected]bddae312011-03-05 04:47:251431 'OTHER_CFLAGS': [
1432 # TODO(thakis): Causes many warnings - http://crbug.com/75001
1433 '-fobjc-exceptions',
1434 ],
[email protected]66733172010-09-22 00:09:281435 }],
[email protected]5d451ad2011-02-11 16:43:461436 ['clang==1 and clang_use_chrome_plugins==1', {
1437 'OTHER_CFLAGS': [
1438 '<(clang_chrome_plugins_flags)',
1439 ],
1440 }],
[email protected]5e781232011-01-28 02:57:591441 ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
1442 'OTHER_CFLAGS': [
1443 '-Xclang', '-load', '-Xclang', '<(clang_load)',
1444 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)',
1445 ],
1446 }],
[email protected]b3fb8092009-03-12 19:09:241447 ],
[email protected]2f80c312009-02-25 21:26:551448 },
1449 'target_conditions': [
[email protected]2f80c312009-02-25 21:26:551450 ['_type!="static_library"', {
[email protected]5d7dc972009-04-16 15:30:461451 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
1452 }],
1453 ['_mac_bundle', {
1454 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
[email protected]87fde4a2009-02-28 00:50:081455 }],
[email protected]9a5e72862010-09-02 16:16:581456 ['(_type=="executable" or _type=="shared_library" or \
1457 _type=="loadable_module") and mac_strip!=0', {
[email protected]24700642009-06-01 16:01:201458 'target_conditions': [
1459 ['mac_real_dsym == 1', {
1460 # To get a real .dSYM bundle produced by dsymutil, set the
1461 # debug information format to dwarf-with-dsym. Since
1462 # strip_from_xcode will not be used, set Xcode to do the
1463 # stripping as well.
1464 'configurations': {
[email protected]5153767c2009-12-22 01:52:501465 'Release_Base': {
[email protected]24700642009-06-01 16:01:201466 'xcode_settings': {
1467 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
1468 'DEPLOYMENT_POSTPROCESSING': 'YES',
1469 'STRIP_INSTALLED_PRODUCT': 'YES',
[email protected]e14a9f92009-08-05 19:26:071470 'target_conditions': [
[email protected]c2111422010-06-01 18:30:251471 ['_type=="shared_library" or _type=="loadable_module"', {
[email protected]e14a9f92009-08-05 19:26:071472 # The Xcode default is to strip debugging symbols
1473 # only (-S). Local symbols should be stripped as
1474 # well, which will be handled by -x. Xcode will
1475 # continue to insert -S when stripping even when
1476 # additional flags are added with STRIPFLAGS.
1477 'STRIPFLAGS': '-x',
[email protected]c2111422010-06-01 18:30:251478 }], # _type=="shared_library" or _type=="loadable_module"'
[email protected]e14a9f92009-08-05 19:26:071479 ], # target_conditions
1480 }, # xcode_settings
1481 }, # configuration "Release"
1482 }, # configurations
[email protected]24700642009-06-01 16:01:201483 }, { # mac_real_dsym != 1
1484 # To get a fast fake .dSYM bundle, use a post-build step to
1485 # produce the .dSYM and strip the executable. strip_from_xcode
1486 # only operates in the Release configuration.
1487 'postbuilds': [
1488 {
1489 'variables': {
1490 # Define strip_from_xcode in a variable ending in _path
1491 # so that gyp understands it's a path and performs proper
1492 # relativization during dict merging.
1493 'strip_from_xcode_path': 'mac/strip_from_xcode',
1494 },
1495 'postbuild_name': 'Strip If Needed',
1496 'action': ['<(strip_from_xcode_path)'],
1497 },
[email protected]e14a9f92009-08-05 19:26:071498 ], # postbuilds
1499 }], # mac_real_dsym
1500 ], # target_conditions
[email protected]9a5e72862010-09-02 16:16:581501 }], # (_type=="executable" or _type=="shared_library" or
1502 # _type=="loadable_module") and mac_strip!=0
[email protected]e14a9f92009-08-05 19:26:071503 ], # target_conditions
1504 }, # target_defaults
1505 }], # OS=="mac"
[email protected]2f80c312009-02-25 21:26:551506 ['OS=="win"', {
1507 'target_defaults': {
1508 'defines': [
1509 '_WIN32_WINNT=0x0600',
1510 'WINVER=0x0600',
1511 'WIN32',
1512 '_WINDOWS',
[email protected]2f80c312009-02-25 21:26:551513 'NOMINMAX',
1514 '_CRT_RAND_S',
1515 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
1516 'WIN32_LEAN_AND_MEAN',
[email protected]7a812dd62010-06-30 18:52:271517 '_ATL_NO_OPENGL',
[email protected]adfb98c2009-06-23 20:08:451518 '_HAS_TR1=0',
[email protected]2f80c312009-02-25 21:26:551519 ],
[email protected]8974e042010-06-21 18:06:521520 'conditions': [
1521 ['component=="static_library"', {
1522 'defines': [
1523 '_HAS_EXCEPTIONS=0',
1524 ],
1525 }],
[email protected]3e2648a2011-03-21 20:58:501526 ['secure_atl', {
1527 'defines': [
1528 '_SECURE_ATL',
1529 ],
1530 }],
[email protected]8974e042010-06-21 18:06:521531 ],
[email protected]5b5ca7cb2009-07-20 23:00:201532 'msvs_system_include_dirs': [
[email protected]998b5152009-12-12 22:19:521533 '<(DEPTH)/third_party/platformsdk_win7/files/Include',
[email protected]a78da50e2010-06-09 21:31:371534 '<(DEPTH)/third_party/directxsdk/files/Include',
[email protected]2f80c312009-02-25 21:26:551535 '$(VSInstallDir)/VC/atlmfc/include',
1536 ],
[email protected]a8d99cef2009-08-26 20:47:491537 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
[email protected]942c3a60f2011-05-03 02:04:111538 'msvs_disabled_warnings': [4351, 4396, 4503, 4819,
1539 # TODO(maruel): These warnings are level 4. They will be slowly
1540 # removed as code is fixed.
1541 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245,
1542 4310, 4355, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701,
1543 4702, 4706,
1544 ],
[email protected]2f80c312009-02-25 21:26:551545 'msvs_settings': {
1546 'VCCLCompilerTool': {
1547 'MinimalRebuild': 'false',
[email protected]2f80c312009-02-25 21:26:551548 'BufferSecurityCheck': 'true',
1549 'EnableFunctionLevelLinking': 'true',
1550 'RuntimeTypeInfo': 'false',
[email protected]942c3a60f2011-05-03 02:04:111551 'WarningLevel': '4',
[email protected]2f80c312009-02-25 21:26:551552 'WarnAsError': 'true',
1553 'DebugInformationFormat': '3',
[email protected]3fef6e62009-07-31 19:58:581554 'conditions': [
[email protected]3e2648a2011-03-21 20:58:501555 ['msvs_multi_core_compile', {
[email protected]1f9471a2010-01-04 06:40:161556 'AdditionalOptions': ['/MP'],
[email protected]912c55c2009-07-31 23:33:551557 }],
[email protected]3e2648a2011-03-21 20:58:501558 ['MSVS_VERSION=="2005e"', {
1559 'AdditionalOptions': ['/w44068'], # Unknown pragma to 4 (ATL)
1560 }],
[email protected]8974e042010-06-21 18:06:521561 ['component=="shared_library"', {
1562 'ExceptionHandling': '1', # /EHsc
1563 }, {
1564 'ExceptionHandling': '0',
1565 }],
[email protected]3fef6e62009-07-31 19:58:581566 ],
[email protected]2f80c312009-02-25 21:26:551567 },
1568 'VCLibrarianTool': {
[email protected]1f9471a2010-01-04 06:40:161569 'AdditionalOptions': ['/ignore:4221'],
[email protected]a78da50e2010-06-09 21:31:371570 'AdditionalLibraryDirectories': [
1571 '<(DEPTH)/third_party/platformsdk_win7/files/Lib',
1572 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
1573 ],
[email protected]2f80c312009-02-25 21:26:551574 },
1575 'VCLinkerTool': {
[email protected]2f80c312009-02-25 21:26:551576 'AdditionalDependencies': [
1577 'wininet.lib',
[email protected]b1d8c252011-01-13 20:27:501578 'dnsapi.lib',
[email protected]2f80c312009-02-25 21:26:551579 'version.lib',
1580 'msimg32.lib',
1581 'ws2_32.lib',
1582 'usp10.lib',
1583 'psapi.lib',
[email protected]96fd0032009-04-24 00:13:081584 'dbghelp.lib',
[email protected]dfdf7ee2011-04-28 18:51:481585 'winmm.lib',
1586 'shlwapi.lib',
[email protected]2f80c312009-02-25 21:26:551587 ],
[email protected]4de39f82011-03-28 12:01:291588 'conditions': [
[email protected]3e2648a2011-03-21 20:58:501589 ['msvs_express', {
1590 # Explicitly required when using the ATL with express
1591 'AdditionalDependencies': [
1592 'atlthunk.lib',
1593 ],
1594 }],
1595 ['MSVS_VERSION=="2005e"', {
1596 # Non-express versions link automatically to these
1597 'AdditionalDependencies': [
1598 'advapi32.lib',
1599 'comdlg32.lib',
1600 'ole32.lib',
1601 'shell32.lib',
1602 'user32.lib',
1603 'winspool.lib',
1604 ],
1605 }],
1606 ],
[email protected]a78da50e2010-06-09 21:31:371607 'AdditionalLibraryDirectories': [
1608 '<(DEPTH)/third_party/platformsdk_win7/files/Lib',
1609 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
1610 ],
[email protected]2f80c312009-02-25 21:26:551611 'GenerateDebugInformation': 'true',
1612 'MapFileName': '$(OutDir)\\$(TargetName).map',
1613 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
[email protected]2f80c312009-02-25 21:26:551614 'FixedBaseAddress': '1',
[email protected]825ff8d2009-05-22 01:40:481615 # SubSystem values:
1616 # 0 == not set
1617 # 1 == /SUBSYSTEM:CONSOLE
1618 # 2 == /SUBSYSTEM:WINDOWS
1619 # Most of the executables we'll ever create are tests
1620 # and utilities with console output.
1621 'SubSystem': '1',
[email protected]2f80c312009-02-25 21:26:551622 },
1623 'VCMIDLTool': {
1624 'GenerateStublessProxies': 'true',
1625 'TypeLibraryName': '$(InputName).tlb',
1626 'OutputDirectory': '$(IntDir)',
1627 'HeaderFileName': '$(InputName).h',
1628 'DLLDataFileName': 'dlldata.c',
1629 'InterfaceIdentifierFileName': '$(InputName)_i.c',
1630 'ProxyFileName': '$(InputName)_p.c',
1631 },
1632 'VCResourceCompilerTool': {
1633 'Culture' : '1033',
[email protected]4d91cbc2010-05-07 20:41:381634 'AdditionalIncludeDirectories': [
1635 '<(DEPTH)',
1636 '<(SHARED_INTERMEDIATE_DIR)',
1637 ],
[email protected]2f80c312009-02-25 21:26:551638 },
1639 },
1640 },
1641 }],
[email protected]79e2336c2011-05-12 18:18:341642 ['disable_nacl==1', {
[email protected]d8c7cbcc2009-10-02 19:00:311643 'target_defaults': {
1644 'defines': [
1645 'DISABLE_NACL',
1646 ],
1647 },
1648 }],
[email protected]cfbf9bc2009-12-07 22:07:561649 ['OS=="win" and msvs_use_common_linker_extras', {
[email protected]48c7af72009-07-03 22:00:191650 'target_defaults': {
1651 'msvs_settings': {
1652 'VCLinkerTool': {
[email protected]48c7af72009-07-03 22:00:191653 'DelayLoadDLLs': [
1654 'dbghelp.dll',
1655 'dwmapi.dll',
1656 'uxtheme.dll',
1657 ],
1658 },
1659 },
[email protected]ef4fa4072009-12-04 22:46:501660 'configurations': {
[email protected]5153767c2009-12-22 01:52:501661 'x86_Base': {
[email protected]ef4fa4072009-12-04 22:46:501662 'msvs_settings': {
1663 'VCLinkerTool': {
[email protected]1f9471a2010-01-04 06:40:161664 'AdditionalOptions': [
1665 '/safeseh',
1666 '/dynamicbase',
1667 '/ignore:4199',
1668 '/ignore:4221',
1669 '/nxcompat',
1670 ],
[email protected]ef4fa4072009-12-04 22:46:501671 },
1672 },
1673 },
[email protected]5153767c2009-12-22 01:52:501674 'x64_Base': {
[email protected]ef4fa4072009-12-04 22:46:501675 'msvs_settings': {
1676 'VCLinkerTool': {
[email protected]1f9471a2010-01-04 06:40:161677 'AdditionalOptions': [
[email protected]ef4fa4072009-12-04 22:46:501678 # safeseh is not compatible with x64
[email protected]1f9471a2010-01-04 06:40:161679 '/dynamicbase',
1680 '/ignore:4199',
1681 '/ignore:4221',
1682 '/nxcompat',
1683 ],
[email protected]ef4fa4072009-12-04 22:46:501684 },
1685 },
1686 },
1687 },
[email protected]48c7af72009-07-03 22:00:191688 },
1689 }],
[email protected]9821d0d2010-04-16 22:40:371690 ['enable_new_npdevice_api==1', {
1691 'target_defaults': {
1692 'defines': [
1693 'ENABLE_NEW_NPDEVICE_API',
1694 ],
1695 },
1696 }],
[email protected]2f80c312009-02-25 21:26:551697 ],
1698 'xcode_settings': {
[email protected]0c8ab452009-11-06 21:57:501699 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
1700 # This block adds *project-wide* configuration settings to each project
1701 # file. It's almost always wrong to put things here. Specify your
1702 # custom xcode_settings in target_defaults to add them to targets instead.
1703
1704 # In an Xcode Project Info window, the "Base SDK for All Configurations"
1705 # setting sets the SDK on a project-wide basis. In order to get the
1706 # configured SDK to show properly in the Xcode UI, SDKROOT must be set
1707 # here at the project level.
1708 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
1709
[email protected]2f80c312009-02-25 21:26:551710 # The Xcode generator will look for an xcode_settings section at the root
1711 # of each dict and use it to apply settings on a file-wide basis. Most
1712 # settings should not be here, they should be in target-specific
1713 # xcode_settings sections, or better yet, should use non-Xcode-specific
1714 # settings in target dicts. SYMROOT is a special case, because many other
1715 # Xcode variables depend on it, including variables such as
1716 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
1717 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
1718 # files to appear (when present) in the UI as actual files and not red
1719 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
1720 # and therefore SYMROOT, needs to be set at the project level.
[email protected]bfa24b962009-03-02 00:16:161721 'SYMROOT': '<(DEPTH)/xcodebuild',
[email protected]2f80c312009-02-25 21:26:551722 },
[email protected]ee28c9f2009-09-04 01:53:011723}
[email protected]f5c990c2009-10-06 03:02:381724
1725# Local Variables:
1726# tab-width:2
1727# indent-tabs-mode:nil
1728# End:
1729# vim: set expandtab tabstop=2 shiftwidth=2: