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

Side by Side Diff: tools/gyp/configurations_msvs.gypi

Issue 414303004: Add build configuration variable 'c_frame_pointers' to control whether or not frame pointers are in… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | « tools/gyp/configurations_make.gypi ('k') | tools/gyp/configurations_xcode.gypi » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'dart_debug_optimization_level%': '2', 7 'dart_debug_optimization_level%': '2',
8 }, 8 },
9 'target_defaults': { 9 'target_defaults': {
10 'configurations': { 10 'configurations': {
(...skipping 21 matching lines...) Expand all
32 }, 32 },
33 'Dart_Win_Debug': { 33 'Dart_Win_Debug': {
34 'abstract': 1, 34 'abstract': 1,
35 'msvs_settings': { 35 'msvs_settings': {
36 'VCCLCompilerTool': { 36 'VCCLCompilerTool': {
37 'Optimization': '<(dart_debug_optimization_level)', 37 'Optimization': '<(dart_debug_optimization_level)',
38 'BasicRuntimeChecks': '0', # disable /RTC1 when compiling /O2 38 'BasicRuntimeChecks': '0', # disable /RTC1 when compiling /O2
39 'DebugInformationFormat': '3', 39 'DebugInformationFormat': '3',
40 'ExceptionHandling': '0', 40 'ExceptionHandling': '0',
41 'RuntimeTypeInfo': 'false', 41 'RuntimeTypeInfo': 'false',
42 # Uncomment the following line and pass --profile-vm to enable
43 # profiling of C++ code within Observatory.
44 # 'OmitFramePointers': 'false',
45 'RuntimeLibrary': '1', # /MTd - Multi-threaded, static (debug) 42 'RuntimeLibrary': '1', # /MTd - Multi-threaded, static (debug)
46 }, 43 },
47 'VCLinkerTool': { 44 'VCLinkerTool': {
48 'LinkIncremental': '2', 45 'LinkIncremental': '2',
49 'GenerateDebugInformation': 'true', 46 'GenerateDebugInformation': 'true',
50 'StackReserveSize': '2097152', 47 'StackReserveSize': '2097152',
51 'AdditionalDependencies': [ 48 'AdditionalDependencies': [
52 'advapi32.lib', 49 'advapi32.lib',
53 'shell32.lib', 50 'shell32.lib',
54 'dbghelp.lib', 51 'dbghelp.lib',
55 ], 52 ],
56 }, 53 },
57 }, 54 },
55 'conditions': [
56 ['c_frame_pointers==1', {
57 'msvs_settings': {
58 'VCCLCompilerTool': {
59 'OmitFramePointers': 'false',
60 },
61 },
62 'defines': [
63 'PROFILE_NATIVE_CODE'
64 ],
65 }],
66 ],
58 # C4351 warns MSVC follows the C++ specification regarding array 67 # C4351 warns MSVC follows the C++ specification regarding array
59 # initialization in member initializers. Code that expects the 68 # initialization in member initializers. Code that expects the
60 # specified behavior should silence this warning. 69 # specified behavior should silence this warning.
61 'msvs_disabled_warnings': [4351], 70 'msvs_disabled_warnings': [4351],
62 }, 71 },
63 72
64 'Dart_Win_Release': { 73 'Dart_Win_Release': {
65 'abstract': 1, 74 'abstract': 1,
66 'msvs_settings': { 75 'msvs_settings': {
67 'VCCLCompilerTool': { 76 'VCCLCompilerTool': {
68 'Optimization': '2', 77 'Optimization': '2',
69 'InlineFunctionExpansion': '2', 78 'InlineFunctionExpansion': '2',
70 'EnableIntrinsicFunctions': 'true', 79 'EnableIntrinsicFunctions': 'true',
71 'FavorSizeOrSpeed': '0', 80 'FavorSizeOrSpeed': '0',
72 'ExceptionHandling': '0', 81 'ExceptionHandling': '0',
73 'RuntimeTypeInfo': 'false', 82 'RuntimeTypeInfo': 'false',
74 # Uncomment the following line and pass --profile-vm to enable
75 # profiling of C++ code within Observatory.
76 # 'OmitFramePointers': 'false',
77 'StringPooling': 'true', 83 'StringPooling': 'true',
78 'RuntimeLibrary': '0', # /MT - Multi-threaded, static 84 'RuntimeLibrary': '0', # /MT - Multi-threaded, static
79 }, 85 },
80 'VCLinkerTool': { 86 'VCLinkerTool': {
81 'LinkIncremental': '1', 87 'LinkIncremental': '1',
82 'GenerateDebugInformation': 'true', 88 'GenerateDebugInformation': 'true',
83 'OptimizeReferences': '2', 89 'OptimizeReferences': '2',
84 'EnableCOMDATFolding': '2', 90 'EnableCOMDATFolding': '2',
85 'StackReserveSize': '2097152', 91 'StackReserveSize': '2097152',
86 'AdditionalDependencies': [ 92 'AdditionalDependencies': [
87 'advapi32.lib', 93 'advapi32.lib',
88 'shell32.lib', 94 'shell32.lib',
89 'dbghelp.lib', 95 'dbghelp.lib',
90 ], 96 ],
91 }, 97 },
92 }, 98 },
99 'conditions': [
100 ['c_frame_pointers==1', {
101 'msvs_settings': {
102 'VCCLCompilerTool': {
103 'OmitFramePointers': 'false',
104 },
105 },
106 'defines': [
107 'PROFILE_NATIVE_CODE'
108 ],
109 }],
110 ],
93 # C4351 warns MSVC follows the C++ specification regarding array 111 # C4351 warns MSVC follows the C++ specification regarding array
94 # initialization in member initializers. Code that expects the 112 # initialization in member initializers. Code that expects the
95 # specified behavior should silence this warning. 113 # specified behavior should silence this warning.
96 'msvs_disabled_warnings': [4351], 114 'msvs_disabled_warnings': [4351],
97 }, 115 },
98 }, 116 },
99 }, 117 },
100 } 118 }
OLDNEW
« no previous file with comments | « tools/gyp/configurations_make.gypi ('k') | tools/gyp/configurations_xcode.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698