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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 ], | 364 ], |
365 'action': [ | 365 'action': [ |
366 'python', '<(DEPTH)/build/android/gyp/apk_install.py', | 366 'python', '<(DEPTH)/build/android/gyp/apk_install.py', |
367 '--apk-path=<(incomplete_apk_path)', | 367 '--apk-path=<(incomplete_apk_path)', |
368 '--build-device-configuration=<(build_device_config_path)', | 368 '--build-device-configuration=<(build_device_config_path)', |
369 '--install-record=<(apk_install_record)', | 369 '--install-record=<(apk_install_record)', |
370 ], | 370 ], |
371 }, | 371 }, |
372 ], | 372 ], |
373 }], | 373 }], |
| 374 ['is_test_apk == 1', { |
| 375 'dependencies': [ |
| 376 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', |
| 377 ] |
| 378 }], |
374 ], | 379 ], |
375 'actions': [ | 380 'actions': [ |
376 { | 381 { |
377 'action_name': 'ant_codegen_<(_target_name)', | 382 'action_name': 'ant_codegen_<(_target_name)', |
378 'message': 'Generating R.java for <(_target_name)', | 383 'message': 'Generating R.java for <(_target_name)', |
379 'conditions': [ | 384 'conditions': [ |
380 ['is_test_apk == 1', { | 385 ['is_test_apk == 1', { |
381 'variables': { | 386 'variables': { |
382 'additional_res_dirs=': [], | 387 'additional_res_dirs=': [], |
383 'additional_res_packages=': [], | 388 'additional_res_packages=': [], |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 '<(DEPTH)/build/android/ant/apk-package.xml', | 636 '<(DEPTH)/build/android/ant/apk-package.xml', |
632 | 637 |
633 # Add list of inputs to the command line, so if inputs change | 638 # Add list of inputs to the command line, so if inputs change |
634 # (e.g. if a Java file is removed), the command will be re-run. | 639 # (e.g. if a Java file is removed), the command will be re-run. |
635 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 640 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
636 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 641 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
637 ] | 642 ] |
638 }, | 643 }, |
639 ], | 644 ], |
640 } | 645 } |
OLD | NEW |