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

Side by Side Diff: content/content.gyp

Issue 17619005: Create top-level separate targets for browser and child dlls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: restore white space Created 7 years, 5 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
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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, # Use higher warning level. 7 'chromium_code': 1, # Use higher warning level.
8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 e ngine. 8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 e ngine.
9 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/ directxsdk)', 9 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/ directxsdk)',
10 }, 10 },
(...skipping 25 matching lines...) Expand all
36 # targets in order to prevent dependencies from getting introduced 36 # targets in order to prevent dependencies from getting introduced
37 # upstream unnecessarily (e.g., content_renderer depends on allocator 37 # upstream unnecessarily (e.g., content_renderer depends on allocator
38 # and chrome_exe depends on content_common but we don't want 38 # and chrome_exe depends on content_common but we don't want
39 # chrome_exe to have to depend on allocator). 39 # chrome_exe to have to depend on allocator).
40 ['component=="static_library"', { 40 ['component=="static_library"', {
41 'target_defines': [ 41 'target_defines': [
42 'COMPILE_CONTENT_STATICALLY', 42 'COMPILE_CONTENT_STATICALLY',
43 ], 43 ],
44 'targets': [ 44 'targets': [
45 { 45 {
46 'target_name': 'content', 46 'target_name': 'content_all',
47 'type': 'none', 47 'type': 'none',
48 'dependencies': [ 48 'dependencies': [
49 'content_app', 49 'content_app',
50 'content_browser', 50 'content_browser',
51 'content_child', 51 'content_child',
52 'content_common', 52 'content_common',
53 ], 53 ],
54 'conditions': [ 54 'conditions': [
55 ['OS != "ios" and chrome_split_dll != 1', { 55 ['OS != "ios"', {
56 'dependencies': [ 56 'dependencies': [
57 'content_gpu', 57 'content_gpu',
58 'content_plugin', 58 'content_plugin',
59 'content_ppapi_plugin', 59 'content_ppapi_plugin',
60 'content_renderer', 60 'content_renderer',
61 'content_utility', 61 'content_utility',
62 'content_worker', 62 'content_worker',
63 ], 63 ],
64 }], 64 }],
65 ], 65 ],
66 }, 66 },
67 { 67 {
68 'target_name': 'content_app', 68 'target_name': 'content_app',
69 'type': 'static_library', 69 'type': 'static_library',
70 'variables': { 'enable_wexit_time_destructors': 1, }, 70 'variables': { 'enable_wexit_time_destructors': 1, },
71 'includes': [ 71 'includes': [
72 'content_app.gypi', 72 'content_app.gypi',
73 ], 73 ],
74 'dependencies': [ 74 'dependencies': [
75 'content_common', 75 'content_common',
76 ], 76 ],
77 'conditions': [
78 ['chrome_multiple_dll', {
79 'defines': [
80 'CHROME_MULTIPLE_DLL_BROWSER',
81 ],
82 }],
83 ],
84 },
85 {
86 'target_name': 'content_app_child',
87 'type': 'static_library',
88 'variables': { 'enable_wexit_time_destructors': 1, },
89 'includes': [
90 'content_app.gypi',
91 ],
92 'dependencies': [
93 'content_common',
94 ],
95 'conditions': [
96 ['chrome_multiple_dll', {
97 'defines': [
98 'CHROME_MULTIPLE_DLL_CHILD',
99 ],
100 }],
101 ],
77 }, 102 },
78 { 103 {
79 'target_name': 'content_browser', 104 'target_name': 'content_browser',
80 'type': 'static_library', 105 'type': 'static_library',
81 'variables': { 'enable_wexit_time_destructors': 1, }, 106 'variables': { 'enable_wexit_time_destructors': 1, },
82 'includes': [ 107 'includes': [
83 'content_browser.gypi', 108 'content_browser.gypi',
84 ], 109 ],
85 'dependencies': [ 110 'dependencies': [
86 'content_common', 111 'content_common',
87 'content_resources.gyp:content_resources', 112 'content_resources.gyp:content_resources',
88 ], 113 ],
89 'conditions': [ 114 'conditions': [
90 ['OS != "ios" and chrome_split_dll != 1', { 115 ['OS != "ios"', {
91 'dependencies': [ 116 'dependencies': [
92 'content_gpu', 117 'content_gpu',
93 'content_renderer',
94 'content_utility', 118 'content_utility',
95 ], 119 ],
96 }], 120 }],
97 ['chrome_split_dll', {
98 'dependencies': [
99 'content_gpu',
100 ],
101 }],
102 ['java_bridge==1', { 121 ['java_bridge==1', {
103 'dependencies': [ 122 'dependencies': [
104 'content_child', 123 'content_child',
105 ] 124 ]
106 }] 125 }]
107 ], 126 ],
108 }, 127 },
109 { 128 {
110 'target_name': 'content_common', 129 'target_name': 'content_common',
111 'type': 'static_library', 130 'type': 'static_library',
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 'content_common', 240 'content_common',
222 ], 241 ],
223 }, 242 },
224 ], 243 ],
225 }], 244 }],
226 ], 245 ],
227 }, 246 },
228 { # component != static_library 247 { # component != static_library
229 'targets': [ 248 'targets': [
230 { 249 {
231 'target_name': 'content', 250 'target_name': 'content_all',
232 'type': 'shared_library', 251 'type': 'shared_library',
233 'variables': { 'enable_wexit_time_destructors': 1, }, 252 'variables': { 'enable_wexit_time_destructors': 1, },
234 'dependencies': [ 253 'dependencies': [
235 'content_resources.gyp:content_resources', 254 'content_resources.gyp:content_resources',
236 ], 255 ],
237 'conditions': [ 256 'conditions': [
238 ['OS=="mac"', { 257 ['OS=="mac"', {
239 'dependencies': [ 258 'dependencies': [
240 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_overr ide', 259 '<(DEPTH)/third_party/mach_override/mach_override.gyp:mach_overr ide',
241 ], 260 ],
(...skipping 22 matching lines...) Expand all
264 ['incremental_chrome_dll==1', { 283 ['incremental_chrome_dll==1', {
265 'UseLibraryDependencyInputs': "true", 284 'UseLibraryDependencyInputs': "true",
266 }], 285 }],
267 ], 286 ],
268 }, 287 },
269 }, 288 },
270 }, 289 },
271 { 290 {
272 'target_name': 'content_app', 291 'target_name': 'content_app',
273 'type': 'none', 292 'type': 'none',
274 'dependencies': ['content', 'content_browser'], 293 'dependencies': ['content_all', 'content_browser'],
275 }, 294 },
276 { 295 {
277 'target_name': 'content_browser', 296 'target_name': 'content_browser',
278 'type': 'none', 297 'type': 'none',
279 'dependencies': ['content'], 298 'dependencies': ['content_all'],
280 }, 299 },
281 { 300 {
282 'target_name': 'content_common', 301 'target_name': 'content_common',
283 'type': 'none', 302 'type': 'none',
284 'dependencies': ['content', 'content_resources.gyp:content_resources'] , 303 'dependencies': ['content_all', 'content_resources.gyp:content_resourc es'],
285 # Disable c4267 warnings until we fix size_t to int truncations. 304 # Disable c4267 warnings until we fix size_t to int truncations.
286 'msvs_disabled_warnings': [ 4267, ], 305 'msvs_disabled_warnings': [ 4267, ],
287 }, 306 },
288 { 307 {
289 'target_name': 'content_child', 308 'target_name': 'content_child',
290 'type': 'none', 309 'type': 'none',
291 'dependencies': ['content'], 310 'dependencies': ['content_all'],
292 }, 311 },
293 { 312 {
294 'target_name': 'content_gpu', 313 'target_name': 'content_gpu',
295 'type': 'none', 314 'type': 'none',
296 'dependencies': ['content'], 315 'dependencies': ['content_all'],
297 }, 316 },
298 { 317 {
299 'target_name': 'content_plugin', 318 'target_name': 'content_plugin',
300 'type': 'none', 319 'type': 'none',
301 'dependencies': ['content'], 320 'dependencies': ['content_all'],
302 }, 321 },
303 { 322 {
304 'target_name': 'content_ppapi_plugin', 323 'target_name': 'content_ppapi_plugin',
305 'type': 'none', 324 'type': 'none',
306 'dependencies': ['content'], 325 'dependencies': ['content_all'],
307 # Disable c4267 warnings until we fix size_t to int truncations. 326 # Disable c4267 warnings until we fix size_t to int truncations.
308 'msvs_disabled_warnings': [ 4267, ], 327 'msvs_disabled_warnings': [ 4267, ],
309 }, 328 },
310 { 329 {
311 'target_name': 'content_renderer', 330 'target_name': 'content_renderer',
312 'type': 'none', 331 'type': 'none',
313 'dependencies': ['content'], 332 'dependencies': ['content_all'],
314 }, 333 },
315 { 334 {
316 'target_name': 'content_utility', 335 'target_name': 'content_utility',
317 'type': 'none', 336 'type': 'none',
318 'dependencies': ['content'], 337 'dependencies': ['content_all'],
319 }, 338 },
320 { 339 {
321 'target_name': 'content_worker', 340 'target_name': 'content_worker',
322 'type': 'none', 341 'type': 'none',
323 'dependencies': ['content'], 342 'dependencies': ['content_all'],
324 }, 343 },
325 ], 344 ],
326 }], 345 }],
327 ['OS == "android"', { 346 ['OS == "android"', {
328 'targets': [ 347 'targets': [
329 { 348 {
330 'target_name': 'common_aidl', 349 'target_name': 'common_aidl',
331 'type': 'none', 350 'type': 'none',
332 'variables': { 351 'variables': {
333 'aidl_interface_file': 'public/android/java/src/org/chromium/content /common/common.aidl', 352 'aidl_interface_file': 'public/android/java/src/org/chromium/content /common/common.aidl',
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 'variables': { 451 'variables': {
433 'package_name': 'org/chromium/content/common', 452 'package_name': 'org/chromium/content/common',
434 'template_deps': ['public/common/top_controls_state_list.h'], 453 'template_deps': ['public/common/top_controls_state_list.h'],
435 }, 454 },
436 'includes': [ '../build/android/java_cpp_template.gypi' ], 455 'includes': [ '../build/android/java_cpp_template.gypi' ],
437 }, 456 },
438 { 457 {
439 'target_name': 'java_set_jni_headers', 458 'target_name': 'java_set_jni_headers',
440 'type': 'none', 459 'type': 'none',
441 'variables': { 460 'variables': {
442 'jni_gen_package': 'content', 461 'jni_gen_package': 'content_all',
443 'input_java_class': 'java/util/HashSet.class', 462 'input_java_class': 'java/util/HashSet.class',
444 }, 463 },
445 'includes': [ '../build/jar_file_jni_generator.gypi' ], 464 'includes': [ '../build/jar_file_jni_generator.gypi' ],
446 }, 465 },
447 466
448 { 467 {
449 'target_name': 'content_jni_headers', 468 'target_name': 'content_jni_headers',
450 'type': 'none', 469 'type': 'none',
451 'dependencies': [ 470 'dependencies': [
452 'java_set_jni_headers', 471 'java_set_jni_headers',
453 ], 472 ],
454 'direct_dependent_settings': { 473 'direct_dependent_settings': {
455 'include_dirs': [ 474 'include_dirs': [
456 '<(SHARED_INTERMEDIATE_DIR)/content', 475 '<(SHARED_INTERMEDIATE_DIR)/content',
457 ], 476 ],
458 }, 477 },
459 'includes': [ 'content_jni.gypi' ], 478 'includes': [ 'content_jni.gypi' ],
460 }, 479 },
461 ], 480 ],
462 }], # OS == "android" 481 }], # OS == "android"
463 ], 482 ],
464 } 483 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698