| 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 }, | 596 }, |
| 597 { | 597 { |
| 598 'target_name': 'content_shell_apk', | 598 'target_name': 'content_shell_apk', |
| 599 'type': 'none', | 599 'type': 'none', |
| 600 'dependencies': [ | 600 'dependencies': [ |
| 601 'content_java', | 601 'content_java', |
| 602 '../base/base.gyp:base_java', | 602 '../base/base.gyp:base_java', |
| 603 '../media/media.gyp:media_java', | 603 '../media/media.gyp:media_java', |
| 604 '../net/net.gyp:net_java', | 604 '../net/net.gyp:net_java', |
| 605 ], | 605 ], |
| 606 'variables': { | |
| 607 'package_name': 'content_shell', | |
| 608 'apk_name': 'ContentShell', | |
| 609 'java_in_dir': 'shell/android/java', | |
| 610 'resource_dir': 'shell/android/res', | |
| 611 'native_libs_paths': ['<(PRODUCT_DIR)/content_shell/libs/<(android_a
pp_abi)/libcontent_shell_content_view.so'], | |
| 612 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/cont
ent_shell.pak'], | |
| 613 }, | |
| 614 'actions': [ | 606 'actions': [ |
| 615 { | 607 { |
| 616 'action_name': 'copy_and_strip_so', | 608 'action_name': 'copy_and_strip_so', |
| 617 'inputs': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'], | 609 'inputs': ['<(SHARED_LIB_DIR)/libcontent_shell_content_view.so'], |
| 618 'outputs': ['<(PRODUCT_DIR)/content_shell/libs/<(android_app_abi)/
libcontent_shell_content_view.so'], | 610 'outputs': ['<(PRODUCT_DIR)/content_shell/libs/<(android_app_abi)/
libcontent_shell_content_view.so'], |
| 619 'action': [ | 611 'action': [ |
| 620 '<(android_strip)', | 612 '<(android_strip)', |
| 621 '--strip-unneeded', # All symbols not needed for relocation. | 613 '--strip-unneeded', # All symbols not needed for relocation. |
| 622 '<@(_inputs)', | 614 '<@(_inputs)', |
| 623 '-o', | 615 '-o', |
| 624 '<@(_outputs)', | 616 '<@(_outputs)', |
| 625 ], | 617 ], |
| 626 }, | 618 }, |
| 619 { |
| 620 'action_name': 'content_shell_apk', |
| 621 'inputs': [ |
| 622 'shell/android/java/content_shell_apk.xml', |
| 623 'shell/android/java/AndroidManifest.xml', |
| 624 '../build/android/ant/common.xml', |
| 625 '../build/android/ant/sdk-targets.xml', |
| 626 '<!@(find shell/android/java -name "*.java")', |
| 627 '<!@(find shell/android/res -name "*")', |
| 628 '>@(input_jars_paths)', |
| 629 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak', |
| 630 '<(PRODUCT_DIR)/content_shell/libs/<(android_app_abi)/libcontent
_shell_content_view.so', |
| 631 ], |
| 632 'outputs': [ |
| 633 # Awkwardly, we build a Debug APK even when gyp is in |
| 634 # Release mode. I don't think it matters (e.g. we're |
| 635 # probably happy to not codesign) but naming should be |
| 636 # fixed. |
| 637 '<(PRODUCT_DIR)/content_shell/ContentShell-debug.apk', |
| 638 ], |
| 639 'action': [ |
| 640 # Pass the build type to ant. Currently it only assumes |
| 641 # debug mode in java. Release mode will break the current |
| 642 # workflow. |
| 643 'ant', |
| 644 '-DPRODUCT_DIR=<(ant_build_out)', |
| 645 '-DAPP_ABI=<(android_app_abi)', |
| 646 '-DANDROID_SDK=<(android_sdk)', |
| 647 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
| 648 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
| 649 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
| 650 '-DANDROID_GDBSERVER=<(android_gdbserver)', |
| 651 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
| 652 '-DINPUT_JARS_PATHS=>(input_jars_paths)', |
| 653 '-buildfile', |
| 654 'shell/android/java/content_shell_apk.xml', |
| 655 ], |
| 656 } |
| 627 ], | 657 ], |
| 628 'includes': [ '../build/java_apk.gypi' ], | |
| 629 }, | 658 }, |
| 630 ], | 659 ], |
| 631 }], # OS=="android" | 660 }], # OS=="android" |
| 632 ] | 661 ] |
| 633 } | 662 } |
| OLD | NEW |