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

Side by Side Diff: build/common.gypi

Issue 404853002: Disable exceptions on Windows also in the shared_library build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments as suggested by thakis Created 6 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 5122 matching lines...) Expand 10 before | Expand all | Expand 10 after
5133 '_WIN32_WINNT=0x0602', 5133 '_WIN32_WINNT=0x0602',
5134 'WINVER=0x0602', 5134 'WINVER=0x0602',
5135 'WIN32', 5135 'WIN32',
5136 '_WINDOWS', 5136 '_WINDOWS',
5137 'NOMINMAX', 5137 'NOMINMAX',
5138 'PSAPI_VERSION=1', 5138 'PSAPI_VERSION=1',
5139 '_CRT_RAND_S', 5139 '_CRT_RAND_S',
5140 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', 5140 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
5141 'WIN32_LEAN_AND_MEAN', 5141 'WIN32_LEAN_AND_MEAN',
5142 '_ATL_NO_OPENGL', 5142 '_ATL_NO_OPENGL',
5143 # _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings.
5144 '_HAS_EXCEPTIONS=0',
5143 ], 5145 ],
5144 'conditions': [ 5146 'conditions': [
5145 ['buildtype=="Official"', { 5147 ['buildtype=="Official"', {
5146 # In official builds, targets can self-select an optimization 5148 # In official builds, targets can self-select an optimization
5147 # level by defining a variable named 'optimize', and setting it 5149 # level by defining a variable named 'optimize', and setting it
5148 # to one of 5150 # to one of
5149 # - "size", optimizes for minimal code size - the default. 5151 # - "size", optimizes for minimal code size - the default.
5150 # - "speed", optimizes for speed over code size. 5152 # - "speed", optimizes for speed over code size.
5151 # - "max", whole program optimization and link-time code 5153 # - "max", whole program optimization and link-time code
5152 # generation. This is very expensive and should be used 5154 # generation. This is very expensive and should be used
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
5200 'FavorSizeOrSpeed': '1', 5202 'FavorSizeOrSpeed': '1',
5201 # This implies link time code generation. 5203 # This implies link time code generation.
5202 'WholeProgramOptimization': 'true', 5204 'WholeProgramOptimization': 'true',
5203 }, 5205 },
5204 }, 5206 },
5205 }, 5207 },
5206 ], 5208 ],
5207 ], 5209 ],
5208 }, 5210 },
5209 ], 5211 ],
5210 ['component=="static_library"', {
5211 'defines': [
5212 '_HAS_EXCEPTIONS=0',
5213 ],
5214 }],
5215 ['secure_atl', { 5212 ['secure_atl', {
5216 'defines': [ 5213 'defines': [
5217 '_SECURE_ATL', 5214 '_SECURE_ATL',
5218 ], 5215 ],
5219 }], 5216 }],
5220 ['msvs_express', { 5217 ['msvs_express', {
5221 'configurations': { 5218 'configurations': {
5222 'x86_Base': { 5219 'x86_Base': {
5223 'msvs_settings': { 5220 'msvs_settings': {
5224 'VCLinkerTool': { 5221 'VCLinkerTool': {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
5287 'msvs_settings': { 5284 'msvs_settings': {
5288 'VCCLCompilerTool': { 5285 'VCCLCompilerTool': {
5289 'AdditionalOptions': ['/MP'], 5286 'AdditionalOptions': ['/MP'],
5290 'MinimalRebuild': 'false', 5287 'MinimalRebuild': 'false',
5291 'BufferSecurityCheck': 'true', 5288 'BufferSecurityCheck': 'true',
5292 'EnableFunctionLevelLinking': 'true', 5289 'EnableFunctionLevelLinking': 'true',
5293 'RuntimeTypeInfo': 'false', 5290 'RuntimeTypeInfo': 'false',
5294 'WarningLevel': '4', 5291 'WarningLevel': '4',
5295 'WarnAsError': 'true', 5292 'WarnAsError': 'true',
5296 'DebugInformationFormat': '3', 5293 'DebugInformationFormat': '3',
5297 'conditions': [ 5294 # ExceptionHandling must match _HAS_EXCEPTIONS above.
5298 ['component=="shared_library"', { 5295 'ExceptionHandling': '0',
5299 'ExceptionHandling': '1', # /EHsc
5300 }, {
5301 'ExceptionHandling': '0',
5302 }],
5303 ],
5304 }, 5296 },
5305 'VCLibrarianTool': { 5297 'VCLibrarianTool': {
5306 'AdditionalOptions': ['/ignore:4221'], 5298 'AdditionalOptions': ['/ignore:4221'],
5307 'AdditionalLibraryDirectories': [ 5299 'AdditionalLibraryDirectories': [
5308 '<(windows_sdk_path)/Lib/win8/um/x86', 5300 '<(windows_sdk_path)/Lib/win8/um/x86',
5309 ], 5301 ],
5310 }, 5302 },
5311 'VCLinkerTool': { 5303 'VCLinkerTool': {
5312 'AdditionalDependencies': [ 5304 'AdditionalDependencies': [
5313 'wininet.lib', 5305 'wininet.lib',
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
5654 # settings in target dicts. SYMROOT is a special case, because many other 5646 # settings in target dicts. SYMROOT is a special case, because many other
5655 # Xcode variables depend on it, including variables such as 5647 # Xcode variables depend on it, including variables such as
5656 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5648 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5657 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5649 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5658 # files to appear (when present) in the UI as actual files and not red 5650 # files to appear (when present) in the UI as actual files and not red
5659 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5651 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5660 # and therefore SYMROOT, needs to be set at the project level. 5652 # and therefore SYMROOT, needs to be set at the project level.
5661 'SYMROOT': '<(DEPTH)/xcodebuild', 5653 'SYMROOT': '<(DEPTH)/xcodebuild',
5662 }, 5654 },
5663 } 5655 }
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