OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'conditions': [ | 5 'conditions': [ |
6 ['OS=="mac" or OS=="win"', { | 6 ['OS=="mac" or OS=="win"', { |
7 'targets': [ | 7 'targets': [ |
8 { | 8 { |
9 'target_name': 'chrome_dll', | 9 'target_name': 'chrome_dll', |
10 'type': 'none', | 10 'type': 'none', |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 ['use_aura==1', { | 81 ['use_aura==1', { |
82 'dependencies': [ | 82 'dependencies': [ |
83 '../ui/compositor/compositor.gyp:compositor', | 83 '../ui/compositor/compositor.gyp:compositor', |
84 ], | 84 ], |
85 }], | 85 }], |
86 ['use_ash==1', { | 86 ['use_ash==1', { |
87 'sources': [ | 87 'sources': [ |
88 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso
urces.rc', | 88 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso
urces.rc', |
89 ], | 89 ], |
90 }], | 90 }], |
| 91 ['OS=="win" and target_arch=="ia32"', { |
| 92 # Add a dependency to custom import library for user32 delay |
| 93 # imports only in x86 builds. |
| 94 'dependencies': [ |
| 95 'chrome_user32_delay_imports', |
| 96 ], |
| 97 },], |
91 ['OS=="win"', { | 98 ['OS=="win"', { |
92 'product_name': 'chrome', | 99 'product_name': 'chrome', |
93 'dependencies': [ | 100 'dependencies': [ |
94 # On Windows, link the dependencies (libraries) that make | 101 # On Windows, link the dependencies (libraries) that make |
95 # up actual Chromium functionality into this .dll. | 102 # up actual Chromium functionality into this .dll. |
96 'chrome_dll_pdb_workaround', | 103 'chrome_dll_pdb_workaround', |
97 'chrome_resources.gyp:chrome_resources', | 104 'chrome_resources.gyp:chrome_resources', |
98 'chrome_version_resources', | 105 'chrome_version_resources', |
99 '../chrome/chrome_resources.gyp:chrome_unscaled_resources', | 106 '../chrome/chrome_resources.gyp:chrome_unscaled_resources', |
100 '../content/content.gyp:content_worker', | 107 '../content/content.gyp:content_worker', |
101 '../crypto/crypto.gyp:crypto', | 108 '../crypto/crypto.gyp:crypto', |
102 '../printing/printing.gyp:printing', | 109 '../printing/printing.gyp:printing', |
103 '../net/net.gyp:net_resources', | 110 '../net/net.gyp:net_resources', |
104 '../third_party/cld/cld.gyp:cld', | 111 '../third_party/cld/cld.gyp:cld', |
105 '../ui/views/views.gyp:views', | 112 '../ui/views/views.gyp:views', |
106 '../webkit/support/webkit_support.gyp:webkit_resources', | 113 '../webkit/support/webkit_support.gyp:webkit_resources', |
107 ], | 114 ], |
108 'sources': [ | 115 'sources': [ |
109 'app/chrome_command_ids.h', | 116 'app/chrome_command_ids.h', |
110 'app/chrome_dll.rc', | 117 'app/chrome_dll.rc', |
111 'app/chrome_dll_resource.h', | 118 'app/chrome_dll_resource.h', |
112 'app/chrome_main.cc', | 119 'app/chrome_main.cc', |
113 'app/chrome_main_delegate.cc', | 120 'app/chrome_main_delegate.cc', |
114 'app/chrome_main_delegate.h', | 121 'app/chrome_main_delegate.h', |
| 122 'app/delay_load_hook_win.cc', |
| 123 'app/delay_load_hook_win.h', |
115 | 124 |
116 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_dll_version.rc
', | 125 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_dll_version.rc
', |
117 '../base/win/dllmain.cc', | 126 '../base/win/dllmain.cc', |
118 | 127 |
119 '../ui/resources/cursors/aliasb.cur', | 128 '../ui/resources/cursors/aliasb.cur', |
120 '../ui/resources/cursors/cell.cur', | 129 '../ui/resources/cursors/cell.cur', |
121 '../ui/resources/cursors/col_resize.cur', | 130 '../ui/resources/cursors/col_resize.cur', |
122 '../ui/resources/cursors/copy.cur', | 131 '../ui/resources/cursors/copy.cur', |
123 '../ui/resources/cursors/none.cur', | 132 '../ui/resources/cursors/none.cur', |
124 '../ui/resources/cursors/row_resize.cur', | 133 '../ui/resources/cursors/row_resize.cur', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 'VCLinkerTool': { | 171 'VCLinkerTool': { |
163 'BaseAddress': '0x01c30000', | 172 'BaseAddress': '0x01c30000', |
164 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib', | 173 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib', |
165 # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency). | 174 # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency). |
166 'SubSystem': '2', | 175 'SubSystem': '2', |
167 'conditions': [ | 176 'conditions': [ |
168 ['incremental_chrome_dll==1', { | 177 ['incremental_chrome_dll==1', { |
169 'OutputFile': '$(OutDir)\\initial\\chrome.dll', | 178 'OutputFile': '$(OutDir)\\initial\\chrome.dll', |
170 'UseLibraryDependencyInputs': "true", | 179 'UseLibraryDependencyInputs': "true", |
171 }], | 180 }], |
| 181 ['target_arch=="ia32"', { |
| 182 # Link against the XP-constrained user32 import library |
| 183 # instead of the platform-SDK provided one to avoid |
| 184 # inadvertently taking dependencies on post-XP user32 |
| 185 # exports. |
| 186 'AdditionalDependencies!': [ |
| 187 'user32.lib', |
| 188 ], |
| 189 'IgnoreDefaultLibraryNames': [ |
| 190 'user32.lib', |
| 191 ], |
| 192 # Remove user32 delay load for chrome.dll. |
| 193 'DelayLoadDLLs!': [ |
| 194 'user32.dll', |
| 195 ], |
| 196 'AdditionalDependencies': [ |
| 197 'user32.winxp.lib', |
| 198 ], |
| 199 'DelayLoadDLLs': [ |
| 200 'user32-delay.dll', |
| 201 ], |
| 202 'AdditionalLibraryDirectories': [ |
| 203 '<(DEPTH)/build/win/importlibs/x86', |
| 204 ], |
| 205 'ForceSymbolReferences': [ |
| 206 # Force the inclusion of the delay load hook in this |
| 207 # binary. |
| 208 '_ChromeDelayLoadHook@8', |
| 209 ], |
| 210 }], |
172 ], | 211 ], |
173 'DelayLoadDLLs': [ | 212 'DelayLoadDLLs': [ |
174 'comdlg32.dll', | 213 'comdlg32.dll', |
175 'crypt32.dll', | 214 'crypt32.dll', |
176 'cryptui.dll', | 215 'cryptui.dll', |
177 'dhcpcsvc.dll', | 216 'dhcpcsvc.dll', |
178 'imagehlp.dll', | 217 'imagehlp.dll', |
179 'imm32.dll', | 218 'imm32.dll', |
180 'iphlpapi.dll', | 219 'iphlpapi.dll', |
181 'setupapi.dll', | 220 'setupapi.dll', |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', | 318 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', |
280 }, | 319 }, |
281 }, | 320 }, |
282 }], | 321 }], |
283 ], | 322 ], |
284 }, | 323 }, |
285 ], | 324 ], |
286 }], | 325 }], |
287 ], | 326 ], |
288 } | 327 } |
OLD | NEW |