| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 '<(obfuscate_stamp)', | 273 '<(obfuscate_stamp)', |
| 274 ], | 274 ], |
| 275 'action': [ | 275 'action': [ |
| 276 'ant', '-quiet', | 276 'ant', '-quiet', |
| 277 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', | 277 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', |
| 278 '-DANDROID_SDK_JAR=<(android_sdk_jar)', | 278 '-DANDROID_SDK_JAR=<(android_sdk_jar)', |
| 279 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 279 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
| 280 '-DANDROID_SDK_VERSION=<(android_sdk_version)', | 280 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
| 281 '-DAPK_NAME=<(apk_name)', | 281 '-DAPK_NAME=<(apk_name)', |
| 282 '-DCREATE_TEST_JAR_PATH=<(DEPTH)/build/android/ant/create-test-jar.js', | 282 '-DCREATE_TEST_JAR_PATH=<(DEPTH)/build/android/ant/create-test-jar.js', |
| 283 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
| 283 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', | 284 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', |
| 284 '-DINPUT_JARS_PATHS=>(input_jars_paths)', | 285 '-DINPUT_JARS_PATHS=>(input_jars_paths)', |
| 285 '-DIS_TEST_APK=<(is_test_apk)', | 286 '-DIS_TEST_APK=<(is_test_apk)', |
| 286 '-DJAR_PATH=<(PRODUCT_DIR)/lib.java/<(jar_name)', | 287 '-DJAR_PATH=<(PRODUCT_DIR)/lib.java/<(jar_name)', |
| 287 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)', | 288 '-DOBFUSCATED_JAR_PATH=<(obfuscated_jar_path)', |
| 288 '-DOUT_DIR=<(intermediate_dir)', | 289 '-DOUT_DIR=<(intermediate_dir)', |
| 289 '-DPROGUARD_ENABLED=<(proguard_enabled)', | 290 '-DPROGUARD_ENABLED=<(proguard_enabled)', |
| 290 '-DPROGUARD_FLAGS=<(proguard_flags_path)', | 291 '-DPROGUARD_FLAGS=<(proguard_flags_path)', |
| 291 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', | 292 '-DTEST_JAR_PATH=<(PRODUCT_DIR)/test.lib.java/<(apk_name).jar', |
| 292 | 293 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 388 |
| 388 # Add list of inputs to the command line, so if inputs change | 389 # Add list of inputs to the command line, so if inputs change |
| 389 # (e.g. if a Java file is removed), the command will be re-run. | 390 # (e.g. if a Java file is removed), the command will be re-run. |
| 390 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 391 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
| 391 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 392 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
| 392 | 393 |
| 393 ] | 394 ] |
| 394 }, | 395 }, |
| 395 ], | 396 ], |
| 396 } | 397 } |
| OLD | NEW |