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