Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Side by Side Diff: build/java_apk.gypi

Issue 48363006: [Android] Exclude test apks's from emma coverage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp', 115 'apk_install_record': '<(intermediate_dir)/apk_install.record.stamp',
116 'device_intermediate_dir': '/data/local/tmp/chromium/<(_target_name)/<(CONFI GURATION_NAME)', 116 'device_intermediate_dir': '/data/local/tmp/chromium/<(_target_name)/<(CONFI GURATION_NAME)',
117 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh', 117 'symlink_script_host_path': '<(intermediate_dir)/create_symlinks.sh',
118 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh ', 118 'symlink_script_device_path': '<(device_intermediate_dir)/create_symlinks.sh ',
119 'create_standalone_apk%': 1, 119 'create_standalone_apk%': 1,
120 'variables': { 120 'variables': {
121 'variables': { 121 'variables': {
122 'native_lib_target%': '', 122 'native_lib_target%': '',
123 'use_content_linker%': 0, 123 'use_content_linker%': 0,
124 'enable_content_linker_tests%': 0, 124 'enable_content_linker_tests%': 0,
125 'is_test_apk%': 0,
125 }, 126 },
126 'conditions': [ 127 'conditions': [
127 ['gyp_managed_install == 1 and native_lib_target != ""', { 128 ['gyp_managed_install == 1 and native_lib_target != ""', {
128 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-stand alone-unsigned.apk', 129 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-stand alone-unsigned.apk',
129 }, { 130 }, {
130 'unsigned_standalone_apk_path': '<(unsigned_apk_path)', 131 'unsigned_standalone_apk_path': '<(unsigned_apk_path)',
131 }], 132 }],
132 ['gyp_managed_install == 1', { 133 ['gyp_managed_install == 1', {
133 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed', 134 'apk_package_native_libs_dir': '<(intermediate_dir)/libs.managed',
134 }, { 135 }, {
135 'apk_package_native_libs_dir': '<(intermediate_dir)/libs', 136 'apk_package_native_libs_dir': '<(intermediate_dir)/libs',
136 }], 137 }],
138 ['is_test_apk == 0 and emma_coverage != 0', {
139 'emma_instrument': 1,
140 },{
141 'emma_instrument': 0,
142 }],
137 ], 143 ],
138 }, 144 },
139 'native_lib_target%': '', 145 'native_lib_target%': '',
140 'use_content_linker%': 0, 146 'use_content_linker%': 0,
141 'enable_content_linker_tests%': 0, 147 'enable_content_linker_tests%': 0,
142 'emma_instrument': '<(emma_coverage)', 148 'emma_instrument': '<(emma_instrument)',
143 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', 149 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
144 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', 150 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
145 'extra_native_libs': [], 151 'extra_native_libs': [],
146 }, 152 },
147 # Pass the jar path to the apk's "fake" jar target. This would be better as 153 # Pass the jar path to the apk's "fake" jar target. This would be better as
148 # direct_dependent_settings, but a variable set by a direct_dependent_settings 154 # direct_dependent_settings, but a variable set by a direct_dependent_settings
149 # cannot be lifted in a dependent to all_dependent_settings. 155 # cannot be lifted in a dependent to all_dependent_settings.
150 'all_dependent_settings': { 156 'all_dependent_settings': {
151 'variables': { 157 'variables': {
152 'apk_output_jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', 158 'apk_output_jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)',
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 '<(DEPTH)/build/android/ant/apk-package.xml', 742 '<(DEPTH)/build/android/ant/apk-package.xml',
737 743
738 # Add list of inputs to the command line, so if inputs change 744 # Add list of inputs to the command line, so if inputs change
739 # (e.g. if a Java file is removed), the command will be re-run. 745 # (e.g. if a Java file is removed), the command will be re-run.
740 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. 746 # TODO(newt): remove this once crbug.com/177552 is fixed in ninja.
741 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)', 747 '-DTHIS_IS_IGNORED=>!(echo \'>(_inputs)\' | md5sum)',
742 ] 748 ]
743 }, 749 },
744 ], 750 ],
745 } 751 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698