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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 'extra_native_libs': [], | 155 'extra_native_libs': [], |
156 'apk_dex_input_paths': [ '>@(library_dexed_jars_paths)' ], | 156 'apk_dex_input_paths': [ '>@(library_dexed_jars_paths)' ], |
157 }, | 157 }, |
158 # Pass the jar path to the apk's "fake" jar target. This would be better as | 158 # Pass the jar path to the apk's "fake" jar target. This would be better as |
159 # direct_dependent_settings, but a variable set by a direct_dependent_settings | 159 # direct_dependent_settings, but a variable set by a direct_dependent_settings |
160 # cannot be lifted in a dependent to all_dependent_settings. | 160 # cannot be lifted in a dependent to all_dependent_settings. |
161 'all_dependent_settings': { | 161 'all_dependent_settings': { |
162 'conditions': [ | 162 'conditions': [ |
163 ['proguard_enabled == "true"', { | 163 ['proguard_enabled == "true"', { |
164 'variables': { | 164 'variables': { |
165 'proguard_enabled': 'true', | 165 #'proguard_enabled': 'true', |
166 } | 166 } |
167 }], | 167 }], |
168 ], | 168 ], |
169 'variables': { | 169 'variables': { |
170 'apk_output_jar_path': '<(jar_path)', | 170 'apk_output_jar_path': '<(jar_path)', |
171 'tested_apk_obfuscated_jar_path': '<(obfuscated_jar_path)', | 171 'tested_apk_obfuscated_jar_path': '<(obfuscated_jar_path)', |
172 'tested_apk_dex_path': '<(dex_path)', | 172 'tested_apk_dex_path': '<(dex_path)', |
173 }, | 173 }, |
174 }, | 174 }, |
175 'conditions': [ | 175 'conditions': [ |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 'target_conditions': [ | 706 'target_conditions': [ |
707 ['emma_instrument != 0', { | 707 ['emma_instrument != 0', { |
708 'dex_no_locals': 1, | 708 'dex_no_locals': 1, |
709 'dex_input_paths': [ | 709 'dex_input_paths': [ |
710 '<(emma_device_jar)' | 710 '<(emma_device_jar)' |
711 ], | 711 ], |
712 }], | 712 }], |
713 ['is_test_apk == 1 and tested_apk_dex_path != "/"', { | 713 ['is_test_apk == 1 and tested_apk_dex_path != "/"', { |
714 'variables': { | 714 'variables': { |
715 'dex_additional_options': [ | 715 'dex_additional_options': [ |
716 '--excluded-paths-file', '>(tested_apk_dex_path).inputs' | 716 #'--excluded-paths-file', '>(tested_apk_dex_path).inputs' |
717 ], | 717 ], |
718 }, | 718 }, |
719 'inputs': [ | 719 'inputs': [ |
720 '>(tested_apk_dex_path).inputs', | 720 '>(tested_apk_dex_path).inputs', |
721 ], | 721 ], |
722 }], | 722 }], |
723 ['proguard_enabled == "true"', { | 723 ['proguard_enabled == "true"', { |
724 'inputs': [ '<(obfuscate_stamp)' ] | 724 'inputs': [ '<(obfuscate_stamp)' ] |
725 }, { | 725 }, { |
726 'inputs': [ '<(instr_stamp)' ] | 726 'inputs': [ '<(instr_stamp)' ] |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 811 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
812 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 812 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
813 | 813 |
814 '-Dbasedir=.', | 814 '-Dbasedir=.', |
815 '-buildfile', | 815 '-buildfile', |
816 '<(DEPTH)/build/android/ant/apk-package.xml', | 816 '<(DEPTH)/build/android/ant/apk-package.xml', |
817 ] | 817 ] |
818 }, | 818 }, |
819 ], | 819 ], |
820 } | 820 } |
OLD | NEW |