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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'content_shell_product_name': 'Content Shell', | 7 'content_shell_product_name': 'Content Shell', |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 23 matching lines...) Expand all Loading... |
34 '../net/net.gyp:net', | 34 '../net/net.gyp:net', |
35 '../skia/skia.gyp:skia', | 35 '../skia/skia.gyp:skia', |
36 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', | 36 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', |
37 '../ui/ui.gyp:ui', | 37 '../ui/ui.gyp:ui', |
38 '../v8/tools/gyp/v8.gyp:v8', | 38 '../v8/tools/gyp/v8.gyp:v8', |
39 '../webkit/support/webkit_support.gyp:appcache', | 39 '../webkit/support/webkit_support.gyp:appcache', |
40 '../webkit/support/webkit_support.gyp:database', | 40 '../webkit/support/webkit_support.gyp:database', |
41 '../webkit/support/webkit_support.gyp:fileapi', | 41 '../webkit/support/webkit_support.gyp:fileapi', |
42 '../webkit/support/webkit_support.gyp:glue', | 42 '../webkit/support/webkit_support.gyp:glue', |
43 '../webkit/support/webkit_support.gyp:quota', | 43 '../webkit/support/webkit_support.gyp:quota', |
44 '../webkit/support/webkit_support.gyp:webkit_support', | |
45 ], | 44 ], |
46 'include_dirs': [ | 45 'include_dirs': [ |
47 '..', | 46 '..', |
48 ], | 47 ], |
49 'sources': [ | 48 'sources': [ |
50 'shell/layout_test_controller_bindings.cc', | 49 'shell/layout_test_controller_bindings.cc', |
51 'shell/layout_test_controller_bindings.h', | 50 'shell/layout_test_controller_bindings.h', |
52 'shell/paths_mac.h', | 51 'shell/paths_mac.h', |
53 'shell/paths_mac.mm', | 52 'shell/paths_mac.mm', |
54 'shell/shell.cc', | 53 'shell/shell.cc', |
55 'shell/shell.h', | 54 'shell/shell.h', |
| 55 'shell/shell_android.cc', |
56 'shell/shell_aura.cc', | 56 'shell/shell_aura.cc', |
57 'shell/shell_gtk.cc', | 57 'shell/shell_gtk.cc', |
58 'shell/shell_mac.mm', | 58 'shell/shell_mac.mm', |
59 'shell/shell_win.cc', | 59 'shell/shell_win.cc', |
60 'shell/shell_application_mac.h', | 60 'shell/shell_application_mac.h', |
61 'shell/shell_application_mac.mm', | 61 'shell/shell_application_mac.mm', |
62 'shell/shell_browser_context.cc', | 62 'shell/shell_browser_context.cc', |
63 'shell/shell_browser_context.h', | 63 'shell/shell_browser_context.h', |
64 'shell/shell_browser_main.cc', | 64 'shell/shell_browser_main.cc', |
65 'shell/shell_browser_main.h', | 65 'shell/shell_browser_main.h', |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 'configurations': { | 131 'configurations': { |
132 'Debug_Base': { | 132 'Debug_Base': { |
133 'msvs_settings': { | 133 'msvs_settings': { |
134 'VCLinkerTool': { | 134 'VCLinkerTool': { |
135 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 135 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
136 }, | 136 }, |
137 }, | 137 }, |
138 }, | 138 }, |
139 }, | 139 }, |
140 }], # OS=="win" | 140 }], # OS=="win" |
| 141 ['OS!="android"', { |
| 142 'dependencies': [ |
| 143 # This dependency is for running DRT against the content shell, and |
| 144 # this combination is not yet supported on Android. |
| 145 '../webkit/support/webkit_support.gyp:webkit_support', |
| 146 ], |
| 147 }], # OS!="android" |
141 ['use_aura==1', { | 148 ['use_aura==1', { |
142 'sources/': [ | 149 'sources/': [ |
143 ['exclude', 'shell/shell_gtk.cc'], | 150 ['exclude', 'shell/shell_gtk.cc'], |
144 ['exclude', 'shell/shell_win.cc'], | 151 ['exclude', 'shell/shell_win.cc'], |
145 ], | 152 ], |
146 }], | 153 }], |
147 ], | 154 ], |
148 }, | 155 }, |
149 { | 156 { |
150 'target_name': 'content_shell_resources', | 157 'target_name': 'content_shell_resources', |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 'pak_inputs': [ | 222 'pak_inputs': [ |
216 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak', | 223 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak', |
217 ] | 224 ] |
218 }], | 225 }], |
219 ], | 226 ], |
220 }, | 227 }, |
221 'inputs': [ | 228 'inputs': [ |
222 '<(repack_path)', | 229 '<(repack_path)', |
223 '<@(pak_inputs)', | 230 '<@(pak_inputs)', |
224 ], | 231 ], |
225 'outputs': [ | |
226 '<(PRODUCT_DIR)/content_shell.pak', | |
227 ], | |
228 'action': ['python', '<(repack_path)', '<@(_outputs)', | 232 'action': ['python', '<(repack_path)', '<@(_outputs)', |
229 '<@(pak_inputs)'], | 233 '<@(pak_inputs)'], |
| 234 'conditions': [ |
| 235 ['OS!="android"', { |
| 236 'outputs': [ |
| 237 '<(PRODUCT_DIR)/content_shell.pak', |
| 238 ], |
| 239 }, { |
| 240 'outputs': [ |
| 241 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak', |
| 242 ], |
| 243 }], |
| 244 ], |
230 }, | 245 }, |
231 ], | 246 ], |
232 }, | 247 }, |
233 { | 248 { |
234 'target_name': 'content_shell', | 249 'target_name': 'content_shell', |
235 'type': 'executable', | 250 'type': 'executable', |
236 'mac_bundle': 1, | 251 'mac_bundle': 1, |
237 'defines!': ['CONTENT_IMPLEMENTATION'], | 252 'defines!': ['CONTENT_IMPLEMENTATION'], |
238 'variables': { | 253 'variables': { |
239 'chromium_code': 1, | 254 'chromium_code': 1, |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 '../build/mac/verify_no_objc.sh', | 470 '../build/mac/verify_no_objc.sh', |
456 ], | 471 ], |
457 }, | 472 }, |
458 ], | 473 ], |
459 }, # target content_shell_helper_app | 474 }, # target content_shell_helper_app |
460 ], | 475 ], |
461 }], # OS=="mac" | 476 }], # OS=="mac" |
462 ['OS=="android"', { | 477 ['OS=="android"', { |
463 'targets': [ | 478 'targets': [ |
464 { | 479 { |
| 480 # TODO(jrg): Update this action and other jni generators to only |
| 481 # require specifying the java directory and generate the rest. |
| 482 'target_name': 'content_shell_jni_headers', |
| 483 'type': 'none', |
| 484 'variables': { |
| 485 'java_sources': [ |
| 486 'shell/android/java/org/chromium/content_shell/ShellManager.java', |
| 487 'shell/android/java/org/chromium/content_shell/ShellView.java', |
| 488 ], |
| 489 'jni_headers': [ |
| 490 '<(SHARED_INTERMEDIATE_DIR)/content/shell/jni/shell_manager_jni.h'
, |
| 491 '<(SHARED_INTERMEDIATE_DIR)/content/shell/jni/shell_view_jni.h', |
| 492 ], |
| 493 }, |
| 494 'includes': [ '../build/jni_generator.gypi' ], |
| 495 }, |
| 496 { |
| 497 'target_name': 'content_shell_content_view', |
| 498 'type': 'shared_library', |
| 499 'dependencies': [ |
| 500 'content_shell_jni_headers', |
| 501 'content_shell_lib', |
| 502 'content_shell_pak', |
| 503 # Skia is necessary to ensure the dependencies needed by |
| 504 # WebContents are included. |
| 505 '../skia/skia.gyp:skia', |
| 506 '<(DEPTH)/media/media.gyp:player_android', |
| 507 ], |
| 508 'include_dirs': [ |
| 509 '<(SHARED_INTERMEDIATE_DIR)/content/shell', |
| 510 ], |
| 511 'sources': [ |
| 512 'shell/android/shell_library_loader.cc', |
| 513 'shell/android/shell_library_loader.h', |
| 514 'shell/android/shell_manager.cc', |
| 515 'shell/android/shell_manager.h', |
| 516 'shell/android/shell_view.cc', |
| 517 'shell/android/shell_view.h', |
| 518 ], |
| 519 }, |
| 520 { |
465 'target_name': 'content_shell_apk', | 521 'target_name': 'content_shell_apk', |
466 'type': 'none', | 522 'type': 'none', |
467 'actions': [ | 523 'actions': [ |
468 { | 524 { |
| 525 'action_name': 'copy_base_jar', |
| 526 'inputs': ['<(PRODUCT_DIR)/chromium_base.jar'], |
| 527 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.
jar'], |
| 528 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], |
| 529 }, |
| 530 { |
| 531 'action_name': 'copy_content_jar', |
| 532 'inputs': ['<(PRODUCT_DIR)/chromium_content.jar'], |
| 533 'outputs': ['<(PRODUCT_DIR)/content_shell/java/libs/chromium_conte
nt.jar'], |
| 534 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], |
| 535 }, |
| 536 { |
469 'action_name': 'content_shell_apk', | 537 'action_name': 'content_shell_apk', |
470 'inputs': [ | 538 'inputs': [ |
471 '<(DEPTH)/content/shell/android/content_shell_apk.xml', | 539 '<(DEPTH)/content/shell/android/content_shell_apk.xml', |
| 540 '<(DEPTH)/content/shell/android/AndroidManifest.xml', |
472 '<!@(find shell/android/java -name "*.java")', | 541 '<!@(find shell/android/java -name "*.java")', |
| 542 '<!@(find shell/android/res -name "*")', |
| 543 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_base.jar', |
| 544 '<(PRODUCT_DIR)/content_shell/java/libs/chromium_content.jar', |
| 545 # TODO(tedchoc): Move the .so file so it can be consumed by the
apk. |
| 546 '<(SHARED_LIB_DIR)/libcontent_shell_content_view.so', |
473 ], | 547 ], |
474 'outputs': [ | 548 'outputs': [ |
475 # Awkwardly, we build a Debug APK even when gyp is in | 549 # Awkwardly, we build a Debug APK even when gyp is in |
476 # Release mode. I don't think it matters (e.g. we're | 550 # Release mode. I don't think it matters (e.g. we're |
477 # probably happy to not codesign) but naming should be | 551 # probably happy to not codesign) but naming should be |
478 # fixed. | 552 # fixed. |
479 '<(PRODUCT_DIR)/ContentShell-debug.apk', | 553 '<(PRODUCT_DIR)/ContentShell-debug.apk', |
480 ], | 554 ], |
481 'action': [ | 555 'action': [ |
482 'ant', | 556 'ant', |
483 '-DPRODUCT_DIR=<(PRODUCT_DIR)', | 557 '-DPRODUCT_DIR=<(PRODUCT_DIR)', |
484 '-buildfile', | 558 '-buildfile', |
485 '<(DEPTH)/content/shell/android/content_shell_apk.xml', | 559 '<(DEPTH)/content/shell/android/content_shell_apk.xml', |
486 ] | 560 ] |
487 } | 561 } |
488 ], | 562 ], |
489 }, | 563 }, |
490 ], | 564 ], |
491 }], # OS=="android" | 565 }], # OS=="android" |
492 ] | 566 ] |
493 } | 567 } |
OLD | NEW |