| 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 'variables': { |
| 6 'browser_dll_sources': [ |
| 7 'app/chrome_command_ids.h', |
| 8 'app/chrome_dll.rc', |
| 9 'app/chrome_dll_resource.h', |
| 10 'app/chrome_main.cc', |
| 11 'app/chrome_main_delegate.cc', |
| 12 'app/chrome_main_delegate.h', |
| 13 'app/delay_load_hook_win.cc', |
| 14 'app/delay_load_hook_win.h', |
| 15 |
| 16 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_dll_version.rc', |
| 17 '../base/win/dllmain.cc', |
| 18 |
| 19 '../ui/resources/cursors/aliasb.cur', |
| 20 '../ui/resources/cursors/cell.cur', |
| 21 '../ui/resources/cursors/col_resize.cur', |
| 22 '../ui/resources/cursors/copy.cur', |
| 23 '../ui/resources/cursors/none.cur', |
| 24 '../ui/resources/cursors/row_resize.cur', |
| 25 '../ui/resources/cursors/vertical_text.cur', |
| 26 '../ui/resources/cursors/zoom_in.cur', |
| 27 '../ui/resources/cursors/zoom_out.cur', |
| 28 |
| 29 # TODO: It would be nice to have these pulled in |
| 30 # automatically from direct_dependent_settings in |
| 31 # their various targets (net.gyp:net_resources, etc.), |
| 32 # but that causes errors in other targets when |
| 33 # resulting .res files get referenced multiple times. |
| 34 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc', |
| 35 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_unscaled_resources.rc', |
| 36 '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc', |
| 37 '<(SHARED_INTERMEDIATE_DIR)/chrome/extensions_api_resources.rc', |
| 38 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.rc', |
| 39 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', |
| 40 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_unscaled_resources.rc', |
| 41 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc', |
| 42 ], |
| 43 'delay_load_dlls_win': [ |
| 44 'comdlg32.dll', |
| 45 'crypt32.dll', |
| 46 'cryptui.dll', |
| 47 'dhcpcsvc.dll', |
| 48 'imagehlp.dll', |
| 49 'imm32.dll', |
| 50 'iphlpapi.dll', |
| 51 'setupapi.dll', |
| 52 'urlmon.dll', |
| 53 'winhttp.dll', |
| 54 'wininet.dll', |
| 55 'winspool.drv', |
| 56 'ws2_32.dll', |
| 57 'wsock32.dll', |
| 58 ], |
| 59 'browser_dependencies_win': [ |
| 60 # On Windows, link the dependencies (libraries) that make |
| 61 # up actual Chromium functionality into this .dll. |
| 62 'chrome_resources.gyp:chrome_resources', |
| 63 'chrome_version_resources', |
| 64 '../chrome/chrome_resources.gyp:chrome_unscaled_resources', |
| 65 '../crypto/crypto.gyp:crypto', |
| 66 '../printing/printing.gyp:printing', |
| 67 '../net/net.gyp:net_resources', |
| 68 '../third_party/cld/cld.gyp:cld', |
| 69 '../ui/views/views.gyp:views', |
| 70 '../webkit/support/webkit_support.gyp:webkit_resources', |
| 71 ], |
| 72 'manifest_files_win': '$(ProjectDir)\\app\\chrome.dll.manifest', |
| 73 }, |
| 5 'conditions': [ | 74 'conditions': [ |
| 6 ['OS=="mac" or OS=="win"', { | 75 ['OS=="mac" or OS=="win"', { |
| 7 'targets': [ | 76 'targets': [ |
| 8 { | 77 { |
| 9 'target_name': 'chrome_dll', | 78 'target_name': 'chrome_dll', |
| 10 'type': 'none', | 79 'type': 'none', |
| 11 'dependencies': [ | 80 'dependencies': [ |
| 12 'chrome_main_dll', | 81 'chrome_main_dll', |
| 13 ], | 82 ], |
| 14 'conditions': [ | 83 'conditions': [ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 }], | 136 }], |
| 68 ] | 137 ] |
| 69 }, | 138 }, |
| 70 { | 139 { |
| 71 'target_name': 'chrome_main_dll', | 140 'target_name': 'chrome_main_dll', |
| 72 'type': 'shared_library', | 141 'type': 'shared_library', |
| 73 'variables': { | 142 'variables': { |
| 74 'enable_wexit_time_destructors': 1, | 143 'enable_wexit_time_destructors': 1, |
| 75 }, | 144 }, |
| 76 'dependencies': [ | 145 'dependencies': [ |
| 77 '<@(chromium_dependencies)', | 146 '<@(chromium_browser_dependencies)', |
| 147 '<@(chromium_child_dependencies)', |
| 148 'chrome_dll_pdb_workaround', |
| 149 '../content/content.gyp:content_worker', |
| 78 'app/policy/cloud_policy_codegen.gyp:policy', | 150 'app/policy/cloud_policy_codegen.gyp:policy', |
| 79 ], | 151 ], |
| 80 'conditions': [ | 152 'conditions': [ |
| 81 ['use_aura==1', { | 153 ['use_aura==1', { |
| 82 'dependencies': [ | 154 'dependencies': [ |
| 83 '../ui/compositor/compositor.gyp:compositor', | 155 '../ui/compositor/compositor.gyp:compositor', |
| 84 ], | 156 ], |
| 85 }], | 157 }], |
| 86 ['use_ash==1', { | 158 ['use_ash==1', { |
| 87 'sources': [ | 159 'sources': [ |
| 88 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso
urces.rc', | 160 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso
urces.rc', |
| 89 ], | 161 ], |
| 90 }], | 162 }], |
| 91 ['OS=="win" and target_arch=="ia32"', { | 163 ['OS=="win" and target_arch=="ia32"', { |
| 92 # Add a dependency to custom import library for user32 delay | 164 # Add a dependency to custom import library for user32 delay |
| 93 # imports only in x86 builds. | 165 # imports only in x86 builds. |
| 94 'dependencies': [ | 166 'dependencies': [ |
| 95 'chrome_user32_delay_imports', | 167 'chrome_user32_delay_imports', |
| 96 ], | 168 ], |
| 97 },], | 169 },], |
| 98 ['OS=="win"', { | 170 ['OS=="win"', { |
| 99 'product_name': 'chrome', | 171 'product_name': 'chrome', |
| 100 'dependencies': [ | 172 'dependencies': [ |
| 101 # On Windows, link the dependencies (libraries) that make | 173 '<@(browser_dependencies_win)', |
| 102 # up actual Chromium functionality into this .dll. | |
| 103 'chrome_dll_pdb_workaround', | |
| 104 'chrome_resources.gyp:chrome_resources', | |
| 105 'chrome_version_resources', | |
| 106 '../chrome/chrome_resources.gyp:chrome_unscaled_resources', | |
| 107 '../content/content.gyp:content_worker', | |
| 108 '../crypto/crypto.gyp:crypto', | |
| 109 '../printing/printing.gyp:printing', | |
| 110 '../net/net.gyp:net_resources', | |
| 111 '../third_party/cld/cld.gyp:cld', | |
| 112 '../ui/views/views.gyp:views', | |
| 113 '../webkit/support/webkit_support.gyp:webkit_resources', | |
| 114 ], | 174 ], |
| 115 'sources': [ | 175 'sources': [ |
| 116 'app/chrome_command_ids.h', | 176 '<@(browser_dll_sources)', |
| 117 'app/chrome_dll.rc', | |
| 118 'app/chrome_dll_resource.h', | |
| 119 'app/chrome_main.cc', | |
| 120 'app/chrome_main_delegate.cc', | |
| 121 'app/chrome_main_delegate.h', | |
| 122 'app/delay_load_hook_win.cc', | |
| 123 'app/delay_load_hook_win.h', | |
| 124 | |
| 125 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_dll_version.rc
', | |
| 126 '../base/win/dllmain.cc', | |
| 127 | |
| 128 '../ui/resources/cursors/aliasb.cur', | |
| 129 '../ui/resources/cursors/cell.cur', | |
| 130 '../ui/resources/cursors/col_resize.cur', | |
| 131 '../ui/resources/cursors/copy.cur', | |
| 132 '../ui/resources/cursors/none.cur', | |
| 133 '../ui/resources/cursors/row_resize.cur', | |
| 134 '../ui/resources/cursors/vertical_text.cur', | |
| 135 '../ui/resources/cursors/zoom_in.cur', | |
| 136 '../ui/resources/cursors/zoom_out.cur', | |
| 137 | |
| 138 # TODO: It would be nice to have these pulled in | |
| 139 # automatically from direct_dependent_settings in | |
| 140 # their various targets (net.gyp:net_resources, etc.), | |
| 141 # but that causes errors in other targets when | |
| 142 # resulting .res files get referenced multiple times. | |
| 143 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc', | |
| 144 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_unscaled_resources.rc'
, | |
| 145 '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc', | |
| 146 '<(SHARED_INTERMEDIATE_DIR)/chrome/extensions_api_resources.rc', | |
| 147 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.rc', | |
| 148 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc', | |
| 149 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_unscaled_resource
s.rc', | |
| 150 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc'
, | |
| 151 ], | 177 ], |
| 152 'include_dirs': [ | 178 'include_dirs': [ |
| 153 '<(DEPTH)/third_party/wtl/include', | 179 '<(DEPTH)/third_party/wtl/include', |
| 154 ], | 180 ], |
| 155 'defines': [ | |
| 156 'CHROME_DLL', | |
| 157 'BROWSER_DLL', | |
| 158 'RENDERER_DLL', | |
| 159 'PLUGIN_DLL', | |
| 160 ], | |
| 161 'configurations': { | 181 'configurations': { |
| 162 'Debug_Base': { | 182 'Debug_Base': { |
| 163 'msvs_settings': { | 183 'msvs_settings': { |
| 164 'VCLinkerTool': { | 184 'VCLinkerTool': { |
| 165 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 185 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 166 }, | 186 }, |
| 167 }, | 187 }, |
| 168 }, | 188 }, |
| 169 }, | 189 }, |
| 170 'msvs_settings': { | 190 'msvs_settings': { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 '<(DEPTH)/build/win/importlibs/x86', | 223 '<(DEPTH)/build/win/importlibs/x86', |
| 204 ], | 224 ], |
| 205 'ForceSymbolReferences': [ | 225 'ForceSymbolReferences': [ |
| 206 # Force the inclusion of the delay load hook in this | 226 # Force the inclusion of the delay load hook in this |
| 207 # binary. | 227 # binary. |
| 208 '_ChromeDelayLoadHook@8', | 228 '_ChromeDelayLoadHook@8', |
| 209 ], | 229 ], |
| 210 }], | 230 }], |
| 211 ], | 231 ], |
| 212 'DelayLoadDLLs': [ | 232 'DelayLoadDLLs': [ |
| 213 'comdlg32.dll', | 233 '<@(delay_load_dlls_win)', |
| 214 'crypt32.dll', | |
| 215 'cryptui.dll', | |
| 216 'dhcpcsvc.dll', | |
| 217 'imagehlp.dll', | |
| 218 'imm32.dll', | |
| 219 'iphlpapi.dll', | |
| 220 'setupapi.dll', | |
| 221 'urlmon.dll', | |
| 222 'winhttp.dll', | |
| 223 'wininet.dll', | |
| 224 'winspool.drv', | |
| 225 'ws2_32.dll', | |
| 226 'wsock32.dll', | |
| 227 ], | 234 ], |
| 228 }, | 235 }, |
| 229 'VCManifestTool': { | 236 'VCManifestTool': { |
| 230 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man
ifest', | 237 'AdditionalManifestFiles': '<(manifest_files_win)', |
| 231 }, | 238 }, |
| 232 }, | 239 }, |
| 233 }], # OS=="win" | 240 }], # OS=="win" |
| 234 ['OS=="mac" and component!="shared_library"', { | 241 ['OS=="mac" and component!="shared_library"', { |
| 235 'includes': [ 'chrome_dll_bundle.gypi' ], | 242 'includes': [ 'chrome_dll_bundle.gypi' ], |
| 236 }], | 243 }], |
| 237 ['OS=="mac" and component=="shared_library"', { | 244 ['OS=="mac" and component=="shared_library"', { |
| 238 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], }, | 245 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], }, |
| 239 }], | 246 }], |
| 240 ['OS=="mac"', { | 247 ['OS=="mac"', { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 ], | 297 ], |
| 291 }], # mac_breakpad_compiled_in | 298 }], # mac_breakpad_compiled_in |
| 292 ['internal_pdf', { | 299 ['internal_pdf', { |
| 293 'dependencies': [ | 300 'dependencies': [ |
| 294 '../pdf/pdf.gyp:pdf', | 301 '../pdf/pdf.gyp:pdf', |
| 295 ], | 302 ], |
| 296 }], | 303 }], |
| 297 ], # conditions | 304 ], # conditions |
| 298 }], # OS=="mac" | 305 }], # OS=="mac" |
| 299 ], # conditions | 306 ], # conditions |
| 300 }, # target chrome_dll | 307 }, # target chrome_main_dll |
| 308 { |
| 309 'target_name': 'chrome_browser_dll', |
| 310 'type': 'shared_library', |
| 311 'variables': { |
| 312 'enable_wexit_time_destructors': 1, |
| 313 }, |
| 314 'dependencies': [ |
| 315 '<@(chromium_browser_dependencies)', |
| 316 'app/policy/cloud_policy_codegen.gyp:policy', |
| 317 # TODO(scottmg): http://crbug.com/237249 Probably should be |
| 318 # renderer. |
| 319 '../ppapi/ppapi_internal.gyp:ppapi_host', |
| 320 ], |
| 321 'conditions': [ |
| 322 ['use_aura==1', { |
| 323 'dependencies': [ |
| 324 '../ui/compositor/compositor.gyp:compositor', |
| 325 ], |
| 326 }], |
| 327 ['use_ash==1', { |
| 328 'sources': [ |
| 329 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso
urces.rc', |
| 330 ], |
| 331 }], |
| 332 ['OS=="win"', { |
| 333 'product_name': 'chrome_browser', |
| 334 'dependencies': [ |
| 335 '<@(browser_dependencies_win)', |
| 336 ], |
| 337 'sources': [ |
| 338 '<@(browser_dll_sources)', |
| 339 ], |
| 340 'include_dirs': [ |
| 341 '<(DEPTH)/third_party/wtl/include', |
| 342 ], |
| 343 'msvs_settings': { |
| 344 'VCLinkerTool': { |
| 345 'BaseAddress': '0x01c30000', |
| 346 'ImportLibrary': '$(OutDir)\\lib\\chrome_browser_dll.lib', |
| 347 # Set /SUBSYSTEM:WINDOWS for chrome_browser.dll (for consisten
cy). |
| 348 'SubSystem': '2', |
| 349 'DelayLoadDLLs': [ |
| 350 '<@(delay_load_dlls_win)', |
| 351 ], |
| 352 }, |
| 353 'VCManifestTool': { |
| 354 'AdditionalManifestFiles': '<(manifest_files_win)', |
| 355 }, |
| 356 }, |
| 357 }], # OS=="win" |
| 358 ], # conditions |
| 359 }, # target chrome_browser_dll |
| 301 ], # targets | 360 ], # targets |
| 302 }], # OS=="mac" or OS=="win" | 361 }], # OS=="mac" or OS=="win" |
| 303 ['OS=="win"', { | 362 ['OS=="win"', { |
| 304 'targets': [ | 363 'targets': [ |
| 305 { | 364 { |
| 306 # This target is only depended upon on Windows. | 365 # This target is only depended upon on Windows. |
| 307 'target_name': 'chrome_dll_pdb_workaround', | 366 'target_name': 'chrome_dll_pdb_workaround', |
| 308 'type': 'static_library', | 367 'type': 'static_library', |
| 309 'sources': [ 'empty_pdb_workaround.cc' ], | 368 'sources': [ 'empty_pdb_workaround.cc' ], |
| 310 'conditions': [ | 369 'conditions': [ |
| 311 ['fastbuild==0 or win_z7!=0', { | 370 ['fastbuild==0 or win_z7!=0', { |
| 312 'msvs_settings': { | 371 'msvs_settings': { |
| 313 'VCCLCompilerTool': { | 372 'VCCLCompilerTool': { |
| 314 # This *in the compile phase* must match the pdb name that's | 373 # This *in the compile phase* must match the pdb name that's |
| 315 # output by the final link. See empty_pdb_workaround.cc for | 374 # output by the final link. See empty_pdb_workaround.cc for |
| 316 # more details. | 375 # more details. |
| 317 'DebugInformationFormat': '3', | 376 'DebugInformationFormat': '3', |
| 318 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', | 377 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', |
| 319 }, | 378 }, |
| 320 }, | 379 }, |
| 321 }], | 380 }], |
| 322 ], | 381 ], |
| 323 }, | 382 }, |
| 324 ], | 383 ], |
| 325 }], | 384 }], |
| 326 ], | 385 ], |
| 327 } | 386 } |
| OLD | NEW |