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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 'variables': { | 279 'variables': { |
280 'apk_output_jar_path': '<(jar_path)', | 280 'apk_output_jar_path': '<(jar_path)', |
281 }, | 281 }, |
282 }, | 282 }, |
283 'conditions': [ | 283 'conditions': [ |
284 ['resource_dir!=""', { | 284 ['resource_dir!=""', { |
285 'variables': { | 285 'variables': { |
286 'resource_input_paths': [ '<!@(find <(resource_dir) -name "*")' ] | 286 'resource_input_paths': [ '<!@(find <(resource_dir) -name "*")' ] |
287 }, | 287 }, |
288 }], | 288 }], |
289 ['R_package != ""', { | |
290 'variables': { | |
291 # We generate R.java in package R_package (in addition to the package | |
292 # listed in the AndroidManifest.xml, which is unavoidable). | |
293 'additional_res_packages': ['<(R_package)'], | |
294 'additional_R_text_files': ['<(intermediate_dir)/R.txt'], | |
295 }, | |
296 }], | |
297 ['native_lib_target != "" and android_must_copy_system_libraries == 1', { | 289 ['native_lib_target != "" and android_must_copy_system_libraries == 1', { |
298 'dependencies': [ | 290 'dependencies': [ |
299 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', | 291 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', |
300 ], | 292 ], |
301 }], | 293 }], |
302 ['use_chromium_linker == 1', { | 294 ['use_chromium_linker == 1', { |
303 'dependencies': [ | 295 'dependencies': [ |
304 '<(DEPTH)/base/base.gyp:chromium_android_linker', | 296 '<(DEPTH)/base/base.gyp:chromium_android_linker', |
305 ], | 297 ], |
306 }], | 298 }], |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 'native_libs_dir': '<(apk_package_native_libs_dir)', | 1233 'native_libs_dir': '<(apk_package_native_libs_dir)', |
1242 }, { | 1234 }, { |
1243 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', | 1235 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', |
1244 }], | 1236 }], |
1245 ], | 1237 ], |
1246 }, | 1238 }, |
1247 'includes': ['android/apkbuilder_action.gypi'], | 1239 'includes': ['android/apkbuilder_action.gypi'], |
1248 }, | 1240 }, |
1249 ], | 1241 ], |
1250 } | 1242 } |
OLD | NEW |