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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java', | 96 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java', |
97 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', | 97 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', |
98 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', | 98 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', |
99 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', | 99 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', |
100 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', | 100 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', |
101 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 101 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
102 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 102 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
103 'lint_result': '<(intermediate_dir)/lint_result.xml', | 103 'lint_result': '<(intermediate_dir)/lint_result.xml', |
104 'lint_config': '<(intermediate_dir)/lint_config.xml', | 104 'lint_config': '<(intermediate_dir)/lint_config.xml', |
105 'never_lint%': 0, | 105 'never_lint%': 0, |
106 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', | |
106 'java_in_dir_suffix%': '/src', | 107 'java_in_dir_suffix%': '/src', |
107 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 108 'instr_stamp': '<(intermediate_dir)/instr.stamp', |
108 'jar_stamp': '<(intermediate_dir)/jar.stamp', | 109 'jar_stamp': '<(intermediate_dir)/jar.stamp', |
109 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', | 110 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', |
110 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p', | 111 'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stam p', |
111 'strip_stamp': '<(intermediate_dir)/strip.stamp', | 112 'strip_stamp': '<(intermediate_dir)/strip.stamp', |
112 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', | 113 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', |
113 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', | 114 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', |
114 'version_stamp': '<(intermediate_dir)/version.stamp', | 115 'version_stamp': '<(intermediate_dir)/version.stamp', |
115 'javac_includes': [], | 116 'javac_includes': [], |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
698 'stamp_path': '<(lint_stamp)', | 699 'stamp_path': '<(lint_stamp)', |
699 'result_path': '<(lint_result)', | 700 'result_path': '<(lint_result)', |
700 'config_path': '<(lint_config)', | 701 'config_path': '<(lint_config)', |
701 }, | 702 }, |
702 'outputs': [ | 703 'outputs': [ |
703 '<(lint_stamp)', | 704 '<(lint_stamp)', |
704 ], | 705 ], |
705 'includes': [ 'android/lint_action.gypi' ], | 706 'includes': [ 'android/lint_action.gypi' ], |
706 }, | 707 }, |
707 { | 708 { |
709 'action_name': 'findbugs_<(_target_name)', | |
jbudorick
2015/03/13 13:12:20
moved this into a condition like java.gypi
| |
710 'message': 'Running findbugs on <(_target_name)', | |
711 'variables': { | |
712 'auxclasspath': [ | |
713 '>@(input_jars_paths)', | |
714 '<(android_sdk_jar)', | |
715 ], | |
716 }, | |
717 'inputs': [ | |
718 '<(DEPTH)/build/android/findbugs_diff.py', | |
719 '<(DEPTH)/build/android/findbugs_filter/findbugs_exclude.xml', | |
720 '<(DEPTH)/build/android/pylib/utils/findbugs.py', | |
721 '<(jar_path)', | |
722 '<(compile_stamp)', | |
723 ], | |
724 'outputs': [ | |
725 '<(findbugs_stamp)', | |
726 ], | |
727 'action': [ | |
728 'python', '<(DEPTH)/build/android/findbugs_diff.py', | |
729 '--auxclasspath-gyp', '>(auxclasspath)', | |
730 '--stamp', '<(findbugs_stamp)', | |
731 '<(jar_path)', | |
732 ], | |
733 }, | |
734 { | |
708 'action_name': 'obfuscate_<(_target_name)', | 735 'action_name': 'obfuscate_<(_target_name)', |
709 'message': 'Obfuscating <(_target_name)', | 736 'message': 'Obfuscating <(_target_name)', |
710 'variables': { | 737 'variables': { |
711 'additional_obfuscate_options': [], | 738 'additional_obfuscate_options': [], |
712 'additional_obfuscate_input_paths': [], | 739 'additional_obfuscate_input_paths': [], |
713 'proguard_out_dir': '<(intermediate_dir)/proguard', | 740 'proguard_out_dir': '<(intermediate_dir)/proguard', |
714 'proguard_input_jar_paths': [ | 741 'proguard_input_jar_paths': [ |
715 '>@(input_jars_paths)', | 742 '>@(input_jars_paths)', |
716 '<(jar_path)', | 743 '<(jar_path)', |
717 ], | 744 ], |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
792 { | 819 { |
793 'action_name': 'dex_<(_target_name)', | 820 'action_name': 'dex_<(_target_name)', |
794 'variables': { | 821 'variables': { |
795 'dex_input_paths': [ | 822 'dex_input_paths': [ |
796 '>@(library_dexed_jars_paths)', | 823 '>@(library_dexed_jars_paths)', |
797 '<(jar_path)', | 824 '<(jar_path)', |
798 ], | 825 ], |
799 'output_path': '<(dex_path)', | 826 'output_path': '<(dex_path)', |
800 'proguard_enabled_input_path': '<(obfuscated_jar_path)', | 827 'proguard_enabled_input_path': '<(obfuscated_jar_path)', |
801 }, | 828 }, |
829 'inputs': [ | |
jbudorick
2015/03/13 13:12:20
removed this one too
| |
830 '<(findbugs_stamp)', | |
831 '<(lint_stamp)', | |
832 ], | |
802 'target_conditions': [ | 833 'target_conditions': [ |
803 ['emma_instrument != 0', { | 834 ['emma_instrument != 0', { |
804 'variables': { | 835 'variables': { |
805 'dex_no_locals': 1, | 836 'dex_no_locals': 1, |
806 'dex_input_paths': [ | 837 'dex_input_paths': [ |
807 '<(emma_device_jar)' | 838 '<(emma_device_jar)' |
808 ], | 839 ], |
809 }, | 840 }, |
810 }], | 841 }], |
811 ['is_test_apk == 1 and tested_apk_dex_path != "/"', { | 842 ['is_test_apk == 1 and tested_apk_dex_path != "/"', { |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
926 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 957 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
927 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 958 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
928 | 959 |
929 '-Dbasedir=.', | 960 '-Dbasedir=.', |
930 '-buildfile', | 961 '-buildfile', |
931 '<(DEPTH)/build/android/ant/apk-package.xml', | 962 '<(DEPTH)/build/android/ant/apk-package.xml', |
932 ] | 963 ] |
933 }, | 964 }, |
934 ], | 965 ], |
935 } | 966 } |
OLD | NEW |