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 112 matching lines...) Loading... |
123 'native_libraries_template_data_file': '<(native_libraries_template_data_dir
)/native_libraries_array.h', | 123 'native_libraries_template_data_file': '<(native_libraries_template_data_dir
)/native_libraries_array.h', |
124 'native_libraries_template_version_file': '<(native_libraries_template_data_
dir)/native_libraries_version.h', | 124 'native_libraries_template_version_file': '<(native_libraries_template_data_
dir)/native_libraries_version.h', |
125 'compile_stamp': '<(intermediate_dir)/compile.stamp', | 125 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
126 'lint_stamp': '<(intermediate_dir)/lint.stamp', | 126 'lint_stamp': '<(intermediate_dir)/lint.stamp', |
127 'lint_result': '<(intermediate_dir)/lint_result.xml', | 127 'lint_result': '<(intermediate_dir)/lint_result.xml', |
128 'lint_config': '<(intermediate_dir)/lint_config.xml', | 128 'lint_config': '<(intermediate_dir)/lint_config.xml', |
129 'never_lint%': 0, | 129 'never_lint%': 0, |
130 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', | 130 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', |
131 'run_findbugs%': 0, | 131 'run_findbugs%': 0, |
132 'java_in_dir_suffix%': '/src', | 132 'java_in_dir_suffix%': '/src', |
133 'instr_stamp': '<(intermediate_dir)/instr.stamp', | 133 'emma_instr_stamp': '<(intermediate_dir)/emma_instr.stamp', |
134 'jar_stamp': '<(intermediate_dir)/jar.stamp', | 134 'jar_stamp': '<(intermediate_dir)/jar.stamp', |
135 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', | 135 'obfuscate_stamp': '<(intermediate_dir)/obfuscate.stamp', |
136 'pack_relocations_stamp': '<(intermediate_dir)/pack_relocations.stamp', | 136 'pack_relocations_stamp': '<(intermediate_dir)/pack_relocations.stamp', |
137 'strip_stamp': '<(intermediate_dir)/strip.stamp', | 137 'strip_stamp': '<(intermediate_dir)/strip.stamp', |
138 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', | 138 'stripped_libraries_dir': '<(intermediate_dir)/stripped_libraries', |
139 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', | 139 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp', |
140 'version_stamp': '<(intermediate_dir)/version.stamp', | 140 'version_stamp': '<(intermediate_dir)/version.stamp', |
141 'javac_includes': [], | 141 'javac_includes': [], |
142 'jar_excluded_classes': [], | 142 'jar_excluded_classes': [], |
143 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', | 143 'javac_jar_path': '<(intermediate_dir)/<(_target_name).javac.jar', |
(...skipping 786 matching lines...) Loading... |
930 }, | 930 }, |
931 { | 931 { |
932 'action_name': 'main_dex_list_for_<(_target_name)', | 932 'action_name': 'main_dex_list_for_<(_target_name)', |
933 'variables': { | 933 'variables': { |
934 'jar_path': '<(javac_jar_path)', | 934 'jar_path': '<(javac_jar_path)', |
935 'output_path': '<(main_dex_list_path)', | 935 'output_path': '<(main_dex_list_path)', |
936 }, | 936 }, |
937 'includes': [ 'android/main_dex_action.gypi' ], | 937 'includes': [ 'android/main_dex_action.gypi' ], |
938 }, | 938 }, |
939 { | 939 { |
940 'action_name': 'instr_jar_<(_target_name)', | 940 'action_name': 'emma_instr_jar_<(_target_name)', |
941 'message': 'Instrumenting <(_target_name) jar', | 941 'message': 'Instrumenting <(_target_name) jar', |
942 'variables': { | 942 'variables': { |
943 'input_path': '<(javac_jar_path)', | 943 'input_path': '<(javac_jar_path)', |
944 'output_path': '<(jar_path)', | 944 'output_path': '<(jar_path)', |
945 'stamp_path': '<(instr_stamp)', | 945 'stamp_path': '<(emma_instr_stamp)', |
946 'instr_type': 'jar', | 946 'instr_type': 'jar', |
947 }, | 947 }, |
948 'outputs': [ | 948 'outputs': [ |
949 '<(instr_stamp)', | 949 '<(emma_instr_stamp)', |
950 '<(jar_path)', | 950 '<(jar_path)', |
951 ], | 951 ], |
952 'inputs': [ | 952 'inputs': [ |
953 '<(javac_jar_path)', | 953 '<(javac_jar_path)', |
954 ], | 954 ], |
955 'includes': [ 'android/instr_action.gypi' ], | 955 'includes': [ 'android/emma_instr_action.gypi' ], |
956 }, | 956 }, |
957 { | 957 { |
958 'variables': { | 958 'variables': { |
959 'src_dirs': [ | 959 'src_dirs': [ |
960 '<(java_in_dir)<(java_in_dir_suffix)', | 960 '<(java_in_dir)<(java_in_dir_suffix)', |
961 '>@(additional_src_dirs)', | 961 '>@(additional_src_dirs)', |
962 ], | 962 ], |
963 'lint_jar_path': '<(jar_path)', | 963 'lint_jar_path': '<(jar_path)', |
964 'stamp_path': '<(lint_stamp)', | 964 'stamp_path': '<(lint_stamp)', |
965 'result_path': '<(lint_result)', | 965 'result_path': '<(lint_result)', |
(...skipping 46 matching lines...) Loading... |
1012 '<(test_jar_path)', | 1012 '<(test_jar_path)', |
1013 ], | 1013 ], |
1014 }], | 1014 }], |
1015 ], | 1015 ], |
1016 'inputs': [ | 1016 'inputs': [ |
1017 '<(DEPTH)/build/android/gyp/apk_obfuscate.py', | 1017 '<(DEPTH)/build/android/gyp/apk_obfuscate.py', |
1018 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 1018 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
1019 '>@(proguard_flags_paths)', | 1019 '>@(proguard_flags_paths)', |
1020 '>@(obfuscate_input_jars_paths)', | 1020 '>@(obfuscate_input_jars_paths)', |
1021 '>@(additional_obfuscate_input_paths)', | 1021 '>@(additional_obfuscate_input_paths)', |
1022 '<(instr_stamp)', | 1022 '<(emma_instr_stamp)', |
1023 ], | 1023 ], |
1024 'outputs': [ | 1024 'outputs': [ |
1025 '<(obfuscate_stamp)', | 1025 '<(obfuscate_stamp)', |
1026 | 1026 |
1027 # In non-Release builds, these paths will all be empty files. | 1027 # In non-Release builds, these paths will all be empty files. |
1028 '<(obfuscated_jar_path)', | 1028 '<(obfuscated_jar_path)', |
1029 '<(obfuscated_jar_path).info', | 1029 '<(obfuscated_jar_path).info', |
1030 '<(obfuscated_jar_path).dump', | 1030 '<(obfuscated_jar_path).dump', |
1031 '<(obfuscated_jar_path).seeds', | 1031 '<(obfuscated_jar_path).seeds', |
1032 '<(obfuscated_jar_path).mapping', | 1032 '<(obfuscated_jar_path).mapping', |
(...skipping 72 matching lines...) Loading... |
1105 '--excluded-paths', '@FileArg(>(tested_apk_dex_path).inputs)' | 1105 '--excluded-paths', '@FileArg(>(tested_apk_dex_path).inputs)' |
1106 ], | 1106 ], |
1107 }, | 1107 }, |
1108 'inputs': [ | 1108 'inputs': [ |
1109 '>(tested_apk_dex_path).inputs', | 1109 '>(tested_apk_dex_path).inputs', |
1110 ], | 1110 ], |
1111 }], | 1111 }], |
1112 ['proguard_enabled == "true"', { | 1112 ['proguard_enabled == "true"', { |
1113 'inputs': [ '<(obfuscate_stamp)' ] | 1113 'inputs': [ '<(obfuscate_stamp)' ] |
1114 }, { | 1114 }, { |
1115 'inputs': [ '<(instr_stamp)' ] | 1115 'inputs': [ '<(emma_instr_stamp)' ] |
1116 }], | 1116 }], |
1117 ], | 1117 ], |
1118 'includes': [ 'android/dex_action.gypi' ], | 1118 'includes': [ 'android/dex_action.gypi' ], |
1119 }, | 1119 }, |
1120 { | 1120 { |
1121 'variables': { | 1121 'variables': { |
1122 'local_dependencies_res_zip_paths': ['>@(dependencies_res_zip_paths)'], | 1122 'local_dependencies_res_zip_paths': ['>@(dependencies_res_zip_paths)'], |
1123 'extra_inputs': ['<(codegen_stamp)'], | 1123 'extra_inputs': ['<(codegen_stamp)'], |
1124 'resource_zips': [ | 1124 'resource_zips': [ |
1125 '<(resource_zip_path)', | 1125 '<(resource_zip_path)', |
(...skipping 24 matching lines...) Loading... |
1150 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1150 'native_libs_dir': '<(apk_package_native_libs_dir)', |
1151 }, { | 1151 }, { |
1152 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1152 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
1153 }], | 1153 }], |
1154 ], | 1154 ], |
1155 }, | 1155 }, |
1156 'includes': ['android/apkbuilder_action.gypi'], | 1156 'includes': ['android/apkbuilder_action.gypi'], |
1157 }, | 1157 }, |
1158 ], | 1158 ], |
1159 } | 1159 } |
OLD | NEW |