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

Side by Side Diff: build/android/instr_action.gypi

Issue 23666007: [Android] emma_instr.py now removes any stale *.em/*sources.txt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 3 months 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 | « build/android/gyp/emma_instr.py ('k') | third_party/cacheinvalidation/cacheinvalidation.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 an action to provide a rule that 5 # This file is meant to be included into an action to provide a rule that
6 # instruments either java class files, or jars. 6 # instruments either java class files, or jars.
7 7
8 { 8 {
9 'variables': { 9 'variables': {
10 'instr_type%': 'jar', 10 'instr_type%': 'jar',
11 'input_path%': '', 11 'input_path%': '',
12 'output_path%': '', 12 'output_path%': '',
13 'stamp_path%': '', 13 'stamp_path%': '',
14 'extra_instr_args': [], 14 'extra_instr_args': [
15 '--coverage-file=<(_target_name).em',
16 '--sources-file=<(_target_name)_sources.txt',
17 ],
15 'emma_jar': '<(android_sdk_root)/tools/lib/emma.jar', 18 'emma_jar': '<(android_sdk_root)/tools/lib/emma.jar',
16 'conditions': [ 19 'conditions': [
17 ['emma_instrument != 0', { 20 ['emma_instrument != 0', {
18 'extra_instr_args': [ 21 'extra_instr_args': [
19 '--coverage-file=<(_target_name).em',
20 '--sources-file=<(_target_name)_sources.txt',
21 '--sources=<(java_in_dir)/src >(additional_src_dirs) >(generated_src_d irs)', 22 '--sources=<(java_in_dir)/src >(additional_src_dirs) >(generated_src_d irs)',
22 '--src-root=<(DEPTH)', 23 '--src-root=<(DEPTH)',
23 '--emma-jar=<(emma_jar)', 24 '--emma-jar=<(emma_jar)',
24 ], 25 ],
25 'conditions': [ 26 'conditions': [
26 ['instr_type == "jar"', { 27 ['instr_type == "jar"', {
27 'instr_action': 'instrument_jar', 28 'instr_action': 'instrument_jar',
28 }, { 29 }, {
29 'instr_action': 'instrument_classes', 30 'instr_action': 'instrument_classes',
30 }] 31 }]
(...skipping 11 matching lines...) Expand all
42 ], 43 ],
43 'action': [ 44 'action': [
44 'python', '<(DEPTH)/build/android/gyp/emma_instr.py', 45 'python', '<(DEPTH)/build/android/gyp/emma_instr.py',
45 '<(instr_action)', 46 '<(instr_action)',
46 '--input-path=<(input_path)', 47 '--input-path=<(input_path)',
47 '--output-path=<(output_path)', 48 '--output-path=<(output_path)',
48 '--stamp=<(stamp_path)', 49 '--stamp=<(stamp_path)',
49 '<@(extra_instr_args)', 50 '<@(extra_instr_args)',
50 ] 51 ]
51 } 52 }
OLDNEW
« no previous file with comments | « build/android/gyp/emma_instr.py ('k') | third_party/cacheinvalidation/cacheinvalidation.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698