Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: build/common.gypi

Issue 115664: Explicitly enable /INCREMENTAL linking for gyp-generated Debug builds,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 # .gyp files should set chromium_code to 1 if they build Chromium-specific 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific
8 # code, as opposed to external code. This variable is used to control 8 # code, as opposed to external code. This variable is used to control
9 # such things as the set of warnings to enable, and whether warnings are 9 # such things as the set of warnings to enable, and whether warnings are
10 # treated as errors. 10 # treated as errors.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 'cflags': [ '-ftest-coverage', 90 'cflags': [ '-ftest-coverage',
91 '-fprofile-arcs' ], 91 '-fprofile-arcs' ],
92 'link_settings': { 'libraries': [ '-lgcov' ] }, 92 'link_settings': { 'libraries': [ '-lgcov' ] },
93 }], 93 }],
94 ]}, 94 ]},
95 # TODO(jrg): options for code coverage on Windows 95 # TODO(jrg): options for code coverage on Windows
96 ], 96 ],
97 ], 97 ],
98 'default_configuration': 'Debug', 98 'default_configuration': 'Debug',
99 'configurations': { 99 'configurations': {
100 # VCLinkerTool LinkIncremental values below:
101 # 0 == default
102 # 1 == /INCREMENTAL:NO
103 # 2 == /INCREMENTAL
104 # Debug links incremental, Release does not.
100 'Debug': { 105 'Debug': {
101 'conditions': [ 106 'conditions': [
102 [ 'OS=="mac"', { 107 [ 'OS=="mac"', {
103 'xcode_settings': { 108 'xcode_settings': {
104 'COPY_PHASE_STRIP': 'NO', 109 'COPY_PHASE_STRIP': 'NO',
105 'GCC_OPTIMIZATION_LEVEL': '0', 110 'GCC_OPTIMIZATION_LEVEL': '0',
106 } 111 }
107 }], 112 }],
108 [ 'OS=="win"', { 113 [ 'OS=="win"', {
109 'configuration_platform': 'Win32', 114 'configuration_platform': 'Win32',
110 'msvs_configuration_attributes': { 115 'msvs_configuration_attributes': {
111 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', 116 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
112 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', 117 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
113 'CharacterSet': '1', 118 'CharacterSet': '1',
114 }, 119 },
115 'msvs_settings': { 120 'msvs_settings': {
116 'VCCLCompilerTool': { 121 'VCCLCompilerTool': {
117 'Optimization': '0', 122 'Optimization': '0',
118 'PreprocessorDefinitions': ['_DEBUG'], 123 'PreprocessorDefinitions': ['_DEBUG'],
119 'BasicRuntimeChecks': '3', 124 'BasicRuntimeChecks': '3',
120 'RuntimeLibrary': '1', 125 'RuntimeLibrary': '1',
121 }, 126 },
122 'VCLinkerTool': { 127 'VCLinkerTool': {
123 'LinkIncremental': '1', 128 'LinkIncremental': '2',
124 }, 129 },
125 'VCResourceCompilerTool': { 130 'VCResourceCompilerTool': {
126 'PreprocessorDefinitions': ['_DEBUG'], 131 'PreprocessorDefinitions': ['_DEBUG'],
127 }, 132 },
128 }, 133 },
129 }], 134 }],
130 ], 135 ],
131 }, 136 },
132 'Release': { 137 'Release': {
133 'defines': [ 138 'defines': [
134 'NDEBUG', 139 'NDEBUG',
135 ], 140 ],
136 'conditions': [ 141 'conditions': [
137 [ 'OS=="mac"', { 142 [ 'OS=="mac"', {
138 'xcode_settings': { 143 'xcode_settings': {
139 'DEAD_CODE_STRIPPING': 'YES', 144 'DEAD_CODE_STRIPPING': 'YES',
140 } 145 }
141 }], 146 }],
142 [ 'OS=="win" and msvs_use_common_release', { 147 [ 'OS=="win" and msvs_use_common_release', {
143 'configuration_platform': 'Win32', 148 'configuration_platform': 'Win32',
144 'msvs_props': ['release.vsprops'], 149 'msvs_props': ['release.vsprops'],
145 }], 150 }],
151 [ 'OS=="win"', {
152 'msvs_settings': {
153 'VCLinkerTool': {
154 'LinkIncremental': '1',
155 },
156 },
157 }],
146 ], 158 ],
147 }, 159 },
148 }, 160 },
149 }, 161 },
150 'conditions': [ 162 'conditions': [
151 ['OS=="linux"', { 163 ['OS=="linux"', {
152 'target_defaults': { 164 'target_defaults': {
153 # Enable -Werror by default, but put it in a variable so it can 165 # Enable -Werror by default, but put it in a variable so it can
154 # be disabled in ~/.gyp/include.gypi on the valgrind builders. 166 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
155 'variables': { 167 'variables': {
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 'dbghelp.lib', 447 'dbghelp.lib',
436 ], 448 ],
437 'AdditionalLibraryDirectories': 449 'AdditionalLibraryDirectories':
438 '<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib', 450 '<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib',
439 'DelayLoadDLLs': 'dbghelp.dll,dwmapi.dll,uxtheme.dll', 451 'DelayLoadDLLs': 'dbghelp.dll,dwmapi.dll,uxtheme.dll',
440 'GenerateDebugInformation': 'true', 452 'GenerateDebugInformation': 'true',
441 'MapFileName': '$(OutDir)\\$(TargetName).map', 453 'MapFileName': '$(OutDir)\\$(TargetName).map',
442 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib', 454 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
443 'TargetMachine': '1', 455 'TargetMachine': '1',
444 'FixedBaseAddress': '1', 456 'FixedBaseAddress': '1',
457 # SubSystem values:
458 # 0 == not set
459 # 1 == /SUBSYSTEM:CONSOLE
460 # 2 == /SUBSYSTEM:WINDOWS
461 # Most of the executables we'll ever create are tests
462 # and utilities with console output.
463 'SubSystem': '1',
445 }, 464 },
446 'VCMIDLTool': { 465 'VCMIDLTool': {
447 'GenerateStublessProxies': 'true', 466 'GenerateStublessProxies': 'true',
448 'TypeLibraryName': '$(InputName).tlb', 467 'TypeLibraryName': '$(InputName).tlb',
449 'OutputDirectory': '$(IntDir)', 468 'OutputDirectory': '$(IntDir)',
450 'HeaderFileName': '$(InputName).h', 469 'HeaderFileName': '$(InputName).h',
451 'DLLDataFileName': 'dlldata.c', 470 'DLLDataFileName': 'dlldata.c',
452 'InterfaceIdentifierFileName': '$(InputName)_i.c', 471 'InterfaceIdentifierFileName': '$(InputName)_i.c',
453 'ProxyFileName': '$(InputName)_p.c', 472 'ProxyFileName': '$(InputName)_p.c',
454 }, 473 },
(...skipping 23 matching lines...) Expand all
478 # settings in target dicts. SYMROOT is a special case, because many other 497 # settings in target dicts. SYMROOT is a special case, because many other
479 # Xcode variables depend on it, including variables such as 498 # Xcode variables depend on it, including variables such as
480 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 499 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
481 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 500 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
482 # files to appear (when present) in the UI as actual files and not red 501 # files to appear (when present) in the UI as actual files and not red
483 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 502 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
484 # and therefore SYMROOT, needs to be set at the project level. 503 # and therefore SYMROOT, needs to be set at the project level.
485 'SYMROOT': '<(DEPTH)/xcodebuild', 504 'SYMROOT': '<(DEPTH)/xcodebuild',
486 }, 505 },
487 } 506 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698