| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 ['resource_dir!=""', { | 191 ['resource_dir!=""', { |
| 192 'variables': { | 192 'variables': { |
| 193 'resource_input_paths': [ '<!@(find <(resource_dir) -name "*")' ] | 193 'resource_input_paths': [ '<!@(find <(resource_dir) -name "*")' ] |
| 194 }, | 194 }, |
| 195 }], | 195 }], |
| 196 ['R_package != ""', { | 196 ['R_package != ""', { |
| 197 'variables': { | 197 'variables': { |
| 198 # We generate R.java in package R_package (in addition to the package | 198 # We generate R.java in package R_package (in addition to the package |
| 199 # listed in the AndroidManifest.xml, which is unavoidable). | 199 # listed in the AndroidManifest.xml, which is unavoidable). |
| 200 'additional_res_packages': ['<(R_package)'], | 200 'additional_res_packages': ['<(R_package)'], |
| 201 'additional_R_text_files': ['<(PRODUCT_DIR)/<(package_name)/R.txt'], | 201 'additional_R_text_files': ['<(intermediate_dir)/R.txt'], |
| 202 }, | 202 }, |
| 203 }], | 203 }], |
| 204 ['native_lib_target != "" and component == "shared_library"', { | 204 ['native_lib_target != "" and component == "shared_library"', { |
| 205 'dependencies': [ | 205 'dependencies': [ |
| 206 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', | 206 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', |
| 207 ], | 207 ], |
| 208 }], | 208 }], |
| 209 ['use_chromium_linker == 1', { | 209 ['use_chromium_linker == 1', { |
| 210 'dependencies': [ | 210 'dependencies': [ |
| 211 '<(DEPTH)/base/base.gyp:chromium_android_linker', | 211 '<(DEPTH)/base/base.gyp:chromium_android_linker', |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 879 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
| 880 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 880 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
| 881 | 881 |
| 882 '-Dbasedir=.', | 882 '-Dbasedir=.', |
| 883 '-buildfile', | 883 '-buildfile', |
| 884 '<(DEPTH)/build/android/ant/apk-package.xml', | 884 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 885 ] | 885 ] |
| 886 }, | 886 }, |
| 887 ], | 887 ], |
| 888 } | 888 } |
| OLD | NEW |