| 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 'action_name': 'dex_<(_target_name)', | 307 'action_name': 'dex_<(_target_name)', |
| 307 'message': 'Dexing <(_target_name) jar', | 308 'message': 'Dexing <(_target_name) jar', |
| 308 'variables': { | 309 'variables': { |
| 309 'conditions': [ | 310 'conditions': [ |
| 310 ['proguard_enabled==1', { | 311 ['proguard_enabled==1', { |
| 311 'dex_inputs': [ '<(obfuscated_jar_path)' ], | 312 'dex_inputs': [ '<(obfuscated_jar_path)' ], |
| 312 'dex_generated_inputs': [], | 313 'dex_generated_inputs': [], |
| 313 }, { | 314 }, { |
| 314 'dex_inputs': [ | 315 'dex_inputs': [ |
| 315 '>@(input_jars_paths)', | 316 '>@(library_dexed_jars_paths)', |
| 316 ], | 317 ], |
| 317 'dex_generated_inputs': [ | 318 'dex_generated_inputs': [ |
| 318 '<(classes_dir)', | 319 '<(classes_dir)', |
| 319 ], | 320 ], |
| 320 }], | 321 }], |
| 321 ], | 322 ], |
| 322 }, | 323 }, |
| 323 'inputs': [ | 324 'inputs': [ |
| 324 '<(DEPTH)/build/android/pylib/build_utils.py', | 325 '<(DEPTH)/build/android/pylib/build_utils.py', |
| 325 '<(DEPTH)/build/android/dex.py', | 326 '<(DEPTH)/build/android/dex.py', |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 389 |
| 389 # Add list of inputs to the command line, so if inputs change | 390 # Add list of inputs to the command line, so if inputs change |
| 390 # (e.g. if a Java file is removed), the command will be re-run. | 391 # (e.g. if a Java file is removed), the command will be re-run. |
| 391 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 392 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 392 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 393 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 393 | 394 |
| 394 ] | 395 ] |
| 395 }, | 396 }, |
| 396 ], | 397 ], |
| 397 } | 398 } |
| OLD | NEW |