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

Side by Side Diff: build/common.gypi

Issue 178026: Allow overriding debug optimization level on mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | no next file » | 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 'msvs_large_module_debug_link_mode%': '1', # No 167 'msvs_large_module_debug_link_mode%': '1', # No
168 },{ 168 },{
169 'msvs_large_module_debug_link_mode%': '2', # Yes 169 'msvs_large_module_debug_link_mode%': '2', # Yes
170 }], 170 }],
171 ], 171 ],
172 }], 172 }],
173 ], 173 ],
174 }, 174 },
175 'target_defaults': { 175 'target_defaults': {
176 'variables': { 176 'variables': {
177 'mac_release_optimization%': '3' # Use -O3 unless overridden 177 'mac_release_optimization%': '3', # Use -O3 unless overridden
178 'mac_debug_optimization%': '0' # Use -O0 unless overridden
178 }, 179 },
179 'conditions': [ 180 'conditions': [
180 ['branding=="Chrome"', { 181 ['branding=="Chrome"', {
181 'defines': ['GOOGLE_CHROME_BUILD'], 182 'defines': ['GOOGLE_CHROME_BUILD'],
182 }, { # else: branding!="Chrome" 183 }, { # else: branding!="Chrome"
183 'defines': ['CHROMIUM_BUILD'], 184 'defines': ['CHROMIUM_BUILD'],
184 }], 185 }],
185 ['toolkit_views==1', { 186 ['toolkit_views==1', {
186 'defines': ['TOOLKIT_VIEWS=1'], 187 'defines': ['TOOLKIT_VIEWS=1'],
187 }], 188 }],
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 'default_configuration': 'Debug', 231 'default_configuration': 'Debug',
231 'configurations': { 232 'configurations': {
232 # VCLinkerTool LinkIncremental values below: 233 # VCLinkerTool LinkIncremental values below:
233 # 0 == default 234 # 0 == default
234 # 1 == /INCREMENTAL:NO 235 # 1 == /INCREMENTAL:NO
235 # 2 == /INCREMENTAL 236 # 2 == /INCREMENTAL
236 # Debug links incremental, Release does not. 237 # Debug links incremental, Release does not.
237 'Debug': { 238 'Debug': {
238 'xcode_settings': { 239 'xcode_settings': {
239 'COPY_PHASE_STRIP': 'NO', 240 'COPY_PHASE_STRIP': 'NO',
240 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 241 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)',
241 }, 242 },
242 'conditions': [ 243 'conditions': [
243 [ 'OS=="win"', { 244 [ 'OS=="win"', {
244 'configuration_platform': 'Win32', 245 'configuration_platform': 'Win32',
245 'msvs_configuration_attributes': { 246 'msvs_configuration_attributes': {
246 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', 247 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
247 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', 248 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
248 'CharacterSet': '1', 249 'CharacterSet': '1',
249 }, 250 },
250 'msvs_settings': { 251 'msvs_settings': {
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 # settings in target dicts. SYMROOT is a special case, because many other 771 # settings in target dicts. SYMROOT is a special case, because many other
771 # Xcode variables depend on it, including variables such as 772 # Xcode variables depend on it, including variables such as
772 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 773 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
773 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 774 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
774 # files to appear (when present) in the UI as actual files and not red 775 # files to appear (when present) in the UI as actual files and not red
775 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 776 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
776 # and therefore SYMROOT, needs to be set at the project level. 777 # and therefore SYMROOT, needs to be set at the project level.
777 'SYMROOT': '<(DEPTH)/xcodebuild', 778 'SYMROOT': '<(DEPTH)/xcodebuild',
778 }, 779 },
779 } 780 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698