OLD | NEW |
---|---|
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 'target_defaults': { | 5 'target_defaults': { |
6 'variables': { | 6 'variables': { |
7 'chrome_dll_target': 0, | 7 'chrome_dll_target': 0, |
8 }, | 8 }, |
9 'target_conditions': [ | 9 'target_conditions': [ |
10 ['chrome_dll_target==1', { | 10 ['chrome_dll_target==1', { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 'msvs_settings': { | 147 'msvs_settings': { |
148 'VCLinkerTool': { | 148 'VCLinkerTool': { |
149 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib', | 149 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib', |
150 'conditions': [ | 150 'conditions': [ |
151 ['optimize_with_syzygy==1', { | 151 ['optimize_with_syzygy==1', { |
152 # When syzygy is enabled we use build chrome_dll as an | 152 # When syzygy is enabled we use build chrome_dll as an |
153 # intermediate target then have a subsequent step which | 153 # intermediate target then have a subsequent step which |
154 # optimizes it to its final location | 154 # optimizes it to its final location |
155 'ProgramDatabaseFile': '$(OutDir)\\initial\\chrome_dll.pdb ', | 155 'ProgramDatabaseFile': '$(OutDir)\\initial\\chrome_dll.pdb ', |
156 'OutputFile': '$(OutDir)\\initial\\chrome.dll', | 156 'OutputFile': '$(OutDir)\\initial\\chrome.dll', |
157 }], ['incremental_chrome_dll==1', { | |
Roger McFarlane (Chromium)
2011/08/17 19:12:35
If I understand what you intend, the flow of these
| |
158 'OutputFile': '$(OutDir)\\incremental\\chrome.dll', | |
159 'UseLibraryDependencyInputs': "true", | |
157 }, { | 160 }, { |
158 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb', | 161 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb', |
159 }], | 162 }], |
160 ], | 163 ], |
161 }, | 164 }, |
162 }, | 165 }, |
166 'conditions': [['incremental_chrome_dll==1', { | |
Roger McFarlane (Chromium)
2011/08/17 19:12:35
Perhaps 'incremental_chrome_dll==1 && optimize_wit
| |
167 # Linking to a different directory and then hardlinking back to | |
168 # OutDiris a workaround to avoid having the .ilk for chrome.exe | |
Roger McFarlane (Chromium)
2011/08/17 19:12:35
OutDiris -> Outdir is
| |
169 # and chrome.dll conflicting. See crbug.com/92528 for more | |
170 # information. Done on the dll instead of the exe so that | |
171 # people launching from VS don't need to modify $(TargetPath) | |
172 # for the exe. | |
173 'msvs_postbuild': 'tools\\build\\win\\hardlink_failsafe.bat $(Ou tDir)\\incremental\\chrome.dll $(OutDir)\\chrome.dll' | |
174 }]] | |
163 }], # OS=="win" | 175 }], # OS=="win" |
164 ['OS=="mac"', { | 176 ['OS=="mac"', { |
165 # The main browser executable's name is <(mac_product_name). | 177 # The main browser executable's name is <(mac_product_name). |
166 # Certain things will get confused if two modules in the | 178 # Certain things will get confused if two modules in the |
167 # executable share the same name, so append " Framework" to the | 179 # executable share the same name, so append " Framework" to the |
168 # product_name used for the framework. This will result in | 180 # product_name used for the framework. This will result in |
169 # a name like "Chromium Framework.framework". | 181 # a name like "Chromium Framework.framework". |
170 'product_name': '<(mac_product_name) Framework', | 182 'product_name': '<(mac_product_name) Framework', |
171 'mac_bundle': 1, | 183 'mac_bundle': 1, |
172 'xcode_settings': { | 184 'xcode_settings': { |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
734 'LinkIncremental': '<(msvs_debug_link_nonincremental)', | 746 'LinkIncremental': '<(msvs_debug_link_nonincremental)', |
735 }, | 747 }, |
736 }, | 748 }, |
737 }, | 749 }, |
738 }, | 750 }, |
739 }, # target chrome_dll | 751 }, # target chrome_dll |
740 ], | 752 ], |
741 }], | 753 }], |
742 ], | 754 ], |
743 } | 755 } |
OLD | NEW |