| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 '<(DEPTH)/base/base.gyp:chromium_android_linker', | 182 '<(DEPTH)/base/base.gyp:chromium_android_linker', |
| 183 ], | 183 ], |
| 184 }], | 184 }], |
| 185 ['native_lib_target != ""', { | 185 ['native_lib_target != ""', { |
| 186 'variables': { | 186 'variables': { |
| 187 'generated_src_dirs': [ '<(native_libraries_java_dir)' ], | 187 'generated_src_dirs': [ '<(native_libraries_java_dir)' ], |
| 188 'native_libs_paths': [ | 188 'native_libs_paths': [ |
| 189 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)' | 189 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)' |
| 190 ], | 190 ], |
| 191 'package_input_paths': [ | 191 'package_input_paths': [ |
| 192 '<(apk_package_native_libs_dir)/<(android_app_abi)/gdbserver', | 192 '<(apk_package_native_libs_dir)/<(android_app_abi)/<(android_gdbserver
_executable)', |
| 193 ], | 193 ], |
| 194 }, | 194 }, |
| 195 'copies': [ | 195 'copies': [ |
| 196 { | 196 { |
| 197 # gdbserver is always copied into the APK's native libs dir. The ant | 197 # gdbserver is always copied into the APK's native libs dir. The ant |
| 198 # build scripts (apkbuilder task) will only include it in a debug | 198 # build scripts (apkbuilder task) will only include it in a debug |
| 199 # build. | 199 # build. |
| 200 'destination': '<(apk_package_native_libs_dir)/<(android_app_abi)', | 200 'destination': '<(apk_package_native_libs_dir)/<(android_app_abi)', |
| 201 'files': [ | 201 'files': [ |
| 202 '<(android_gdbserver)', | 202 '<(android_gdbserver)', |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 '<(DEPTH)/build/android/ant/apk-package.xml', | 760 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 761 | 761 |
| 762 # Add list of inputs to the command line, so if inputs change | 762 # Add list of inputs to the command line, so if inputs change |
| 763 # (e.g. if a Java file is removed), the command will be re-run. | 763 # (e.g. if a Java file is removed), the command will be re-run. |
| 764 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 764 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 765 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 765 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 766 ] | 766 ] |
| 767 }, | 767 }, |
| 768 ], | 768 ], |
| 769 } | 769 } |
| OLD | NEW |