| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 # By default, the package given in AndroidManifest.xml will be used. | 46 # By default, the package given in AndroidManifest.xml will be used. |
| 47 # java_strings_grd - The name of the grd file from which to generate localized | 47 # java_strings_grd - The name of the grd file from which to generate localized |
| 48 # strings.xml files, if any. | 48 # strings.xml files, if any. |
| 49 # library_manifest_paths'- Paths to additional AndroidManifest.xml files from | 49 # library_manifest_paths'- Paths to additional AndroidManifest.xml files from |
| 50 # libraries. | 50 # libraries. |
| 51 | 51 |
| 52 { | 52 { |
| 53 'variables': { | 53 'variables': { |
| 54 'additional_input_paths': [], | 54 'additional_input_paths': [], |
| 55 'input_jars_paths': [], | 55 'input_jars_paths': [], |
| 56 'library_dexed_jars_paths': [], |
| 56 'additional_src_dirs': [], | 57 'additional_src_dirs': [], |
| 57 'generated_src_dirs': [], | 58 'generated_src_dirs': [], |
| 58 'app_manifest_version_name%': '<(android_app_version_name)', | 59 'app_manifest_version_name%': '<(android_app_version_name)', |
| 59 'app_manifest_version_code%': '<(android_app_version_code)', | 60 'app_manifest_version_code%': '<(android_app_version_code)', |
| 60 'proguard_enabled%': 'false', | 61 'proguard_enabled%': 'false', |
| 61 'proguard_flags_path%': '<(DEPTH)/build/android/empty_proguard.flags', | 62 'proguard_flags_path%': '<(DEPTH)/build/android/empty_proguard.flags', |
| 62 'native_libs_paths': [], | 63 'native_libs_paths': [], |
| 63 'jar_name': 'chromium_apk_<(_target_name).jar', | 64 'jar_name': 'chromium_apk_<(_target_name).jar', |
| 64 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', | 65 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', |
| 65 'R_package%':'', | 66 'R_package%':'', |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 }, | 306 }, |
| 306 { | 307 { |
| 307 'action_name': 'dex_<(_target_name)', | 308 'action_name': 'dex_<(_target_name)', |
| 308 'message': 'Dexing <(_target_name) jar', | 309 'message': 'Dexing <(_target_name) jar', |
| 309 'variables': { | 310 'variables': { |
| 310 'conditions': [ | 311 'conditions': [ |
| 311 ['proguard_enabled==1', { | 312 ['proguard_enabled==1', { |
| 312 'dex_inputs': [ '<(obfuscated_jar_path)' ], | 313 'dex_inputs': [ '<(obfuscated_jar_path)' ], |
| 313 }, { | 314 }, { |
| 314 'dex_inputs': [ | 315 'dex_inputs': [ |
| 315 '>@(input_jars_paths)', | 316 '>@(library_dexed_jars_paths)', |
| 316 '<(classes_dir)', | 317 '<(classes_dir)', |
| 317 ], | 318 ], |
| 318 }], | 319 }], |
| 319 ], | 320 ], |
| 320 }, | 321 }, |
| 321 'inputs': [ | 322 'inputs': [ |
| 322 '<(DEPTH)/build/android/pylib/build_utils.py', | 323 '<(DEPTH)/build/android/pylib/build_utils.py', |
| 323 '<(DEPTH)/build/android/dex.py', | 324 '<(DEPTH)/build/android/dex.py', |
| 324 '<(compile_stamp)', | 325 '<(compile_stamp)', |
| 325 '>@(dex_inputs)', | 326 '>@(dex_inputs)', |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 385 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 385 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 386 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 386 | 387 |
| 387 '-Dbasedir=.', | 388 '-Dbasedir=.', |
| 388 '-buildfile', | 389 '-buildfile', |
| 389 '<(DEPTH)/build/android/ant/apk-package.xml', | 390 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 390 ] | 391 ] |
| 391 }, | 392 }, |
| 392 ], | 393 ], |
| 393 } | 394 } |
| OLD | NEW |