Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Side by Side Diff: trunk/src/chrome/chrome_dll.gypi

Issue 14882004: Revert 198834 "Add chrome_split_dll gyp variable, and duplicate ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/chrome/chrome.gyp ('k') | trunk/src/chrome/chrome_exe.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 },
74 'conditions': [ 5 'conditions': [
75 ['OS=="mac" or OS=="win"', { 6 ['OS=="mac" or OS=="win"', {
76 'targets': [ 7 'targets': [
77 { 8 {
78 'target_name': 'chrome_dll', 9 'target_name': 'chrome_dll',
79 'type': 'none', 10 'type': 'none',
80 'dependencies': [ 11 'dependencies': [
81 'chrome_main_dll', 12 'chrome_main_dll',
82 ], 13 ],
83 'conditions': [ 14 'conditions': [
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 }], 67 }],
137 ] 68 ]
138 }, 69 },
139 { 70 {
140 'target_name': 'chrome_main_dll', 71 'target_name': 'chrome_main_dll',
141 'type': 'shared_library', 72 'type': 'shared_library',
142 'variables': { 73 'variables': {
143 'enable_wexit_time_destructors': 1, 74 'enable_wexit_time_destructors': 1,
144 }, 75 },
145 'dependencies': [ 76 'dependencies': [
146 '<@(chromium_browser_dependencies)', 77 '<@(chromium_dependencies)',
147 '<@(chromium_child_dependencies)',
148 'chrome_dll_pdb_workaround',
149 '../content/content.gyp:content_worker',
150 'app/policy/cloud_policy_codegen.gyp:policy', 78 'app/policy/cloud_policy_codegen.gyp:policy',
151 ], 79 ],
152 'conditions': [ 80 'conditions': [
153 ['use_aura==1', { 81 ['use_aura==1', {
154 'dependencies': [ 82 'dependencies': [
155 '../ui/compositor/compositor.gyp:compositor', 83 '../ui/compositor/compositor.gyp:compositor',
156 ], 84 ],
157 }], 85 }],
158 ['use_ash==1', { 86 ['use_ash==1', {
159 'sources': [ 87 'sources': [
160 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso urces.rc', 88 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_reso urces.rc',
161 ], 89 ],
162 }], 90 }],
163 ['OS=="win" and target_arch=="ia32"', { 91 ['OS=="win" and target_arch=="ia32"', {
164 # Add a dependency to custom import library for user32 delay 92 # Add a dependency to custom import library for user32 delay
165 # imports only in x86 builds. 93 # imports only in x86 builds.
166 'dependencies': [ 94 'dependencies': [
167 'chrome_user32_delay_imports', 95 'chrome_user32_delay_imports',
168 ], 96 ],
169 },], 97 },],
170 ['OS=="win"', { 98 ['OS=="win"', {
171 'product_name': 'chrome', 99 'product_name': 'chrome',
172 'dependencies': [ 100 'dependencies': [
173 '<@(browser_dependencies_win)', 101 # On Windows, link the dependencies (libraries) that make
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',
174 ], 114 ],
175 'sources': [ 115 'sources': [
176 '<@(browser_dll_sources)', 116 'app/chrome_command_ids.h',
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' ,
177 ], 151 ],
178 'include_dirs': [ 152 'include_dirs': [
179 '<(DEPTH)/third_party/wtl/include', 153 '<(DEPTH)/third_party/wtl/include',
180 ], 154 ],
155 'defines': [
156 'CHROME_DLL',
157 'BROWSER_DLL',
158 'RENDERER_DLL',
159 'PLUGIN_DLL',
160 ],
181 'configurations': { 161 'configurations': {
182 'Debug_Base': { 162 'Debug_Base': {
183 'msvs_settings': { 163 'msvs_settings': {
184 'VCLinkerTool': { 164 'VCLinkerTool': {
185 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 165 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
186 }, 166 },
187 }, 167 },
188 }, 168 },
189 }, 169 },
190 'msvs_settings': { 170 'msvs_settings': {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 '<(DEPTH)/build/win/importlibs/x86', 203 '<(DEPTH)/build/win/importlibs/x86',
224 ], 204 ],
225 'ForceSymbolReferences': [ 205 'ForceSymbolReferences': [
226 # Force the inclusion of the delay load hook in this 206 # Force the inclusion of the delay load hook in this
227 # binary. 207 # binary.
228 '_ChromeDelayLoadHook@8', 208 '_ChromeDelayLoadHook@8',
229 ], 209 ],
230 }], 210 }],
231 ], 211 ],
232 'DelayLoadDLLs': [ 212 'DelayLoadDLLs': [
233 '<@(delay_load_dlls_win)', 213 'comdlg32.dll',
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',
234 ], 227 ],
235 }, 228 },
236 'VCManifestTool': { 229 'VCManifestTool': {
237 'AdditionalManifestFiles': '<(manifest_files_win)', 230 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.man ifest',
238 }, 231 },
239 }, 232 },
240 }], # OS=="win" 233 }], # OS=="win"
241 ['OS=="mac" and component!="shared_library"', { 234 ['OS=="mac" and component!="shared_library"', {
242 'includes': [ 'chrome_dll_bundle.gypi' ], 235 'includes': [ 'chrome_dll_bundle.gypi' ],
243 }], 236 }],
244 ['OS=="mac" and component=="shared_library"', { 237 ['OS=="mac" and component=="shared_library"', {
245 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], }, 238 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], },
246 }], 239 }],
247 ['OS=="mac"', { 240 ['OS=="mac"', {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 ], 290 ],
298 }], # mac_breakpad_compiled_in 291 }], # mac_breakpad_compiled_in
299 ['internal_pdf', { 292 ['internal_pdf', {
300 'dependencies': [ 293 'dependencies': [
301 '../pdf/pdf.gyp:pdf', 294 '../pdf/pdf.gyp:pdf',
302 ], 295 ],
303 }], 296 }],
304 ], # conditions 297 ], # conditions
305 }], # OS=="mac" 298 }], # OS=="mac"
306 ], # conditions 299 ], # conditions
307 }, # target chrome_main_dll 300 }, # target chrome_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
360 ], # targets 301 ], # targets
361 }], # OS=="mac" or OS=="win" 302 }], # OS=="mac" or OS=="win"
362 ['OS=="win"', { 303 ['OS=="win"', {
363 'targets': [ 304 'targets': [
364 { 305 {
365 # This target is only depended upon on Windows. 306 # This target is only depended upon on Windows.
366 'target_name': 'chrome_dll_pdb_workaround', 307 'target_name': 'chrome_dll_pdb_workaround',
367 'type': 'static_library', 308 'type': 'static_library',
368 'sources': [ 'empty_pdb_workaround.cc' ], 309 'sources': [ 'empty_pdb_workaround.cc' ],
369 'conditions': [ 310 'conditions': [
370 ['fastbuild==0 or win_z7!=0', { 311 ['fastbuild==0 or win_z7!=0', {
371 'msvs_settings': { 312 'msvs_settings': {
372 'VCCLCompilerTool': { 313 'VCCLCompilerTool': {
373 # This *in the compile phase* must match the pdb name that's 314 # This *in the compile phase* must match the pdb name that's
374 # output by the final link. See empty_pdb_workaround.cc for 315 # output by the final link. See empty_pdb_workaround.cc for
375 # more details. 316 # more details.
376 'DebugInformationFormat': '3', 317 'DebugInformationFormat': '3',
377 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb', 318 'ProgramDataBaseFileName': '<(PRODUCT_DIR)/chrome.dll.pdb',
378 }, 319 },
379 }, 320 },
380 }], 321 }],
381 ], 322 ],
382 }, 323 },
383 ], 324 ],
384 }], 325 }],
385 ], 326 ],
386 } 327 }
OLDNEW
« no previous file with comments | « trunk/src/chrome/chrome.gyp ('k') | trunk/src/chrome/chrome_exe.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698