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 # The "19" is so that sites that sniff for version think that this is | 8 # The "19" is so that sites that sniff for version think that this is |
9 # something reasonably current; the "77.34.5" is a hint that this isn't a | 9 # something reasonably current; the "77.34.5" is a hint that this isn't a |
10 # standard Chrome. | 10 # standard Chrome. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 '../webkit/support/webkit_support.gyp:webkit_resources', | 46 '../webkit/support/webkit_support.gyp:webkit_resources', |
47 '../webkit/support/webkit_support.gyp:webkit_support', | 47 '../webkit/support/webkit_support.gyp:webkit_support', |
48 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit', | 48 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit', |
49 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit_test_support
', | 49 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit_test_support
', |
50 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTre
e.gyp:TestRunner', | 50 '<(webkit_src_dir)/Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTre
e.gyp:TestRunner', |
51 ], | 51 ], |
52 'include_dirs': [ | 52 'include_dirs': [ |
53 '..', | 53 '..', |
54 ], | 54 ], |
55 'sources': [ | 55 'sources': [ |
| 56 'shell/android/shell_jni_registrar.cc', |
| 57 'shell/android/shell_jni_registrar.h', |
| 58 'shell/android/shell_manager.cc', |
| 59 'shell/android/shell_manager.h', |
56 'shell/geolocation/shell_access_token_store.cc', | 60 'shell/geolocation/shell_access_token_store.cc', |
57 'shell/geolocation/shell_access_token_store.h', | 61 'shell/geolocation/shell_access_token_store.h', |
58 'shell/minimal_ash.cc', | 62 'shell/minimal_ash.cc', |
59 'shell/minimal_ash.h', | 63 'shell/minimal_ash.h', |
60 'shell/paths_mac.h', | 64 'shell/paths_mac.h', |
61 'shell/paths_mac.mm', | 65 'shell/paths_mac.mm', |
62 'shell/shell.cc', | 66 'shell/shell.cc', |
63 'shell/shell.h', | 67 'shell/shell.h', |
64 'shell/shell_android.cc', | 68 'shell/shell_android.cc', |
65 'shell/shell_aura.cc', | 69 'shell/shell_aura.cc', |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 ], | 555 ], |
552 }], # OS=="mac" | 556 }], # OS=="mac" |
553 ['OS=="android"', { | 557 ['OS=="android"', { |
554 'targets': [ | 558 'targets': [ |
555 { | 559 { |
556 # TODO(jrg): Update this action and other jni generators to only | 560 # TODO(jrg): Update this action and other jni generators to only |
557 # require specifying the java directory and generate the rest. | 561 # require specifying the java directory and generate the rest. |
558 'target_name': 'content_shell_jni_headers', | 562 'target_name': 'content_shell_jni_headers', |
559 'type': 'none', | 563 'type': 'none', |
560 'sources': [ | 564 'sources': [ |
| 565 'shell/android/browsertests_apk/src/org/chromium/content_browsertest
s_apk/ContentBrowserTestsActivity.java', |
561 'shell/android/java/src/org/chromium/content_shell/ShellManager.java
', | 566 'shell/android/java/src/org/chromium/content_shell/ShellManager.java
', |
562 'shell/android/java/src/org/chromium/content_shell/Shell.java', | 567 'shell/android/java/src/org/chromium/content_shell/Shell.java', |
563 ], | 568 ], |
564 'direct_dependent_settings': { | 569 'direct_dependent_settings': { |
565 'include_dirs': [ | 570 'include_dirs': [ |
566 '<(SHARED_INTERMEDIATE_DIR)/content/shell', | 571 '<(SHARED_INTERMEDIATE_DIR)/content/shell', |
567 ], | 572 ], |
568 }, | 573 }, |
569 'variables': { | 574 'variables': { |
570 'jni_gen_dir': 'content/shell', | 575 'jni_gen_dir': 'content/shell', |
571 }, | 576 }, |
572 'includes': [ '../build/jni_generator.gypi' ], | 577 'includes': [ '../build/jni_generator.gypi' ], |
573 }, | 578 }, |
574 { | 579 { |
575 'target_name': 'libcontent_shell_content_view', | 580 'target_name': 'libcontent_shell_content_view', |
576 'type': 'shared_library', | 581 'type': 'shared_library', |
577 'dependencies': [ | 582 'dependencies': [ |
578 'content_shell_jni_headers', | 583 'content_shell_jni_headers', |
579 'content_shell_lib', | 584 'content_shell_lib', |
580 'content_shell_pak', | 585 'content_shell_pak', |
581 # Skia is necessary to ensure the dependencies needed by | 586 # Skia is necessary to ensure the dependencies needed by |
582 # WebContents are included. | 587 # WebContents are included. |
583 '../skia/skia.gyp:skia', | 588 '../skia/skia.gyp:skia', |
584 '<(DEPTH)/media/media.gyp:player_android', | 589 '<(DEPTH)/media/media.gyp:player_android', |
585 ], | 590 ], |
586 'sources': [ | 591 'sources': [ |
587 'shell/android/shell_library_loader.cc', | 592 'shell/android/shell_library_loader.cc', |
588 'shell/android/shell_library_loader.h', | 593 'shell/android/shell_library_loader.h', |
589 'shell/android/shell_manager.cc', | |
590 'shell/android/shell_manager.h', | |
591 ], | |
592 'sources!': [ | |
593 'shell/shell_main.cc', | |
594 'shell/shell_main.h', | |
595 ], | 594 ], |
596 'conditions': [ | 595 'conditions': [ |
597 ['android_build_type==1', { | 596 ['android_build_type==1', { |
598 'ldflags': [ | 597 'ldflags': [ |
599 '-lgabi++', # For rtti | 598 '-lgabi++', # For rtti |
600 ], | 599 ], |
601 }], | 600 }], |
602 ], | 601 ], |
603 }, | 602 }, |
604 { | 603 { |
| 604 'target_name': 'content_shell_java', |
| 605 'type': 'none', |
| 606 'dependencies': [ |
| 607 'content_java', |
| 608 ], |
| 609 'variables': { |
| 610 'package_name': 'content_shell', |
| 611 'java_in_dir': '../content/shell/android/java', |
| 612 'has_java_resources': 1, |
| 613 'R_package': 'org.chromium.content_shell', |
| 614 'R_package_relpath': 'org/chromium/content_shell', |
| 615 }, |
| 616 'includes': [ '../build/java.gypi' ], |
| 617 }, |
| 618 { |
605 # content_shell_apk creates a .jar as a side effect. Any java targets | 619 # content_shell_apk creates a .jar as a side effect. Any java targets |
606 # that need that .jar in their classpath should depend on this target, | 620 # that need that .jar in their classpath should depend on this target, |
607 # content_shell_java. Dependents of content_shell_apk receive its jar | 621 # content_shell_apk_java. Dependents of content_shell_apk receive its |
608 # path in the variable 'apk_output_jar_path'. | 622 # jar path in the variable 'apk_output_jar_path'. This target should |
609 'target_name': 'content_shell_java', | 623 # only be used by targets which instrument content_shell_apk. |
| 624 'target_name': 'content_shell_apk_java', |
610 'type': 'none', | 625 'type': 'none', |
611 'dependencies': [ | 626 'dependencies': [ |
612 'content_shell_apk', | 627 'content_shell_apk', |
613 ], | 628 ], |
614 # This all_dependent_settings is used for java targets only. This will | 629 # This all_dependent_settings is used for java targets only. This will |
615 # add the content_shell jar to the classpath of dependent java | 630 # add the content_shell jar to the classpath of dependent java |
616 # targets. | 631 # targets. |
617 'all_dependent_settings': { | 632 'all_dependent_settings': { |
618 'variables': { | 633 'variables': { |
619 'input_jars_paths': ['>(apk_output_jar_path)'], | 634 'input_jars_paths': ['>(apk_output_jar_path)'], |
620 }, | 635 }, |
621 }, | 636 }, |
622 # Add an action with the appropriate output. This allows the generated | 637 # Add an action with the appropriate output. This allows the generated |
623 # buildfiles to determine which target the output corresponds to. | 638 # buildfiles to determine which target the output corresponds to. |
624 'actions': [ | 639 'actions': [ |
625 { | 640 { |
626 'action_name': 'fake_generate_jar', | 641 'action_name': 'fake_generate_jar', |
627 'inputs': [], | 642 'inputs': [], |
628 'outputs': ['>(apk_output_jar_path)'], | 643 'outputs': ['>(apk_output_jar_path)'], |
629 'action': [], | 644 'action': [], |
630 }, | 645 }, |
631 ], | 646 ], |
632 }, | 647 }, |
633 { | 648 { |
634 'target_name': 'content_shell_apk', | 649 'target_name': 'content_shell_apk', |
635 'type': 'none', | 650 'type': 'none', |
636 'dependencies': [ | 651 'dependencies': [ |
637 'content_java', | 652 'content_java', |
| 653 'content_shell_java', |
| 654 'libcontent_shell_content_view', |
638 '../base/base.gyp:base_java', | 655 '../base/base.gyp:base_java', |
639 '../media/media.gyp:media_java', | 656 '../media/media.gyp:media_java', |
640 '../net/net.gyp:net_java', | 657 '../net/net.gyp:net_java', |
641 '../ui/ui.gyp:ui_java', | 658 '../ui/ui.gyp:ui_java', |
642 ], | 659 ], |
643 'variables': { | 660 'variables': { |
644 'package_name': 'content_shell', | 661 'package_name': 'content_shell_apk', |
645 'apk_name': 'ContentShell', | 662 'apk_name': 'ContentShell', |
646 'manifest_package_name': 'org.chromium.content_shell', | 663 'manifest_package_name': 'org.chromium.content_shell_apk', |
647 'java_in_dir': 'shell/android/java', | 664 'java_in_dir': 'shell/android/shell_apk', |
648 # TODO(cjhopman): The resource directory of all apks should be in | 665 'resource_dir': 'res', |
649 # <java_in_dir>/res. | |
650 'resource_dir': '../res', | |
651 'native_libs_paths': ['<(SHARED_LIB_DIR)/libcontent_shell_content_vi
ew.so'], | 666 'native_libs_paths': ['<(SHARED_LIB_DIR)/libcontent_shell_content_vi
ew.so'], |
652 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/cont
ent_shell.pak'], | 667 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/cont
ent_shell.pak'], |
| 668 'asset_location': '<(ant_build_out)/content_shell/assets', |
653 }, | 669 }, |
654 'includes': [ '../build/java_apk.gypi' ], | 670 'includes': [ '../build/java_apk.gypi' ], |
655 }, | 671 }, |
656 ], | 672 ], |
657 }], # OS=="android" | 673 }], # OS=="android" |
658 ] | 674 ] |
659 } | 675 } |
OLD | NEW |