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