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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 138 } |
139 }], | 139 }], |
140 ['proguard_enabled == "true" and proguard_flags != ""', { | 140 ['proguard_enabled == "true" and proguard_flags != ""', { |
141 'inputs': ['<(java_in_dir)/<(proguard_flags)'] | 141 'inputs': ['<(java_in_dir)/<(proguard_flags)'] |
142 }] | 142 }] |
143 ], | 143 ], |
144 'outputs': [ | 144 'outputs': [ |
145 '<(PRODUCT_DIR)/apks/<(apk_name).apk', | 145 '<(PRODUCT_DIR)/apks/<(apk_name).apk', |
146 ], | 146 ], |
147 'action': [ | 147 'action': [ |
148 'ant', | 148 'ant', '-quiet', |
149 '-DAPP_ABI=<(android_app_abi)', | 149 '-DAPP_ABI=<(android_app_abi)', |
150 '-DANDROID_GDBSERVER=<(android_gdbserver)', | 150 '-DANDROID_GDBSERVER=<(android_gdbserver)', |
151 '-DANDROID_SDK=<(android_sdk)', | 151 '-DANDROID_SDK=<(android_sdk)', |
152 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 152 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
153 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 153 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
154 '-DANDROID_SDK_VERSION=<(android_sdk_version)', | 154 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
155 '-DANDROID_TOOLCHAIN=<(android_toolchain)', | 155 '-DANDROID_TOOLCHAIN=<(android_toolchain)', |
156 '-DCHROMIUM_SRC=<(ant_build_out)/../..', | 156 '-DCHROMIUM_SRC=<(ant_build_out)/../..', |
157 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 157 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
158 '-DPRODUCT_DIR=<(ant_build_out)', | 158 '-DPRODUCT_DIR=<(ant_build_out)', |
(...skipping 27 matching lines...) Expand all Loading... |
186 ['R_package != ""', { | 186 ['R_package != ""', { |
187 'variables': { | 187 'variables': { |
188 # We generate R.java in package R_package (in addition to the package | 188 # We generate R.java in package R_package (in addition to the package |
189 # listed in the AndroidManifest.xml, which is unavoidable). | 189 # listed in the AndroidManifest.xml, which is unavoidable). |
190 'additional_res_dirs': ['<(DEPTH)/build/android/ant/empty/res'], | 190 'additional_res_dirs': ['<(DEPTH)/build/android/ant/empty/res'], |
191 'additional_res_packages': ['<(R_package)'], | 191 'additional_res_packages': ['<(R_package)'], |
192 }, | 192 }, |
193 }], | 193 }], |
194 ], | 194 ], |
195 } | 195 } |
OLD | NEW |