Index: chrome/chrome_dll.gypi |
=================================================================== |
--- chrome/chrome_dll.gypi (revision 95033) |
+++ chrome/chrome_dll.gypi (working copy) |
@@ -63,11 +63,21 @@ |
['OS=="mac" or OS=="win"', { |
'targets': [ |
{ |
- 'target_name': 'chrome_dll', |
- 'type': 'shared_library', |
'variables': { |
M-A Ruel
2011/08/02 15:25:14
I think it warrants a small comment explaining why
Roger McFarlane (Google)
2011/08/03 16:22:28
Done.
|
+ 'variables': { |
+ 'optimize_with_syzygy%': 0, |
+ }, |
'chrome_dll_target': 1, |
+ 'conditions' : [ |
+ ['OS=="win" and optimize_with_syzygy==1', { |
+ 'dll_target_name': 'original_chrome_dll', |
+ }, { |
+ 'dll_target_name': 'chrome_dll', |
+ }], |
+ ], |
}, |
+ 'target_name': '<(dll_target_name)', |
+ 'type': 'shared_library', |
'dependencies': [ |
'<@(chromium_dependencies)', |
'app/policy/cloud_policy_codegen.gyp:policy', |
@@ -133,7 +143,17 @@ |
'msvs_settings': { |
'VCLinkerTool': { |
'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib', |
- 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb', |
+ # This corresponds to the /PROFILE flag which ensures |
+ # the PDB file contains FIXUP information. |
+ 'Profile': 'true', |
+ 'conditions' : [ |
+ ['optimize_with_syzygy==1', { |
+ 'ProgramDatabaseFile': '$(OutDir)\\original\\chrome_dll.pdb', |
+ 'OutputFile': '$(OutDir)\\original\chrome.dll' |
+ }, { |
+ 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb', |
+ }], |
+ ], |
}, |
}, |
}], # OS=="win" |