| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'target_defaults': { | |
| 7 'default_configuration': 'Debug', | |
| 8 'configurations': { | |
| 9 # | |
| 10 # Abstract base configurations to cover common | |
| 11 # attributes. | |
| 12 # | |
| 13 # Currently only implemented for Windows. | |
| 14 # | |
| 15 'Common_Base': { | |
| 16 'abstract': 1, | |
| 17 'msvs_configuration_attributes': { | |
| 18 'OutputDirectory': | |
| 19 '<(DEPTH)\\native_client\\build\\$(ConfigurationName)', | |
| 20 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', | |
| 21 'CharacterSet': '1', | |
| 22 }, | |
| 23 }, | |
| 24 'x86_Base': { | |
| 25 'abstract': 1, | |
| 26 'configuration_platform': 'Win32', | |
| 27 'msvs_settings': { | |
| 28 'VCLinkerTool': { | |
| 29 'TargetMachine': '1', # x86 - 32 | |
| 30 }, | |
| 31 }, | |
| 32 }, | |
| 33 'x64_Base': { | |
| 34 'abstract': 1, | |
| 35 'msvs_configuration_platform': 'x64', | |
| 36 'msvs_settings': { | |
| 37 'VCLinkerTool': { | |
| 38 'TargetMachine': '17', # x86 - 64 | |
| 39 'AdditionalLibraryDirectories!': | |
| 40 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'], | |
| 41 'AdditionalLibraryDirectories': | |
| 42 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'], | |
| 43 }, | |
| 44 'VCLibrarianTool': { | |
| 45 'AdditionalLibraryDirectories!': | |
| 46 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'], | |
| 47 'AdditionalLibraryDirectories': | |
| 48 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'], | |
| 49 }, | |
| 50 }, | |
| 51 }, | |
| 52 'Debug_Base': { | |
| 53 'abstract': 1, | |
| 54 'msvs_settings': { | |
| 55 'VCCLCompilerTool': { | |
| 56 'Optimization': '0', | |
| 57 'PreprocessorDefinitions': ['_DEBUG'], | |
| 58 'BasicRuntimeChecks': '3', | |
| 59 | |
| 60 'conditions': [ | |
| 61 ['component=="shared_library"', { | |
| 62 'RuntimeLibrary': '3', # 3 = /MDd (debug DLL) | |
| 63 }, { | |
| 64 'RuntimeLibrary': '1', # 1 = /MTd (debug static) | |
| 65 }], | |
| 66 ], | |
| 67 }, | |
| 68 # VCLinkerTool LinkIncremental values below: | |
| 69 # 0 == default | |
| 70 # 1 == /INCREMENTAL:NO | |
| 71 # 2 == /INCREMENTAL | |
| 72 # Debug links incremental, Release does not. | |
| 73 'VCLinkerTool': { | |
| 74 'LinkIncremental': '<(msvs_debug_link_incremental)', | |
| 75 }, | |
| 76 'VCResourceCompilerTool': { | |
| 77 'PreprocessorDefinitions': ['_DEBUG'], | |
| 78 }, | |
| 79 }, | |
| 80 }, | |
| 81 'Release_Base': { | |
| 82 'abstract': 1, | |
| 83 'msvs_settings': { | |
| 84 'VCCLCompilerTool': { | |
| 85 'PreprocessorDefinitions': ['NDEBUG'], | |
| 86 'Optimization': '2', | |
| 87 'StringPooling': 'true', | |
| 88 | |
| 89 'conditions': [ | |
| 90 ['component=="shared_library"', { | |
| 91 'RuntimeLibrary': '2', # 2 = /MD (nondebug DLL) | |
| 92 }, { | |
| 93 'RuntimeLibrary': '0', # 0 = /MT (nondebug static) | |
| 94 }], | |
| 95 ], | |
| 96 }, | |
| 97 'VCLinkerTool': { | |
| 98 'LinkIncremental': '1', | |
| 99 'OptimizeReferences': '2', | |
| 100 'EnableCOMDATFolding': '2', | |
| 101 'OptimizeForWindows98': '1', | |
| 102 }, | |
| 103 'VCResourceCompilerTool': { | |
| 104 'PreprocessorDefinitions': ['NDEBUG'], | |
| 105 }, | |
| 106 }, | |
| 107 }, | |
| 108 # | |
| 109 # Concrete configurations | |
| 110 # | |
| 111 # | |
| 112 'Debug': { | |
| 113 'conditions': [ | |
| 114 [ 'OS=="mac"', { | |
| 115 'xcode_settings': { | |
| 116 'COPY_PHASE_STRIP': 'NO', | |
| 117 'GCC_OPTIMIZATION_LEVEL': '0', | |
| 118 } | |
| 119 }], | |
| 120 [ 'OS=="win"', { | |
| 121 # On Windows, the default Debug target is x86 | |
| 122 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'] | |
| 123 }], | |
| 124 ], | |
| 125 }, | |
| 126 'Release': { | |
| 127 'defines': [ | |
| 128 'NDEBUG', | |
| 129 ], | |
| 130 'conditions': [ | |
| 131 [ 'OS=="mac"', { | |
| 132 'xcode_settings': { | |
| 133 'DEAD_CODE_STRIPPING': 'YES', | |
| 134 } | |
| 135 }], | |
| 136 [ 'OS=="win"', { | |
| 137 # On Windows, the default Release target is x86 | |
| 138 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'] | |
| 139 }], | |
| 140 ], | |
| 141 }, | |
| 142 'conditions': [ | |
| 143 ['OS=="win"', { | |
| 144 'Debug_x64': { | |
| 145 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], | |
| 146 }, | |
| 147 'Release_x64': { | |
| 148 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], | |
| 149 }, | |
| 150 }], | |
| 151 ], | |
| 152 }, | |
| 153 }, | |
| 154 } | |
| OLD | NEW |