Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: defaults.gypi

Issue 10945039: Switch to gyp (Closed)
Patch Set: Final version Created June 21, 2013, 2:16 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « createsolution.bat ('k') | installer/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: defaults.gypi
===================================================================
new file mode 100644
--- /dev/null
+++ b/defaults.gypi
@@ -0,0 +1,78 @@
+{
+ 'target_defaults': {
+ 'configurations': {
+ 'Debug': {
+ 'defines': [ '_DEBUG' ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'Optimization': '0',
+
+ 'conditions': [
+ ['component=="shared_library"', {
+ 'RuntimeLibrary': '3', # /MDd
+ }, {
+ 'RuntimeLibrary': '1', # /MTd
+ }]
+ ],
+ },
+ },
+ },
+ 'Release': {
+ 'defines': [ 'NDEBUG' ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'InlineFunctionExpansion': 2, # AnySuitable
+ 'EnableIntrinsicFunctions': 'true',
+ 'EnableFunctionLevelLinking': 'true',
+ 'FavorSizeOrSpeed': 1, # Speed
+ 'OmitFramePointers': 'true',
+ 'Optimization': 2, # MaxSpeed
+ 'RuntimeTypeInfo': 'false',
+ 'StringPooling': 'true',
+ 'WholeProgramOptimization': 'true',
+
+ 'conditions': [
+ ['component=="shared_library"', {
+ 'RuntimeLibrary': '2', # /MD
+ }, {
+ 'RuntimeLibrary': '0', # /MT
+ }]
+ ],
+ },
+ 'VCLinkerTool': {
+ 'EnableCOMDATFolding': 2, # true
+ 'OptimizeReferences': 2, # true
+ 'LinkTimeCodeGeneration': 1,# UseLinkTimeCodeGeneration
+ },
+ },
+ },
+ },
+ 'defines': ['_WINDOWS'],
+ 'msvs_configuration_attributes': {
+ 'CharacterSet': '1', # Unicode
+ },
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarningLevel': 3, # Level3
+ },
+ 'VCLinkerTool': {
+ 'SubSystem': '2', # Windows
+ 'GenerateDebugInformation': 'true',
+ },
+ 'VCMIDLTool': {
+ 'TypeLibraryName': '$(TargetName).tlb',
+ },
+ },
+ 'conditions': [
+ [
+ 'target_arch=="x64"', {
+ 'msvs_configuration_platform': 'x64',
+ 'defines': ['WIN64'],
+ }, {
+ 'msvs_configuration_platform': 'Win32',
+ 'defines': ['WIN32'],
+ }
+ ],
+ ],
+ },
+}
« no previous file with comments | « createsolution.bat ('k') | installer/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld