blob: 4652db45a699fe8dce1e4f3fcaa4d82fbe310724 [file] [log] [blame]
[email protected]2f80c312009-02-25 21:26:551# Copyright (c) 2009 The Chromium Authors. All rights reserved.
2# 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{
9 'variables': {
[email protected]b3fb8092009-03-12 19:09:2410 # .gyp files should set chromium_code to 1 if they build Chromium-specific
11 # code, as opposed to external code. This variable is used to control
12 # such things as the set of warnings to enable, and whether warnings are
13 # treated as errors.
[email protected]2f80c312009-02-25 21:26:5514 'chromium_code%': 0,
[email protected]b3fb8092009-03-12 19:09:2415
16 # Variables expected to be overriden on the GYP command line (-D) or by
17 # ~/.gyp/include.gypi.
18
[email protected]e14a9f92009-08-05 19:26:0719 # Putting a variables dict inside another variables dict looks kind of
20 # weird. This is done so that "branding" and "buildtype" are defined as
21 # variables within the outer variables dict here. This is necessary
22 # to get these variables defined for the conditions within this variables
23 # dict that operate on these variables.
24 'variables': {
25 # Override branding to select the desired branding flavor.
26 'branding%': 'Chromium',
27
28 # Override buildtype to select the desired build flavor.
29 # Dev - everyday build for development/testing
30 # Official - release build (generally implies additional processing)
31 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
32 # conversion is done), some of the things which are now controlled by
33 # 'branding', such as symbol generation, will need to be refactored based
34 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official
35 # builds).
36 'buildtype%': 'Dev',
[email protected]cbd5fd52009-08-26 00:14:2737
[email protected]521240182009-10-16 00:53:5938 # Compute the architecture that we're building for. Default to the
39 # architecture that we're building on.
40 'conditions': [
41 [ 'OS=="linux"', {
42 # This handles the Linux platforms we generally deal with. Anything
43 # else gets passed through, which probably won't work very well; such
44 # hosts should pass an explicit target_arch to gyp.
45 'target_arch%':
[email protected]85c55dc2009-11-06 03:05:4646 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")',
47
[email protected]521240182009-10-16 00:53:5948 }, { # OS!="linux"
49 'target_arch%': 'ia32',
[email protected]4e1c76f2009-11-13 01:36:5050 }],
51 [ 'OS=="mac"', {
52 # For now, only Linux and Windows use spellcheck in the renderer.
[email protected]85c55dc2009-11-06 03:05:4653 'spellchecker_in_renderer%': 0,
[email protected]4e1c76f2009-11-13 01:36:5054 }, { # OS!="mac"
55 'spellchecker_in_renderer%': 1,
[email protected]521240182009-10-16 00:53:5956 }],
57 ],
[email protected]e0d00142009-09-18 22:10:2758
[email protected]cbd5fd52009-08-26 00:14:2759 # We do want to build Chromium with Breakpad support in certain
60 # situations. I.e. for Chrome bot.
61 'linux_chromium_breakpad%': 0,
[email protected]4c9cc6c2009-10-01 18:54:5762 # And if we want to dump symbols.
[email protected]05cb6962009-10-01 23:29:0363 'linux_chromium_dump_symbols%': 0,
64 # Also see linux_strip_binary below.
[email protected]c153e5352009-09-22 12:37:4465
66 # By default, Linux does not use views. To turn on views in Linux,
67 # set the variable GYP_DEFINES to "toolkit_views=1", or modify
68 # ~/.gyp/include.gypi .
69 'toolkit_views%': 0,
70
71 # Defaults to a desktop build, overridden via command line/env.
72 'chromeos%': 0,
[email protected]b2f030c2009-09-24 20:36:2173
74 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
75 # are built under a chromium full build (1) or a webkit.org chromium
76 # build (0).
77 'inside_chromium_build%': 1,
[email protected]9c1949e2009-10-02 19:59:5478
79 # Set to 1 to enable fast builds. It disables debug info for fastest
80 # compilation.
81 'fastbuild%': 0,
[email protected]e14a9f92009-08-05 19:26:0782 },
83
84 # Define branding and buildtype on the basis of their settings within the
85 # variables sub-dict above, unless overridden.
86 'branding%': '<(branding)',
87 'buildtype%': '<(buildtype)',
[email protected]e0d00142009-09-18 22:10:2788 'target_arch%': '<(target_arch)',
[email protected]85c55dc2009-11-06 03:05:4689 'spellchecker_in_renderer%': '<(spellchecker_in_renderer)',
[email protected]c153e5352009-09-22 12:37:4490 'toolkit_views%': '<(toolkit_views)',
91 'chromeos%': '<(chromeos)',
[email protected]b2f030c2009-09-24 20:36:2192 'inside_chromium_build%': '<(inside_chromium_build)',
[email protected]9c1949e2009-10-02 19:59:5493 'fastbuild%': '<(fastbuild)',
[email protected]e14a9f92009-08-05 19:26:0794
[email protected]b3fb8092009-03-12 19:09:2495 # Override chromium_mac_pch and set it to 0 to suppress the use of
96 # precompiled headers on the Mac. Prefix header injection may still be
97 # used, but prefix headers will not be precompiled. This is useful when
98 # using distcc to distribute a build to compile slaves that don't
99 # share the same compiler executable as the system driving the compilation,
100 # because precompiled headers rely on pointers into a specific compiler
101 # executable's image. Setting this to 0 is needed to use an experimental
102 # Linux-Mac cross compiler distcc farm.
103 'chromium_mac_pch%': 1,
104
[email protected]3224dcd2009-09-16 17:31:25105 # Mac OS X SDK and deployment target support.
106 # The SDK identifies the version of the system headers that will be used,
107 # and corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time macro.
108 # "Maximum allowed" refers to the operating system version whose APIs are
109 # available in the headers.
110 # The deployment target identifies the minimum system version that the
111 # built products are expected to function on. It corresponds to the
112 # MAC_OS_X_VERSION_MIN_REQUIRED compile-time macro.
113 # To ensure these macros are available, #include <AvailabilityMacros.h>.
114 # Additional documentation on these macros is available at
115 # http://developer.apple.com/mac/library/technotes/tn2002/tn2064.html#SECTION3
116 # Chrome normally builds with the Mac OS X 10.5 SDK and sets the
117 # deployment target to 10.5. Other projects, such as O3D, may override
118 # these defaults.
119 'mac_sdk%': '10.5',
120 'mac_deployment_target%': '10.5',
[email protected]9543af052009-09-15 22:42:59121
[email protected]f5ecbba12009-04-03 04:35:18122 # Set to 1 to enable code coverage. In addition to build changes
123 # (e.g. extra CFLAGS), also creates a new target in the src/chrome
124 # project file called "coverage".
125 # Currently ignored on Windows.
126 'coverage%': 0,
[email protected]653bd5f032009-04-08 12:55:49127
[email protected]c61f6432009-04-22 01:16:42128 # Overridable specification for potential use of alternative
129 # JavaScript engines.
130 'javascript_engine%': 'v8',
131
[email protected]653bd5f032009-04-08 12:55:49132 # To do a shared build on linux we need to be able to choose between type
133 # static_library and shared_library. We default to doing a static build
134 # but you can override this with "gyp -Dlibrary=shared_library" or you
135 # can add the following line (without the #) to ~/.gyp/include.gypi
136 # {'variables': {'library': 'shared_library'}}
137 # to compile as shared by default
138 'library%': 'static_library',
[email protected]279cd4212009-09-11 22:32:11139
[email protected]06e6f872009-09-01 19:09:41140 # The Google Update appid.
141 'google_update_appid%': '{8A69D345-D564-463c-AFF1-A69D9E530F96}',
[email protected]279cd4212009-09-11 22:32:11142
143 # Whether to add the experimental build define.
[email protected]756499c2009-09-28 16:50:46144 'chrome_frame_define%': 0,
[email protected]e5b2eaa2009-04-14 01:39:12145
[email protected]a79a3f8d2009-11-02 21:07:35146 # Whether pepper APIs are enabled.
147 'enable_pepper%': 0,
[email protected]4e1c76f2009-11-13 01:36:50148
[email protected]95ff8082009-11-13 22:21:01149 # Whether usage of OpenMAX is enabled.
150 'enable_openmax%': 0,
151
[email protected]e5b2eaa2009-04-14 01:39:12152 # TODO(bradnelson): eliminate this when possible.
153 # To allow local gyp files to prevent release.vsprops from being included.
154 # Yes(1) means include release.vsprops.
155 # Once all vsprops settings are migrated into gyp, this can go away.
156 'msvs_use_common_release%': 1,
[email protected]606116d22009-05-06 22:38:23157
[email protected]cbd5fd52009-08-26 00:14:27158 # TODO(bradnelson): eliminate this when possible.
159 # To allow local gyp files to override additional linker options for msvs.
160 # Yes(1) means set use the common linker options.
[email protected]48c7af72009-07-03 22:00:19161 'msvs_use_common_linker_extras%': 1,
162
[email protected]1ffb6502009-06-02 07:46:24163 # TODO(sgk): eliminate this if possible.
164 # It would be nicer to support this via a setting in 'target_defaults'
165 # in chrome/app/locales/locales.gypi overriding the setting in the
166 # 'Debug' configuration in the 'target_defaults' dict below,
167 # but that doesn't work as we'd like.
168 'msvs_debug_link_incremental%': '2',
169
[email protected]ee28c9f2009-09-04 01:53:01170 # The system root for cross-compiles. Default: none.
171 'sysroot%': '',
172
[email protected]573136142009-07-15 22:48:37173 # This is the location of the sandbox binary. Chrome looks for this before
174 # running the zygote process. If found, and SUID, it will be used to
175 # sandbox the zygote process and, thus, all renderer processes.
176 'linux_sandbox_path%': '',
177
[email protected]ad6d2c42009-09-15 20:13:38178 # Set this to true to enable SELinux support.
179 'selinux%': 0,
[email protected]4c9cc6c2009-10-01 18:54:57180
[email protected]05cb6962009-10-01 23:29:03181 # Strip the binary after dumping symbols.
182 'linux_strip_binary%': 0,
183
[email protected]01699e22009-11-11 19:24:24184 # Enable TCMalloc.
[email protected]2c556052009-11-12 05:58:58185 'linux_use_tcmalloc%': 0,
[email protected]01699e22009-11-11 19:24:24186
[email protected]c153e5352009-09-22 12:37:44187 # Set to select the Title Case versions of strings in GRD files.
188 'use_titlecase_in_grd_files%': 0,
[email protected]ad6d2c42009-09-15 20:13:38189
[email protected]d8c7cbcc2009-10-02 19:00:31190 # Used to disable Native Client at compile time, for platforms where it
191 # isn't supported
192 'disable_nacl%': 0,
193
[email protected]3ed42e32009-10-07 00:10:46194 # Set ARM-v7 compilation flags
195 'armv7%': 0,
196
[email protected]912c55c2009-07-31 23:33:55197 'conditions': [
[email protected]cbd5fd52009-08-26 00:14:27198 ['OS=="linux"', {
[email protected]242a9e62009-11-03 17:32:10199 # This will set gcc_version to XY if you are running gcc X.Y.*.
200 # This is used to tweak build flags for gcc 4.4.
201 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
[email protected]cbd5fd52009-08-26 00:14:27202 'conditions': [
203 ['branding=="Chrome" or linux_chromium_breakpad==1', {
204 'linux_breakpad%': 1,
205 }, {
206 'linux_breakpad%': 0,
207 }],
[email protected]4c9cc6c2009-10-01 18:54:57208 # All Chrome builds have breakpad symbols, but only process the
209 # symbols from official builds.
210 # TODO(mmoss) dump_syms segfaults on x64. Enable once dump_syms and
211 # crash server handle 64-bit symbols.
212 ['linux_chromium_dump_symbols==1 or '
213 '(branding=="Chrome" and buildtype=="Official" and '
214 'target_arch=="ia32")', {
215 'linux_dump_symbols%': 1,
216 }, {
217 'linux_dump_symbols%': 0,
218 }],
[email protected]c153e5352009-09-22 12:37:44219 ['toolkit_views==0', {
220 # GTK wants Title Case strings
221 'use_titlecase_in_grd_files%': 1,
222 }],
[email protected]cbd5fd52009-08-26 00:14:27223 ],
224 }], # OS=="linux"
[email protected]e14a9f92009-08-05 19:26:07225 ['OS=="mac"', {
[email protected]c153e5352009-09-22 12:37:44226 # Mac wants Title Case strings
227 'use_titlecase_in_grd_files%': 1,
[email protected]e14a9f92009-08-05 19:26:07228 'conditions': [
229 # mac_product_name is set to the name of the .app bundle as it should
230 # appear on disk. This duplicates data from
231 # chrome/app/theme/chromium/BRANDING and
232 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get
233 # these names into the build system.
234 ['branding=="Chrome"', {
235 'mac_product_name%': 'Google Chrome',
236 }, { # else: branding!="Chrome"
237 'mac_product_name%': 'Chromium',
238 }],
239
240 # Feature variables for enabling Mac Breakpad and Keystone auto-update
241 # support. Both features are on by default in official builds with
242 # Chrome branding.
243 ['branding=="Chrome" and buildtype=="Official"', {
244 'mac_breakpad%': 1,
245 'mac_keystone%': 1,
246 }, { # else: branding!="Chrome" or buildtype!="Official"
247 'mac_breakpad%': 0,
248 'mac_keystone%': 0,
249 }],
250 ],
251 }], # OS=="mac"
[email protected]912c55c2009-07-31 23:33:55252 # Whether to use multiple cores to compile with visual studio. This is
253 # optional because it sometimes causes corruption on VS 2005.
254 # It is on by default on VS 2008 and off on VS 2005.
255 ['OS=="win"', {
256 'conditions': [
257 ['MSVS_VERSION=="2005"', {
[email protected]669795372009-08-14 17:51:13258 'msvs_multi_core_compile%': 0,
[email protected]912c55c2009-07-31 23:33:55259 },{
260 'msvs_multi_core_compile%': 1,
261 }],
[email protected]10bb8c92009-08-07 21:16:03262 # Don't do incremental linking for large modules on 32-bit.
263 ['MSVS_OS_BITS==32', {
264 'msvs_large_module_debug_link_mode%': '1', # No
265 },{
266 'msvs_large_module_debug_link_mode%': '2', # Yes
267 }],
[email protected]912c55c2009-07-31 23:33:55268 ],
269 }],
270 ],
[email protected]f703c4e2009-09-17 21:54:28271
272 # NOTE: When these end up in the Mac bundle, we need to replace '-' for '_'
273 # so Cocoa is happy (http://crbug.com/20441).
274 'locales': [
[email protected]af27c8c2009-11-04 20:36:50275 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
[email protected]f703c4e2009-09-17 21:54:28276 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he',
277 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv',
278 'ml', 'mr', 'nb', 'nl', 'or', 'pl', 'pt-BR', 'pt-PT', 'ro',
[email protected]af27c8c2009-11-04 20:36:50279 'ru', 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr',
[email protected]f703c4e2009-09-17 21:54:28280 'uk', 'vi', 'zh-CN', 'zh-TW',
281 ],
[email protected]2f80c312009-02-25 21:26:55282 },
283 'target_defaults': {
[email protected]1c966092009-08-20 21:19:26284 'variables': {
[email protected]d5d593a2009-08-28 23:23:29285 'mac_release_optimization%': '3', # Use -O3 unless overridden
[email protected]ffd984b12009-09-11 19:37:00286 'mac_debug_optimization%': '0', # Use -O0 unless overridden
287 'release_extra_cflags%': '',
288 'debug_extra_cflags%': '',
[email protected]92822e82009-09-18 14:26:56289 'release_valgrind_build%': 0,
[email protected]1c966092009-08-20 21:19:26290 },
[email protected]32aa8cc2009-03-04 21:36:39291 'conditions': [
292 ['branding=="Chrome"', {
293 'defines': ['GOOGLE_CHROME_BUILD'],
294 }, { # else: branding!="Chrome"
295 'defines': ['CHROMIUM_BUILD'],
296 }],
[email protected]756499c2009-09-28 16:50:46297 ['chrome_frame_define', {
298 'defines': ['CHROME_FRAME_BUILD'],
[email protected]279cd4212009-09-11 22:32:11299 }],
[email protected]6cb1cec2009-05-15 03:05:20300 ['toolkit_views==1', {
[email protected]e6970232009-05-12 23:51:17301 'defines': ['TOOLKIT_VIEWS=1'],
302 }],
[email protected]3e193f9c2009-10-13 23:31:53303 ['chromeos==1', {
304 'defines': ['CHROMEOS_TRANSITIONAL=1'],
305 }],
[email protected]a678f3f2009-10-12 23:58:03306 ['chromeos==1 or toolkit_views==1', {
[email protected]16779842009-07-08 23:45:29307 'defines': ['OS_CHROMEOS=1'],
[email protected]2b883b92009-06-02 22:57:50308 }],
[email protected]a79a3f8d2009-11-02 21:07:35309 ['enable_pepper==1', {
310 'defines': ['ENABLE_PEPPER=1'],
311 }],
[email protected]85c55dc2009-11-06 03:05:46312 ['spellchecker_in_renderer==1', {
313 'defines': ['SPELLCHECKER_IN_RENDERER=1']
314 }],
[email protected]9c1949e2009-10-02 19:59:54315 ['fastbuild!=0', {
316 'conditions': [
317 # Finally, for Windows, we simply turn on profiling.
318 ['OS=="win"', {
319 'msvs_settings': {
320 'VCLinkerTool': {
321 'GenerateDebugInformation': 'false',
322 },
323 'VCCLCompilerTool': {
324 'DebugInformationFormat': '0',
325 }
326 }
327 }], # OS==win
328 ], # conditions for fastbuild.
329 }], # fastbuild!=0
[email protected]ad6d2c42009-09-15 20:13:38330 ['selinux==1', {
331 'defines': ['CHROMIUM_SELINUX=1'],
332 }],
[email protected]f5ecbba12009-04-03 04:35:18333 ['coverage!=0', {
334 'conditions': [
335 ['OS=="mac"', {
336 'xcode_settings': {
[email protected]ab2956372009-08-13 18:11:04337 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs
338 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage
[email protected]5ae4f55e2009-04-13 23:19:47339 },
[email protected]ac1f5732009-10-23 00:12:01340 # Add -lgcov for executables and shared_libraries, not for
341 # static_libraries. This is a delayed conditional.
[email protected]f5ecbba12009-04-03 04:35:18342 'target_conditions': [
[email protected]ac1f5732009-10-23 00:12:01343 ['_type=="executable" or _type=="shared_library"', {
[email protected]f5ecbba12009-04-03 04:35:18344 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] },
[email protected]5ae4f55e2009-04-13 23:19:47345 }],
346 ],
347 }],
[email protected]7122ffd52009-04-30 23:19:00348 # Linux gyp (into scons) doesn't like target_conditions?
349 # TODO(???): track down why 'target_conditions' doesn't work
350 # on Linux gyp into scons like it does on Mac gyp into xcodeproj.
[email protected]f5ecbba12009-04-03 04:35:18351 ['OS=="linux"', {
352 'cflags': [ '-ftest-coverage',
353 '-fprofile-arcs' ],
[email protected]7122ffd52009-04-30 23:19:00354 'link_settings': { 'libraries': [ '-lgcov' ] },
[email protected]f5ecbba12009-04-03 04:35:18355 }],
[email protected]e8f6ff42009-07-07 18:20:53356 # Finally, for Windows, we simply turn on profiling.
357 ['OS=="win"', {
358 'msvs_settings': {
359 'VCLinkerTool': {
360 'Profile': 'true',
361 },
[email protected]10bb8c92009-08-07 21:16:03362 'VCCLCompilerTool': {
[email protected]e8f6ff42009-07-07 18:20:53363 # /Z7, not /Zi, so coverage is happyb
364 'DebugInformationFormat': '1',
365 'AdditionalOptions': '/Yd',
366 }
367 }
368 }], # OS==win
369 ], # conditions for coverage
370 }], # coverage!=0
371 ], # conditions for 'target_defaults'
[email protected]2f80c312009-02-25 21:26:55372 'default_configuration': 'Debug',
373 'configurations': {
[email protected]825ff8d2009-05-22 01:40:48374 # VCLinkerTool LinkIncremental values below:
375 # 0 == default
376 # 1 == /INCREMENTAL:NO
377 # 2 == /INCREMENTAL
378 # Debug links incremental, Release does not.
[email protected]bb05e452009-10-29 21:24:56379 'Common': {
380 'abstract': 1,
381 'msvs_configuration_attributes': {
382 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
383 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
384 'CharacterSet': '1',
385 },
[email protected]2fa40782009-11-01 21:17:34386 'msvs_configuration_platform': 'Win32',
[email protected]bb05e452009-10-29 21:24:56387 },
[email protected]2f80c312009-02-25 21:26:55388 'Debug': {
[email protected]bb05e452009-10-29 21:24:56389 'inherit_from': ['Common'],
[email protected]1c966092009-08-20 21:19:26390 'xcode_settings': {
391 'COPY_PHASE_STRIP': 'NO',
[email protected]d5d593a2009-08-28 23:23:29392 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)',
[email protected]bd232ac2009-10-21 02:23:53393 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ],
[email protected]1c966092009-08-20 21:19:26394 },
[email protected]bb05e452009-10-29 21:24:56395 'msvs_settings': {
396 'VCCLCompilerTool': {
397 'Optimization': '0',
398 'PreprocessorDefinitions': ['_DEBUG'],
399 'BasicRuntimeChecks': '3',
400 'RuntimeLibrary': '1',
401 },
402 'VCLinkerTool': {
403 'LinkIncremental': '<(msvs_debug_link_incremental)',
404 },
405 'VCResourceCompilerTool': {
406 'PreprocessorDefinitions': ['_DEBUG'],
407 },
408 },
[email protected]2f80c312009-02-25 21:26:55409 'conditions': [
[email protected]bb05e452009-10-29 21:24:56410 ['OS=="linux"', {
411 'cflags': [
412 '<@(debug_extra_cflags)',
413 ],
[email protected]2f80c312009-02-25 21:26:55414 }],
415 ],
416 },
417 'Release': {
[email protected]bb05e452009-10-29 21:24:56418 'inherit_from': ['Common'],
[email protected]2f80c312009-02-25 21:26:55419 'defines': [
420 'NDEBUG',
421 ],
[email protected]1c966092009-08-20 21:19:26422 'xcode_settings': {
423 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip
424 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)',
[email protected]ffd984b12009-09-11 19:37:00425 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ],
[email protected]1c966092009-08-20 21:19:26426 },
[email protected]bb05e452009-10-29 21:24:56427 'msvs_settings': {
428 'VCLinkerTool': {
429 'LinkIncremental': '1',
430 },
431 },
[email protected]2f80c312009-02-25 21:26:55432 'conditions': [
[email protected]92822e82009-09-18 14:26:56433 ['release_valgrind_build==0', {
434 'defines': ['NVALGRIND'],
435 }],
[email protected]bb05e452009-10-29 21:24:56436 ['msvs_use_common_release', {
[email protected]2f80c312009-02-25 21:26:55437 'msvs_props': ['release.vsprops'],
438 }],
[email protected]bb05e452009-10-29 21:24:56439 ['OS=="linux"', {
440 'cflags': [
[email protected]ffd984b12009-09-11 19:37:00441 '<@(release_extra_cflags)',
[email protected]bb05e452009-10-29 21:24:56442 ],
443 }],
[email protected]2f80c312009-02-25 21:26:55444 ],
445 },
[email protected]f926fa0a2009-08-04 22:50:13446 'conditions': [
447 [ 'OS=="win"', {
448 # TODO(bradnelson): add a gyp mechanism to make this more graceful.
449 'Purify': {
[email protected]bb05e452009-10-29 21:24:56450 'inherit_from': ['Release'],
[email protected]f926fa0a2009-08-04 22:50:13451 'defines': [
[email protected]f926fa0a2009-08-04 22:50:13452 'PURIFY',
453 'NO_TCMALLOC',
454 ],
455 'msvs_settings': {
456 'VCCLCompilerTool': {
457 'Optimization': '0',
458 'RuntimeLibrary': '0',
459 'BufferSecurityCheck': 'false',
460 },
461 'VCLinkerTool': {
462 'EnableCOMDATFolding': '1',
463 'LinkIncremental': '1',
464 },
465 },
[email protected]f926fa0a2009-08-04 22:50:13466 },
467 'Release - no tcmalloc': {
[email protected]bb05e452009-10-29 21:24:56468 'inherit_from': ['Release'],
469 'defines': ['NO_TCMALLOC'],
[email protected]f926fa0a2009-08-04 22:50:13470 },
[email protected]78263c12009-11-01 23:45:30471 'Debug_x64': {
472 'inherit_from': ['Debug'],
473 'msvs_configuration_platform': 'x64',
474 },
475 'Release_x64': {
476 'inherit_from': ['Release'],
477 'msvs_configuration_platform': 'x64',
478 },
479 'Purify_x64': {
480 'inherit_from': ['Purify'],
481 'msvs_configuration_platform': 'x64',
482 },
483 'Release - no tcmalloc_x64': {
484 'inherit_from': ['Release - no tcmalloc'],
485 'msvs_configuration_platform': 'x64',
486 },
[email protected]f926fa0a2009-08-04 22:50:13487 }],
488 ],
[email protected]2f80c312009-02-25 21:26:55489 },
490 },
491 'conditions': [
[email protected]606116d22009-05-06 22:38:23492 ['OS=="linux"', {
[email protected]9d384032009-03-20 23:13:26493 'target_defaults': {
[email protected]5315f2842009-04-28 00:43:27494 # Enable -Werror by default, but put it in a variable so it can
495 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
496 'variables': {
497 'werror%': '-Werror',
[email protected]cc4219a2009-08-14 05:30:52498 'no_strict_aliasing%': 0,
[email protected]5315f2842009-04-28 00:43:27499 },
[email protected]9d384032009-03-20 23:13:26500 'cflags': [
[email protected]1bba09c2009-08-13 12:53:16501 '<(werror)', # See note above about the werror variable.
502 '-pthread',
503 '-fno-exceptions',
[email protected]7cd2afd2009-10-27 21:40:26504 '-fvisibility=hidden',
[email protected]1bba09c2009-08-13 12:53:16505 '-Wall',
506 '-D_FILE_OFFSET_BITS=64',
[email protected]8a2fcba2009-07-29 00:52:24507 ],
508 'cflags_cc': [
[email protected]832d0212009-10-28 19:12:22509 '-fno-rtti',
[email protected]8a2fcba2009-07-29 00:52:24510 '-fno-threadsafe-statics',
[email protected]9d384032009-03-20 23:13:26511 ],
[email protected]a6cf87e2009-04-03 04:07:38512 'ldflags': [
[email protected]9d384032009-03-20 23:13:26513 '-pthread',
514 ],
[email protected]b5e46b92009-03-26 18:58:10515 'scons_variable_settings': {
516 'LIBPATH': ['$LIB_DIR'],
[email protected]9d384032009-03-20 23:13:26517 # Linking of large files uses lots of RAM, so serialize links
518 # using the handy flock command from util-linux.
[email protected]c13fcbd2009-03-27 04:27:01519 'FLOCK_LINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
[email protected]789fbb7c2009-04-02 16:20:31520 'FLOCK_SHLINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
521 'FLOCK_LDMODULE': ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
[email protected]9d384032009-03-20 23:13:26522
523 # We have several cases where archives depend on each other in
524 # a cyclic fashion. Since the GNU linker does only a single
525 # pass over the archives we surround the libraries with
526 # --start-group and --end-group (aka -( and -) ). That causes
527 # ld to loop over the group until no more undefined symbols
528 # are found. In an ideal world we would only make groups from
529 # those libraries which we knew to be in cycles. However,
530 # that's tough with SCons, so we bodge it by making all the
531 # archives a group by redefining the linking command here.
532 #
533 # TODO: investigate whether we still have cycles that
534 # require --{start,end}-group. There has been a lot of
535 # refactoring since this was first coded, which might have
536 # eliminated the circular dependencies.
[email protected]12862922009-04-20 21:36:41537 #
538 # Note: $_LIBDIRFLAGS comes before ${LINK,SHLINK,LDMODULE}FLAGS
539 # so that we prefer our own built libraries (e.g. -lpng) to
540 # system versions of libraries that pkg-config might turn up.
541 # TODO(sgk): investigate handling this not by re-ordering the
542 # flags this way, but by adding a hook to use the SCons
543 # ParseFlags() option on the output from pkg-config.
[email protected]610d8cc2009-09-19 00:47:04544 'LINKCOM': [['$FLOCK_LINK', '-o', '$TARGET',
545 '$_LIBDIRFLAGS', '$LINKFLAGS', '$SOURCES',
546 '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']],
547 'SHLINKCOM': [['$FLOCK_SHLINK', '-o', '$TARGET',
548 '$_LIBDIRFLAGS', '$SHLINKFLAGS', '$SOURCES',
549 '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']],
550 'LDMODULECOM': [['$FLOCK_LDMODULE', '-o', '$TARGET',
551 '$_LIBDIRFLAGS', '$LDMODULEFLAGS', '$SOURCES',
552 '-Wl,--start-group', '$_LIBFLAGS', '-Wl,--end-group']],
[email protected]9d384032009-03-20 23:13:26553 'IMPLICIT_COMMAND_DEPENDENCIES': 0,
[email protected]d0644282009-04-22 00:20:29554 # -rpath is only used when building with shared libraries.
555 'conditions': [
556 [ 'library=="shared_library"', {
557 'RPATH': '$LIB_DIR',
558 }],
559 ],
[email protected]9d384032009-03-20 23:13:26560 },
[email protected]b5e46b92009-03-26 18:58:10561 'scons_import_variables': [
[email protected]52049d5c2009-05-01 20:32:49562 'AS',
[email protected]b5e46b92009-03-26 18:58:10563 'CC',
564 'CXX',
565 'LINK',
566 ],
567 'scons_propagate_variables': [
[email protected]52049d5c2009-05-01 20:32:49568 'AS',
[email protected]b5e46b92009-03-26 18:58:10569 'CC',
570 'CCACHE_DIR',
571 'CXX',
572 'DISTCC_DIR',
573 'DISTCC_HOSTS',
574 'HOME',
[email protected]5ae4f55e2009-04-13 23:19:47575 'INCLUDE_SERVER_ARGS',
576 'INCLUDE_SERVER_PORT',
[email protected]b5e46b92009-03-26 18:58:10577 'LINK',
[email protected]fff920a2009-05-08 22:35:32578 'CHROME_BUILD_TYPE',
579 'CHROMIUM_BUILD',
580 'OFFICIAL_BUILD',
[email protected]b5e46b92009-03-26 18:58:10581 ],
[email protected]3aacaf952009-04-02 15:34:09582 'configurations': {
583 'Debug': {
[email protected]c5bdc032009-04-20 19:11:31584 'variables': {
585 'debug_optimize%': '0',
586 },
[email protected]3aacaf952009-04-02 15:34:09587 'defines': [
588 '_DEBUG',
589 ],
590 'cflags': [
[email protected]22898f62009-10-26 22:14:01591 '-O>(debug_optimize)',
[email protected]3aacaf952009-04-02 15:34:09592 '-g',
[email protected]9a5d2a52009-05-22 03:37:45593 # One can use '-gstabs' to enable building the debugging
594 # information in STABS format for breakpad's dumpsyms.
[email protected]3aacaf952009-04-02 15:34:09595 ],
[email protected]96fd0032009-04-24 00:13:08596 'ldflags': [
597 '-rdynamic', # Allows backtrace to resolve symbols.
598 ],
[email protected]5315f2842009-04-28 00:43:27599 },
[email protected]3aacaf952009-04-02 15:34:09600 'Release': {
[email protected]740e2de2009-07-21 11:41:01601 'variables': {
602 'release_optimize%': '2',
603 },
[email protected]3aacaf952009-04-02 15:34:09604 'cflags': [
[email protected]22898f62009-10-26 22:14:01605 '-O>(release_optimize)',
[email protected]d8cc3a62009-04-08 18:29:53606 # Don't emit the GCC version ident directives, they just end up
607 # in the .comment section taking up binary size.
608 '-fno-ident',
609 # Put data and code in their own sections, so that unused symbols
610 # can be removed at link time with --gc-sections.
611 '-fdata-sections',
612 '-ffunction-sections',
[email protected]3aacaf952009-04-02 15:34:09613 ],
614 },
615 },
[email protected]601b540222009-04-03 21:32:04616 'variants': {
617 'coverage': {
618 'cflags': ['-fprofile-arcs', '-ftest-coverage'],
619 'ldflags': ['-fprofile-arcs'],
620 },
621 'profile': {
622 'cflags': ['-pg', '-g'],
623 'ldflags': ['-pg'],
624 },
625 'symbols': {
626 'cflags': ['-g'],
627 },
628 },
[email protected]606116d22009-05-06 22:38:23629 'conditions': [
[email protected]7e8eb7612009-07-29 15:56:00630 [ 'target_arch=="ia32"', {
[email protected]606116d22009-05-06 22:38:23631 'asflags': [
632 # Needed so that libs with .s files (e.g. libicudata.a)
633 # are compatible with the general 32-bit-ness.
634 '-32',
635 ],
636 # All floating-point computations on x87 happens in 80-bit
637 # precision. Because the C and C++ language standards allow
638 # the compiler to keep the floating-point values in higher
639 # precision than what's specified in the source and doing so
640 # is more efficient than constantly rounding up to 64-bit or
641 # 32-bit precision as specified in the source, the compiler,
642 # especially in the optimized mode, tries very hard to keep
643 # values in x87 floating-point stack (in 80-bit precision)
644 # as long as possible. This has important side effects, that
645 # the real value used in computation may change depending on
646 # how the compiler did the optimization - that is, the value
647 # kept in 80-bit is different than the value rounded down to
648 # 64-bit or 32-bit. There are possible compiler options to make
649 # this behavior consistent (e.g. -ffloat-store would keep all
650 # floating-values in the memory, thus force them to be rounded
651 # to its original precision) but they have significant runtime
652 # performance penalty.
653 #
654 # -mfpmath=sse -msse2 makes the compiler use SSE instructions
655 # which keep floating-point values in SSE registers in its
656 # native precision (32-bit for single precision, and 64-bit for
657 # double precision values). This means the floating-point value
658 # used during computation does not change depending on how the
659 # compiler optimized the code, since the value is always kept
660 # in its specified precision.
[email protected]ffde7932009-05-29 00:39:06661 'conditions': [
662 ['branding=="Chromium"', {
663 'cflags': [
664 '-march=pentium4',
665 '-msse2',
666 '-mfpmath=sse',
667 ],
668 }],
669 ],
[email protected]606116d22009-05-06 22:38:23670 'cflags': [
671 '-m32',
[email protected]1c6560af2009-07-14 11:02:16672 ],
[email protected]606116d22009-05-06 22:38:23673 'ldflags': [
674 '-m32',
675 ],
676 }],
[email protected]3dda8a962009-08-10 18:58:07677 ['target_arch=="arm"', {
[email protected]dc9711f2009-11-13 19:30:25678 'conditions': [
679 ['armv7==1', {
680 'target_conditions': [
681 ['_toolset=="target"', {
682 'cflags': [
683 '-march=armv7-a',
684 '-mtune=cortex-a8',
685 '-mfpu=neon',
686 '-mfloat-abi=softfp',
687 ],
688 }],
[email protected]3dda8a962009-08-10 18:58:07689 ],
690 }],
691 ],
692 }],
[email protected]ee28c9f2009-09-04 01:53:01693 ['sysroot!=""', {
[email protected]fd36ce822009-10-28 20:13:57694 'target_conditions': [
695 ['_toolset=="target"', {
696 'cflags': [
697 '--sysroot=<(sysroot)',
698 ],
699 'ldflags': [
700 '--sysroot=<(sysroot)',
701 ],
702 }]]
[email protected]ee28c9f2009-09-04 01:53:01703 }],
[email protected]cc4219a2009-08-14 05:30:52704 ['no_strict_aliasing==1', {
705 'cflags': [
706 '-fno-strict-aliasing',
707 ],
708 }],
[email protected]cbd5fd52009-08-26 00:14:27709 ['linux_breakpad==1', {
710 'cflags': [ '-gstabs' ],
711 'defines': ['USE_LINUX_BREAKPAD'],
712 }],
[email protected]7cd2afd2009-10-27 21:40:26713 ['library=="shared_library"', {
714 # When building with shared libraries, remove the visiblity-hiding
715 # flag.
716 'cflags!': [ '-fvisibility=hidden' ],
[email protected]4907ac42009-11-02 20:32:51717 'conditions': [
718 ['target_arch=="x64"', {
719 # Shared libraries need -fPIC on x86-64
720 'cflags': ['-fPIC']
721 }]
722 ],
[email protected]7cd2afd2009-10-27 21:40:26723 }],
[email protected]01699e22009-11-11 19:24:24724 ['linux_use_tcmalloc==1', {
725 'defines': ['LINUX_USE_TCMALLOC'],
726 }],
[email protected]606116d22009-05-06 22:38:23727 ],
[email protected]9d384032009-03-20 23:13:26728 },
729 }],
[email protected]2f80c312009-02-25 21:26:55730 ['OS=="mac"', {
731 'target_defaults': {
[email protected]24700642009-06-01 16:01:20732 'variables': {
733 # This should be 'mac_real_dsym%', but there seems to be a bug
734 # with % in variables that are intended to be set to different
735 # values in different targets, like this one.
736 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
737 },
[email protected]d92c7c012009-03-19 19:26:42738 'mac_bundle': 0,
[email protected]2f80c312009-02-25 21:26:55739 'xcode_settings': {
740 'ALWAYS_SEARCH_USER_PATHS': 'NO',
[email protected]ab2956372009-08-13 18:11:04741 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99
742 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
743 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
744 # (Equivalent to -fPIC)
745 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
746 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
747 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
[email protected]3224dcd2009-09-16 17:31:25748 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
749 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
[email protected]ab2956372009-08-13 18:11:04750 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', # -fobjc-call-cxx-cdtors
751 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
752 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
753 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
[email protected]2f80c312009-02-25 21:26:55754 'GCC_VERSION': '4.2',
[email protected]ab2956372009-08-13 18:11:04755 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
[email protected]3224dcd2009-09-16 17:31:25756 # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min
757 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
[email protected]ab2956372009-08-13 18:11:04758 'PREBINDING': 'NO', # No -Wl,-prebind
[email protected]2f80c312009-02-25 21:26:55759 'USE_HEADERMAP': 'NO',
760 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
[email protected]b3fb8092009-03-12 19:09:24761 'conditions': [
762 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
[email protected]9543af052009-09-15 22:42:59763 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
764 ],
[email protected]b3fb8092009-03-12 19:09:24765 ],
[email protected]2f80c312009-02-25 21:26:55766 },
767 'target_conditions': [
[email protected]2f80c312009-02-25 21:26:55768 ['_type!="static_library"', {
[email protected]5d7dc972009-04-16 15:30:46769 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
770 }],
771 ['_mac_bundle', {
772 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
[email protected]87fde4a2009-02-28 00:50:08773 }],
[email protected]e14a9f92009-08-05 19:26:07774 ['_type=="executable" or _type=="shared_library"', {
[email protected]24700642009-06-01 16:01:20775 'target_conditions': [
776 ['mac_real_dsym == 1', {
777 # To get a real .dSYM bundle produced by dsymutil, set the
778 # debug information format to dwarf-with-dsym. Since
779 # strip_from_xcode will not be used, set Xcode to do the
780 # stripping as well.
781 'configurations': {
782 'Release': {
783 'xcode_settings': {
784 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
785 'DEPLOYMENT_POSTPROCESSING': 'YES',
786 'STRIP_INSTALLED_PRODUCT': 'YES',
[email protected]e14a9f92009-08-05 19:26:07787 'target_conditions': [
788 ['_type=="shared_library"', {
789 # The Xcode default is to strip debugging symbols
790 # only (-S). Local symbols should be stripped as
791 # well, which will be handled by -x. Xcode will
792 # continue to insert -S when stripping even when
793 # additional flags are added with STRIPFLAGS.
794 'STRIPFLAGS': '-x',
795 }], # _type=="shared_library"
796 ], # target_conditions
797 }, # xcode_settings
798 }, # configuration "Release"
799 }, # configurations
[email protected]24700642009-06-01 16:01:20800 }, { # mac_real_dsym != 1
801 # To get a fast fake .dSYM bundle, use a post-build step to
802 # produce the .dSYM and strip the executable. strip_from_xcode
803 # only operates in the Release configuration.
804 'postbuilds': [
805 {
806 'variables': {
807 # Define strip_from_xcode in a variable ending in _path
808 # so that gyp understands it's a path and performs proper
809 # relativization during dict merging.
810 'strip_from_xcode_path': 'mac/strip_from_xcode',
811 },
812 'postbuild_name': 'Strip If Needed',
813 'action': ['<(strip_from_xcode_path)'],
814 },
[email protected]e14a9f92009-08-05 19:26:07815 ], # postbuilds
816 }], # mac_real_dsym
817 ], # target_conditions
818 }], # _type=="executable" or _type=="shared_library"
819 ], # target_conditions
820 }, # target_defaults
821 }], # OS=="mac"
[email protected]2f80c312009-02-25 21:26:55822 ['OS=="win"', {
823 'target_defaults': {
824 'defines': [
825 '_WIN32_WINNT=0x0600',
826 'WINVER=0x0600',
827 'WIN32',
828 '_WINDOWS',
829 '_HAS_EXCEPTIONS=0',
830 'NOMINMAX',
831 '_CRT_RAND_S',
832 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
833 'WIN32_LEAN_AND_MEAN',
834 '_SECURE_ATL',
[email protected]adfb98c2009-06-23 20:08:45835 '_HAS_TR1=0',
[email protected]2f80c312009-02-25 21:26:55836 ],
[email protected]5b5ca7cb2009-07-20 23:00:20837 'msvs_system_include_dirs': [
[email protected]2f80c312009-02-25 21:26:55838 '<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Include',
839 '$(VSInstallDir)/VC/atlmfc/include',
840 ],
[email protected]a8d99cef2009-08-26 20:47:49841 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
[email protected]6840561772009-05-12 16:37:55842 'msvs_disabled_warnings': [4396, 4503, 4819],
[email protected]2f80c312009-02-25 21:26:55843 'msvs_settings': {
844 'VCCLCompilerTool': {
845 'MinimalRebuild': 'false',
846 'ExceptionHandling': '0',
847 'BufferSecurityCheck': 'true',
848 'EnableFunctionLevelLinking': 'true',
849 'RuntimeTypeInfo': 'false',
850 'WarningLevel': '3',
851 'WarnAsError': 'true',
852 'DebugInformationFormat': '3',
[email protected]3fef6e62009-07-31 19:58:58853 'conditions': [
[email protected]912c55c2009-07-31 23:33:55854 [ 'msvs_multi_core_compile', {
855 'AdditionalOptions': '/MP',
856 }],
[email protected]3fef6e62009-07-31 19:58:58857 ],
[email protected]2f80c312009-02-25 21:26:55858 },
859 'VCLibrarianTool': {
860 'AdditionalOptions': '/ignore:4221',
[email protected]2f80c312009-02-25 21:26:55861 'AdditionalLibraryDirectories':
[email protected]07506b502009-06-29 00:30:51862 ['<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib'],
[email protected]2f80c312009-02-25 21:26:55863 },
864 'VCLinkerTool': {
[email protected]2f80c312009-02-25 21:26:55865 'AdditionalDependencies': [
866 'wininet.lib',
867 'version.lib',
868 'msimg32.lib',
869 'ws2_32.lib',
870 'usp10.lib',
871 'psapi.lib',
[email protected]96fd0032009-04-24 00:13:08872 'dbghelp.lib',
[email protected]2f80c312009-02-25 21:26:55873 ],
874 'AdditionalLibraryDirectories':
[email protected]07506b502009-06-29 00:30:51875 ['<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib'],
[email protected]2f80c312009-02-25 21:26:55876 'GenerateDebugInformation': 'true',
877 'MapFileName': '$(OutDir)\\$(TargetName).map',
878 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
879 'TargetMachine': '1',
880 'FixedBaseAddress': '1',
[email protected]825ff8d2009-05-22 01:40:48881 # SubSystem values:
882 # 0 == not set
883 # 1 == /SUBSYSTEM:CONSOLE
884 # 2 == /SUBSYSTEM:WINDOWS
885 # Most of the executables we'll ever create are tests
886 # and utilities with console output.
887 'SubSystem': '1',
[email protected]2f80c312009-02-25 21:26:55888 },
889 'VCMIDLTool': {
890 'GenerateStublessProxies': 'true',
891 'TypeLibraryName': '$(InputName).tlb',
892 'OutputDirectory': '$(IntDir)',
893 'HeaderFileName': '$(InputName).h',
894 'DLLDataFileName': 'dlldata.c',
895 'InterfaceIdentifierFileName': '$(InputName)_i.c',
896 'ProxyFileName': '$(InputName)_p.c',
897 },
898 'VCResourceCompilerTool': {
899 'Culture' : '1033',
[email protected]245b3cd592009-03-31 01:12:14900 'AdditionalIncludeDirectories': ['<(DEPTH)'],
[email protected]2f80c312009-02-25 21:26:55901 },
902 },
903 },
904 }],
905 ['chromium_code==0', {
906 # This section must follow the other conditon sections above because
907 # external_code.gypi expects to be merged into those settings.
908 'includes': [
909 'external_code.gypi',
910 ],
[email protected]dce5df52009-06-29 17:58:25911 }, {
912 'target_defaults': {
913 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the
914 # C99 macros on Mac and Linux.
915 'defines': [
916 '__STDC_FORMAT_MACROS',
917 ],
918 },
[email protected]2f80c312009-02-25 21:26:55919 }],
[email protected]d8c7cbcc2009-10-02 19:00:31920 ['disable_nacl==1', {
921 'target_defaults': {
922 'defines': [
923 'DISABLE_NACL',
924 ],
925 },
926 }],
[email protected]48c7af72009-07-03 22:00:19927 ['msvs_use_common_linker_extras', {
928 'target_defaults': {
929 'msvs_settings': {
930 'VCLinkerTool': {
931 'AdditionalOptions':
932 '/safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat',
933 'DelayLoadDLLs': [
934 'dbghelp.dll',
935 'dwmapi.dll',
936 'uxtheme.dll',
937 ],
938 },
939 },
940 },
941 }],
[email protected]2f80c312009-02-25 21:26:55942 ],
[email protected]c13fcbd2009-03-27 04:27:01943 'scons_settings': {
944 'sconsbuild_dir': '<(DEPTH)/sconsbuild',
[email protected]a8b56d92009-08-10 04:09:07945 'tools': ['ar', 'as', 'gcc', 'g++', 'gnulink', 'chromium_builders'],
[email protected]c13fcbd2009-03-27 04:27:01946 },
[email protected]2f80c312009-02-25 21:26:55947 'xcode_settings': {
[email protected]0c8ab452009-11-06 21:57:50948 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
949 # This block adds *project-wide* configuration settings to each project
950 # file. It's almost always wrong to put things here. Specify your
951 # custom xcode_settings in target_defaults to add them to targets instead.
952
953 # In an Xcode Project Info window, the "Base SDK for All Configurations"
954 # setting sets the SDK on a project-wide basis. In order to get the
955 # configured SDK to show properly in the Xcode UI, SDKROOT must be set
956 # here at the project level.
957 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
958
[email protected]2f80c312009-02-25 21:26:55959 # The Xcode generator will look for an xcode_settings section at the root
960 # of each dict and use it to apply settings on a file-wide basis. Most
961 # settings should not be here, they should be in target-specific
962 # xcode_settings sections, or better yet, should use non-Xcode-specific
963 # settings in target dicts. SYMROOT is a special case, because many other
964 # Xcode variables depend on it, including variables such as
965 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
966 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
967 # files to appear (when present) in the UI as actual files and not red
968 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
969 # and therefore SYMROOT, needs to be set at the project level.
[email protected]bfa24b962009-03-02 00:16:16970 'SYMROOT': '<(DEPTH)/xcodebuild',
[email protected]2f80c312009-02-25 21:26:55971 },
[email protected]ee28c9f2009-09-04 01:53:01972}
[email protected]f5c990c2009-10-06 03:02:38973
974# Local Variables:
975# tab-width:2
976# indent-tabs-mode:nil
977# End:
978# vim: set expandtab tabstop=2 shiftwidth=2: