OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 # This file is meant to be included into an action to provide a rule that | |
6 # instruments either java class files, or jars. | |
7 | |
8 { | |
9 'variables': { | |
10 'instr_type%': 'jar', | |
11 'input_path%': '', | |
12 'output_path%': '', | |
13 'stamp_path%': '', | |
14 'extra_instr_args': [], | |
15 'conditions': [ | |
16 ['emma_instrument != 0', { | |
17 'extra_instr_args': [ | |
18 '--coverage-file=<(intermediate_dir)/coverage.em', | |
19 '--sources-file=<(intermediate_dir)/emma_sources.txt', | |
20 '--sources=<(java_in_dir)/src >(additional_src_dirs) >(generated_src_d irs)', | |
21 '--src-root=<(DEPTH)', | |
22 '--sdk-root=<(android_sdk_root)', | |
23 '--intermediate-dir=<(intermediate_dir)/emma', | |
24 ], | |
25 'conditions': [ | |
26 ['instr_type == "jar"', { | |
27 'instr_action': 'instrument_jar', | |
28 }, { | |
29 'instr_action': 'instrument_classes', | |
30 }] | |
31 ], | |
32 }, { | |
33 'instr_action': 'copy', | |
34 'extra_instr_args': [], | |
35 }] | |
36 ] | |
37 }, | |
38 'inputs': [ | |
39 '<(DEPTH)/build/android/gyp/emma_instr.py', | |
cjhopman
2013/08/21 17:37:48
Also:
'<(DEPTH)/build/android/gyp/util/build_uti
gkanwar1
2013/08/21 18:28:32
Done.
| |
40 '<(DEPTH)/build/android/pylib/utils/command_option_parser.py', | |
41 ], | |
42 'action': [ | |
43 'python', '<(DEPTH)/build/android/gyp/emma_instr.py', | |
44 '<(instr_action)', | |
45 '--input-path=<(input_path)', | |
46 '--output-path=<(output_path)', | |
47 '--stamp=<(stamp_path)', | |
48 '<@(extra_instr_args)', | |
49 ] | |
50 } | |
OLD | NEW |