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 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
6 # to build Android APKs in a consistent manner. | 6 # to build Android APKs in a consistent manner. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # { | 9 # { |
10 # 'target_name': 'my_package_apk', | 10 # 'target_name': 'my_package_apk', |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 'lint_result': '<(intermediate_dir)/lint_result.xml', | 99 'lint_result': '<(intermediate_dir)/lint_result.xml', |
100 'lint_config': '<(intermediate_dir)/lint_config.xml', | 100 'lint_config': '<(intermediate_dir)/lint_config.xml', |
101 'never_lint%': 0, | 101 'never_lint%': 0, |
102 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 102 'instr_stamp': '<(intermediate_dir)/instr.stamp', |
103 'jar_stamp': '<(intermediate_dir)/jar.stamp', | 103 'jar_stamp': '<(intermediate_dir)/jar.stamp', |
104 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', | 104 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', |
105 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam
p', | 105 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam
p', |
106 'strip_stamp': '<(intermediate_dir)/strip.stamp', | 106 'strip_stamp': '<(intermediate_dir)/strip.stamp', |
107 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', | 107 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', |
108 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', | 108 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', |
109 'classes_dir': '<(intermediate_dir)/classes/2', | |
110 'javac_includes': [], | 109 'javac_includes': [], |
111 'jar_excluded_classes': [], | 110 'jar_excluded_classes': [], |
112 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', | 111 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', |
113 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', | 112 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', |
114 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', | 113 'obfuscated_jar_path': '<(intermediate_dir)/obfuscated.jar', |
115 'test_jar_path': '<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', | 114 'test_jar_path': '<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', |
116 'dex_path': '<(intermediate_dir)/classes.dex', | 115 'dex_path': '<(intermediate_dir)/classes.dex', |
117 'emma_device_jar': '<(android_sdk_root)/tools/lib/emma_device.jar', | 116 'emma_device_jar': '<(android_sdk_root)/tools/lib/emma_device.jar', |
118 'android_manifest_path%': '<(java_in_dir)/AndroidManifest.xml', | 117 'android_manifest_path%': '<(java_in_dir)/AndroidManifest.xml', |
119 'push_stamp': '<(intermediate_dir)/push.stamp', | 118 'push_stamp': '<(intermediate_dir)/push.stamp', |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 ['native_lib_target != ""', { | 638 ['native_lib_target != ""', { |
640 'inputs': [ '<(native_libraries_java_stamp)' ], | 639 'inputs': [ '<(native_libraries_java_stamp)' ], |
641 }], | 640 }], |
642 ], | 641 ], |
643 'outputs': [ | 642 'outputs': [ |
644 '<(compile_stamp)', | 643 '<(compile_stamp)', |
645 '<(javac_jar_path)', | 644 '<(javac_jar_path)', |
646 ], | 645 ], |
647 'action': [ | 646 'action': [ |
648 'python', '<(DEPTH)/build/android/gyp/javac.py', | 647 'python', '<(DEPTH)/build/android/gyp/javac.py', |
649 '--classes-dir=<(classes_dir)', | |
650 '--classpath=>(input_jars_paths) <(android_sdk_jar)', | 648 '--classpath=>(input_jars_paths) <(android_sdk_jar)', |
651 '--src-gendirs=>(gen_src_dirs)', | 649 '--src-gendirs=>(gen_src_dirs)', |
652 '--javac-includes=<(javac_includes)', | 650 '--javac-includes=<(javac_includes)', |
653 '--chromium-code=<(chromium_code)', | 651 '--chromium-code=<(chromium_code)', |
654 '--jar-path=<(javac_jar_path)', | 652 '--jar-path=<(javac_jar_path)', |
655 '--jar-excluded-classes=<(jar_excluded_classes)', | 653 '--jar-excluded-classes=<(jar_excluded_classes)', |
656 '--stamp=<(compile_stamp)', | 654 '--stamp=<(compile_stamp)', |
657 '>@(java_sources)', | 655 '>@(java_sources)', |
658 ], | 656 ], |
659 }, | 657 }, |
660 { | 658 { |
661 'variables': { | |
662 'src_dirs': [ | |
663 '<(java_in_dir)/src', | |
664 '>@(additional_src_dirs)', | |
665 ], | |
666 'stamp_path': '<(lint_stamp)', | |
667 'result_path': '<(lint_result)', | |
668 'config_path': '<(lint_config)', | |
669 }, | |
670 'inputs': [ | |
671 '<(compile_stamp)', | |
672 ], | |
673 'outputs': [ | |
674 '<(lint_stamp)', | |
675 ], | |
676 'includes': [ 'android/lint_action.gypi' ], | |
677 }, | |
678 { | |
679 'action_name': 'instr_jar_<(_target_name)', | 659 'action_name': 'instr_jar_<(_target_name)', |
680 'message': 'Instrumenting <(_target_name) jar', | 660 'message': 'Instrumenting <(_target_name) jar', |
681 'variables': { | 661 'variables': { |
682 'input_path': '<(javac_jar_path)', | 662 'input_path': '<(javac_jar_path)', |
683 'output_path': '<(jar_path)', | 663 'output_path': '<(jar_path)', |
684 'stamp_path': '<(instr_stamp)', | 664 'stamp_path': '<(instr_stamp)', |
685 'instr_type': 'jar', | 665 'instr_type': 'jar', |
686 }, | 666 }, |
687 'outputs': [ | 667 'outputs': [ |
688 '<(instr_stamp)', | 668 '<(instr_stamp)', |
689 '<(jar_path)', | 669 '<(jar_path)', |
690 ], | 670 ], |
691 'inputs': [ | 671 'inputs': [ |
692 '<(javac_jar_path)', | 672 '<(javac_jar_path)', |
693 ], | 673 ], |
694 'includes': [ 'android/instr_action.gypi' ], | 674 'includes': [ 'android/instr_action.gypi' ], |
695 }, | 675 }, |
696 { | 676 { |
| 677 'variables': { |
| 678 'src_dirs': [ |
| 679 '<(java_in_dir)/src', |
| 680 '>@(additional_src_dirs)', |
| 681 ], |
| 682 'lint_jar_path': '<(jar_path)', |
| 683 'stamp_path': '<(lint_stamp)', |
| 684 'result_path': '<(lint_result)', |
| 685 'config_path': '<(lint_config)', |
| 686 }, |
| 687 'outputs': [ |
| 688 '<(lint_stamp)', |
| 689 ], |
| 690 'includes': [ 'android/lint_action.gypi' ], |
| 691 }, |
| 692 { |
697 'action_name': 'obfuscate_<(_target_name)', | 693 'action_name': 'obfuscate_<(_target_name)', |
698 'message': 'Obfuscating <(_target_name)', | 694 'message': 'Obfuscating <(_target_name)', |
699 'variables': { | 695 'variables': { |
700 'additional_obfuscate_options': [], | 696 'additional_obfuscate_options': [], |
701 'additional_obfuscate_input_paths': [], | 697 'additional_obfuscate_input_paths': [], |
702 'proguard_out_dir': '<(intermediate_dir)/proguard', | 698 'proguard_out_dir': '<(intermediate_dir)/proguard', |
703 'proguard_input_jar_paths': [ | 699 'proguard_input_jar_paths': [ |
704 '>@(input_jars_paths)', | 700 '>@(input_jars_paths)', |
705 '<(jar_path)', | 701 '<(jar_path)', |
706 ], | 702 ], |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 898 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
903 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 899 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
904 | 900 |
905 '-Dbasedir=.', | 901 '-Dbasedir=.', |
906 '-buildfile', | 902 '-buildfile', |
907 '<(DEPTH)/build/android/ant/apk-package.xml', | 903 '<(DEPTH)/build/android/ant/apk-package.xml', |
908 ] | 904 ] |
909 }, | 905 }, |
910 ], | 906 ], |
911 } | 907 } |
OLD | NEW |