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
3 # found in the LICENSE file.
5 # This file is meant to be included into an action to provide a rule that
6 # instruments either java class files, or jars.
14 'extra_instr_args': [],
15 'emma_jar': '<(android_sdk_root)/tools/lib/emma.jar',
17 ['emma_instrument != 0', {
19 '--coverage-file=<(_target_name).em',
20 '--sources-file=<(_target_name)_sources.txt',
21 '--sources=<(java_in_dir)/src >(additional_src_dirs) >(generated_src_dirs)',
22 '--src-root=<(DEPTH)',
23 '--emma-jar=<(emma_jar)',
26 ['instr_type == "jar"', {
27 'instr_action': 'instrument_jar',
29 'instr_action': 'instrument_classes',
33 'instr_action': 'copy',
34 'extra_instr_args': [],
39 '<(DEPTH)/build/android/gyp/emma_instr.py',
40 '<(DEPTH)/build/android/gyp/util/build_utils.py',
41 '<(DEPTH)/build/android/pylib/utils/command_option_parser.py',
44 'python', '<(DEPTH)/build/android/gyp/emma_instr.py',
46 '--input-path=<(input_path)',
47 '--output-path=<(output_path)',
48 '--stamp=<(stamp_path)',
49 '<@(extra_instr_args)',