| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', | 206 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', |
| 207 'unsigned_apk_path': '<(unsigned_apk_path)', | 207 'unsigned_apk_path': '<(unsigned_apk_path)', |
| 208 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', | 208 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', |
| 209 'create_abi_split%': '<(create_abi_split)', | 209 'create_abi_split%': '<(create_abi_split)', |
| 210 'managed_input_apk_path': '<(managed_input_apk_path)', | 210 'managed_input_apk_path': '<(managed_input_apk_path)', |
| 211 'libchromium_android_linker': 'libchromium_android_linker.>(android_product_
extension)', | 211 'libchromium_android_linker': 'libchromium_android_linker.>(android_product_
extension)', |
| 212 'extra_native_libs': [], | 212 'extra_native_libs': [], |
| 213 'native_lib_placeholder_stamp': '<(apk_package_native_libs_dir)/<(android_ap
p_abi)/native_lib_placeholder.stamp', | 213 'native_lib_placeholder_stamp': '<(apk_package_native_libs_dir)/<(android_ap
p_abi)/native_lib_placeholder.stamp', |
| 214 'native_lib_placeholders': [], | 214 'native_lib_placeholders': [], |
| 215 'main_apk_name': '<(apk_name)', | 215 'main_apk_name': '<(apk_name)', |
| 216 'enable_errorprone%': '0', | 216 'conditions': [ |
| 217 ['chromium_code == 0', { |
| 218 'enable_errorprone': 0, |
| 219 }], |
| 220 ], |
| 221 'enable_errorprone%': 0, |
| 217 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', | 222 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', |
| 218 }, | 223 }, |
| 219 # Pass the jar path to the apk's "fake" jar target. This would be better as | 224 # Pass the jar path to the apk's "fake" jar target. This would be better as |
| 220 # direct_dependent_settings, but a variable set by a direct_dependent_settings | 225 # direct_dependent_settings, but a variable set by a direct_dependent_settings |
| 221 # cannot be lifted in a dependent to all_dependent_settings. | 226 # cannot be lifted in a dependent to all_dependent_settings. |
| 222 'all_dependent_settings': { | 227 'all_dependent_settings': { |
| 223 'conditions': [ | 228 'conditions': [ |
| 224 ['proguard_enabled == "true"', { | 229 ['proguard_enabled == "true"', { |
| 225 'variables': { | 230 'variables': { |
| 226 'proguard_enabled': 'true', | 231 'proguard_enabled': 'true', |
| (...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1071 'native_libs_dir': '<(apk_package_native_libs_dir)', |
| 1067 }, { | 1072 }, { |
| 1068 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1073 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
| 1069 }], | 1074 }], |
| 1070 ], | 1075 ], |
| 1071 }, | 1076 }, |
| 1072 'includes': ['android/apkbuilder_action.gypi'], | 1077 'includes': ['android/apkbuilder_action.gypi'], |
| 1073 }, | 1078 }, |
| 1074 ], | 1079 ], |
| 1075 } | 1080 } |
| OLD | NEW |