| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 }], | 134 }], |
| 135 ], | 135 ], |
| 136 'actions': [ | 136 'actions': [ |
| 137 { | 137 { |
| 138 'action_name': 'ant_<(_target_name)', | 138 'action_name': 'ant_<(_target_name)', |
| 139 'message': 'Building <(_target_name).', | 139 'message': 'Building <(_target_name).', |
| 140 'inputs': [ | 140 'inputs': [ |
| 141 '<(java_in_dir)/AndroidManifest.xml', | 141 '<(java_in_dir)/AndroidManifest.xml', |
| 142 '<(DEPTH)/build/android/ant/chromium-apk.xml', | 142 '<(DEPTH)/build/android/ant/chromium-apk.xml', |
| 143 '<(DEPTH)/build/android/ant/common.xml', | 143 '<(DEPTH)/build/android/ant/common.xml', |
| 144 '<(DEPTH)/build/android/ant/sdk-targets.xml', | 144 '<(DEPTH)/build/android/ant/apk-build.xml', |
| 145 # If there is a separate find for additional_src_dirs, it will find the | 145 # If there is a separate find for additional_src_dirs, it will find the |
| 146 # wrong .java files when additional_src_dirs is empty. | 146 # wrong .java files when additional_src_dirs is empty. |
| 147 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")', | 147 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")', |
| 148 '>@(input_jars_paths)', | 148 '>@(input_jars_paths)', |
| 149 '>@(native_libs_paths)', | 149 '>@(native_libs_paths)', |
| 150 '>@(additional_input_paths)', | 150 '>@(additional_input_paths)', |
| 151 ], | 151 ], |
| 152 'conditions': [ | 152 'conditions': [ |
| 153 ['resource_dir!=""', { | 153 ['resource_dir!=""', { |
| 154 'inputs': ['<!@(find <(java_in_dir)/<(resource_dir) -name "*")'] | 154 'inputs': ['<!@(find <(java_in_dir)/<(resource_dir) -name "*")'] |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 '-buildfile', | 212 '-buildfile', |
| 213 '<(DEPTH)/build/android/ant/chromium-apk.xml', | 213 '<(DEPTH)/build/android/ant/chromium-apk.xml', |
| 214 | 214 |
| 215 # Specify CONFIGURATION_NAME as the target for ant to build. The | 215 # Specify CONFIGURATION_NAME as the target for ant to build. The |
| 216 # buildfile will then build the appropriate SDK tools target. | 216 # buildfile will then build the appropriate SDK tools target. |
| 217 '<(CONFIGURATION_NAME)', | 217 '<(CONFIGURATION_NAME)', |
| 218 ] | 218 ] |
| 219 }, | 219 }, |
| 220 ], | 220 ], |
| 221 } | 221 } |
| OLD | NEW |