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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 'input_paths': [ '<(obfuscate_stamp)' ], | 665 'input_paths': [ '<(obfuscate_stamp)' ], |
666 'proguard_enabled_input_path': '<(obfuscated_jar_path)', | 666 'proguard_enabled_input_path': '<(obfuscated_jar_path)', |
667 }], | 667 }], |
668 ['emma_instrument != 0', { | 668 ['emma_instrument != 0', { |
669 'dex_no_locals': 1, | 669 'dex_no_locals': 1, |
670 }], | 670 }], |
671 ['emma_instrument != 0 and is_test_apk == 0', { | 671 ['emma_instrument != 0 and is_test_apk == 0', { |
672 'dex_input_paths': [ '<(emma_device_jar)' ], | 672 'dex_input_paths': [ '<(emma_device_jar)' ], |
673 }], | 673 }], |
674 ], | 674 ], |
| 675 'input_paths': [ '<(instr_stamp)' ], |
675 'dex_input_paths': [ '>@(library_dexed_jars_paths)' ], | 676 'dex_input_paths': [ '>@(library_dexed_jars_paths)' ], |
676 'dex_generated_input_dirs': [ '<(classes_final_dir)' ], | 677 'dex_generated_input_dirs': [ '<(classes_final_dir)' ], |
677 'output_path': '<(dex_path)', | 678 'output_path': '<(dex_path)', |
678 }, | 679 }, |
679 'inputs': [ '<(instr_stamp)', ], | |
680 'includes': [ 'android/dex_action.gypi' ], | 680 'includes': [ 'android/dex_action.gypi' ], |
681 }, | 681 }, |
682 { | 682 { |
683 'action_name': 'ant package resources', | 683 'action_name': 'ant package resources', |
684 'message': 'Packaging resources for <(_target_name) APK', | 684 'message': 'Packaging resources for <(_target_name) APK', |
685 'inputs': [ | 685 'inputs': [ |
686 '<(DEPTH)/build/android/ant/apk-package-resources.xml', | 686 '<(DEPTH)/build/android/ant/apk-package-resources.xml', |
687 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 687 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
688 '<(DEPTH)/build/android/gyp/ant.py', | 688 '<(DEPTH)/build/android/gyp/ant.py', |
689 '<(android_manifest_path)', | 689 '<(android_manifest_path)', |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 '<(DEPTH)/build/android/ant/apk-package.xml', | 767 '<(DEPTH)/build/android/ant/apk-package.xml', |
768 | 768 |
769 # Add list of inputs to the command line, so if inputs change | 769 # Add list of inputs to the command line, so if inputs change |
770 # (e.g. if a Java file is removed), the command will be re-run. | 770 # (e.g. if a Java file is removed), the command will be re-run. |
771 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. | 771 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
772 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', | 772 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', |
773 ] | 773 ] |
774 }, | 774 }, |
775 ], | 775 ], |
776 } | 776 } |
OLD | NEW |