1188016590
Mechanically/high-volume-wise this required duplicating some of the build/ and yasm/ build bits, since they're in the main Chrome repo. More messy is the url/ situation: there is a version available, but not completely up-to-date one, in fact one that's older than our base and what we were using from svn, so we need to do weird compatibility massaging. (I've also picked up newest RE2, which required some sync up changes).
54 lines
1.6 KiB
Python
54 lines
1.6 KiB
Python
# Copyright 2013 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# This file is meant to be included into an action to provide a rule that
|
|
# instruments either java class files, or jars.
|
|
|
|
{
|
|
'variables': {
|
|
'instr_type%': 'jar',
|
|
'input_path%': '',
|
|
'output_path%': '',
|
|
'stamp_path%': '',
|
|
'extra_instr_args': [
|
|
'--coverage-file=<(_target_name).em',
|
|
'--sources-file=<(_target_name)_sources.txt',
|
|
],
|
|
'emma_jar': '<(android_sdk_root)/tools/lib/emma.jar',
|
|
'conditions': [
|
|
['emma_instrument != 0', {
|
|
'extra_instr_args': [
|
|
'--sources=<(java_in_dir)/src >(additional_src_dirs) >(generated_src_dirs)',
|
|
'--src-root=<(DEPTH)',
|
|
'--emma-jar=<(emma_jar)',
|
|
'--filter-string=<(emma_filter)',
|
|
],
|
|
'conditions': [
|
|
['instr_type == "jar"', {
|
|
'instr_action': 'instrument_jar',
|
|
}, {
|
|
'instr_action': 'instrument_classes',
|
|
}]
|
|
],
|
|
}, {
|
|
'instr_action': 'copy',
|
|
'extra_instr_args': [],
|
|
}]
|
|
]
|
|
},
|
|
'inputs': [
|
|
'<(DEPTH)/build/android/gyp/emma_instr.py',
|
|
'<(DEPTH)/build/android/gyp/util/build_utils.py',
|
|
'<(DEPTH)/build/android/pylib/utils/command_option_parser.py',
|
|
],
|
|
'action': [
|
|
'python', '<(DEPTH)/build/android/gyp/emma_instr.py',
|
|
'<(instr_action)',
|
|
'--input-path=<(input_path)',
|
|
'--output-path=<(output_path)',
|
|
'--stamp=<(stamp_path)',
|
|
'<@(extra_instr_args)',
|
|
]
|
|
}
|