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