| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 'variables': { | 764 'variables': { |
| 765 'dex_input_paths': [ | 765 'dex_input_paths': [ |
| 766 '>@(library_dexed_jars_paths)', | 766 '>@(library_dexed_jars_paths)', |
| 767 '<(jar_path)', | 767 '<(jar_path)', |
| 768 ], | 768 ], |
| 769 'output_path': '<(dex_path)', | 769 'output_path': '<(dex_path)', |
| 770 'proguard_enabled_input_path': '<(obfuscated_jar_path)', | 770 'proguard_enabled_input_path': '<(obfuscated_jar_path)', |
| 771 }, | 771 }, |
| 772 'target_conditions': [ | 772 'target_conditions': [ |
| 773 ['emma_instrument != 0', { | 773 ['emma_instrument != 0', { |
| 774 'dex_no_locals': 1, | 774 'variables': { |
| 775 'dex_input_paths': [ | 775 'dex_no_locals': 1, |
| 776 '<(emma_device_jar)' | 776 'dex_input_paths': [ |
| 777 ], | 777 '<(emma_device_jar)' |
| 778 ], |
| 779 }, |
| 778 }], | 780 }], |
| 779 ['is_test_apk == 1 and tested_apk_dex_path != "/"', { | 781 ['is_test_apk == 1 and tested_apk_dex_path != "/"', { |
| 780 'variables': { | 782 'variables': { |
| 781 'dex_additional_options': [ | 783 'dex_additional_options': [ |
| 782 '--excluded-paths-file', '>(tested_apk_dex_path).inputs' | 784 '--excluded-paths-file', '>(tested_apk_dex_path).inputs' |
| 783 ], | 785 ], |
| 784 }, | 786 }, |
| 785 'inputs': [ | 787 'inputs': [ |
| 786 '>(tested_apk_dex_path).inputs', | 788 '>(tested_apk_dex_path).inputs', |
| 787 ], | 789 ], |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 879 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
| 878 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 880 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
| 879 | 881 |
| 880 '-Dbasedir=.', | 882 '-Dbasedir=.', |
| 881 '-buildfile', | 883 '-buildfile', |
| 882 '<(DEPTH)/build/android/ant/apk-package.xml', | 884 '<(DEPTH)/build/android/ant/apk-package.xml', |
| 883 ] | 885 ] |
| 884 }, | 886 }, |
| 885 ], | 887 ], |
| 886 } | 888 } |
| OLD | NEW |