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': [ | 181 'defines': [ |
156 'CHROME_DLL', | 182 'CHROME_DLL', |
157 'BROWSER_DLL', | 183 'BROWSER_DLL', |
158 'RENDERER_DLL', | 184 'RENDERER_DLL', |
159 'PLUGIN_DLL', | 185 'PLUGIN_DLL', |
160 ], | 186 ], |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 '<(DEPTH)/build/win/importlibs/x86', | 229 '<(DEPTH)/build/win/importlibs/x86', |
204 ], | 230 ], |
205 'ForceSymbolReferences': [ | 231 'ForceSymbolReferences': [ |
206 # Force the inclusion of the delay load hook in this | 232 # Force the inclusion of the delay load hook in this |
207 # binary. | 233 # binary. |
208 '_ChromeDelayLoadHook@8', | 234 '_ChromeDelayLoadHook@8', |
209 ], | 235 ], |
210 }], | 236 }], |
211 ], | 237 ], |
212 'DelayLoadDLLs': [ | 238 'DelayLoadDLLs': [ |
213 'comdlg32.dll', | 239 '<@(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 ], | 240 ], |
228 }, | 241 }, |
229 'VCManifestTool': { | 242 'VCManifestTool': { |
230 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man ifest', | 243 'AdditionalManifestFiles': '<(manifest_files_win)', |
231 }, | 244 }, |
232 }, | 245 }, |
233 }], # OS=="win" | 246 }], # OS=="win" |
234 ['OS=="mac" and component!="shared_library"', { | 247 ['OS=="mac" and component!="shared_library"', { |
235 'includes': [ 'chrome_dll_bundle.gypi' ], | 248 'includes': [ 'chrome_dll_bundle.gypi' ], |
236 }], | 249 }], |
237 ['OS=="mac" and component=="shared_library"', { | 250 ['OS=="mac" and component=="shared_library"', { |
238 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], }, | 251 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], }, |
239 }], | 252 }], |
240 ['OS=="mac"', { | 253 ['OS=="mac"', { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
290 ], | 303 ], |
291 }], # mac_breakpad_compiled_in | 304 }], # mac_breakpad_compiled_in |
292 ['internal_pdf', { | 305 ['internal_pdf', { |
293 'dependencies': [ | 306 'dependencies': [ |
294 '../pdf/pdf.gyp:pdf', | 307 '../pdf/pdf.gyp:pdf', |
295 ], | 308 ], |
296 }], | 309 }], |
297 ], # conditions | 310 ], # conditions |
298 }], # OS=="mac" | 311 }], # OS=="mac" |
299 ], # conditions | 312 ], # conditions |
300 }, # target chrome_dll | 313 }, # target chrome_main_dll |
314 { | |
315 'target_name': 'chrome_browser_dll', | |
316 'type': 'shared_library', | |
317 'variables': { | |
318 'enable_wexit_time_destructors': 1, | |
319 }, | |
320 'dependencies': [ | |
321 '<@(chromium_browser_dependencies)', | |
322 'app/policy/cloud_policy_codegen.gyp:policy', | |
323 # TODO(scottmg): http://crbug.com/237249 Probably should be | |
324 # renderer. | |
325 '../ppapi/ppapi_internal.gyp:ppapi_host', | |
326 ], | |
327 'conditions': [ | |
328 ['use_aura==1', { | |
329 'dependencies': [ | |
330 '../ui/compositor/compositor.gyp:compositor', | |
331 ], | |
332 }], | |
333 ['use_ash==1', { | |
334 'sources': [ | |
335 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso urces.rc', | |
336 ], | |
337 }], | |
338 ['OS=="win"', { | |
339 'product_name': 'chrome_browser', | |
340 'dependencies': [ | |
341 '<@(browser_dependencies_win)', | |
342 ], | |
343 'sources': [ | |
344 '<@(browser_dll_sources)', | |
345 ], | |
346 'include_dirs': [ | |
347 '<(DEPTH)/third_party/wtl/include', | |
348 ], | |
349 'defines': [ | |
350 'CHROME_DLL', | |
jam
2013/05/07 23:08:16
actually, looks like these defines aren't used any
scottmg
2013/05/07 23:14:15
Done.
| |
351 'BROWSER_DLL', | |
352 'PLUGIN_DLL', | |
353 ], | |
354 'msvs_settings': { | |
355 'VCLinkerTool': { | |
356 'BaseAddress': '0x01c30000', | |
357 'ImportLibrary': '$(OutDir)\\lib\\chrome_browser_dll.lib', | |
358 # Set /SUBSYSTEM:WINDOWS for chrome_browser.dll (for consisten cy). | |
359 'SubSystem': '2', | |
360 'DelayLoadDLLs': [ | |
361 '<@(delay_load_dlls_win)', | |
362 ], | |
363 }, | |
364 'VCManifestTool': { | |
365 'AdditionalManifestFiles': '<(manifest_files_win)', | |
366 }, | |
367 }, | |
368 }], # OS=="win" | |
369 ], # conditions | |
370 }, # target chrome_browser_dll | |
301 ], # targets | 371 ], # targets |
302 }], # OS=="mac" or OS=="win" | 372 }], # OS=="mac" or OS=="win" |
303 ['OS=="win"', { | 373 ['OS=="win"', { |
304 'targets': [ | 374 'targets': [ |
305 { | 375 { |
306 # This target is only depended upon on Windows. | 376 # This target is only depended upon on Windows. |
307 'target_name': 'chrome_dll_pdb_workaround', | 377 'target_name': 'chrome_dll_pdb_workaround', |
308 'type': 'static_library', | 378 'type': 'static_library', |
309 'sources': [ 'empty_pdb_workaround.cc' ], | 379 'sources': [ 'empty_pdb_workaround.cc' ], |
310 'conditions': [ | 380 'conditions': [ |
311 ['fastbuild==0 or win_z7!=0', { | 381 ['fastbuild==0 or win_z7!=0', { |
312 'msvs_settings': { | 382 'msvs_settings': { |
313 'VCCLCompilerTool': { | 383 'VCCLCompilerTool': { |
314 # This *in the compile phase* must match the pdb name that's | 384 # This *in the compile phase* must match the pdb name that's |
315 # output by the final link. See empty_pdb_workaround.cc for | 385 # output by the final link. See empty_pdb_workaround.cc for |
316 # more details. | 386 # more details. |
317 'DebugInformationFormat': '3', | 387 'DebugInformationFormat': '3', |
318 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', | 388 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', |
319 }, | 389 }, |
320 }, | 390 }, |
321 }], | 391 }], |
322 ], | 392 ], |
323 }, | 393 }, |
324 ], | 394 ], |
325 }], | 395 }], |
326 ], | 396 ], |
327 } | 397 } |
OLD | NEW |