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

Side by Side Diff: build/android/gyp/emma_instr.py

Issue 2336173003: Fix android depfiles to always list GN's outputs[0] (Closed)
Patch Set: fix cronet_package Created 4 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
« no previous file with comments | « build/android/gyp/create_test_runner_script.py ('k') | build/android/gyp/find_sun_tools_jar.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Instruments classes and jar files. 7 """Instruments classes and jar files.
8 8
9 This script corresponds to the 'emma_instr' action in the java build process. 9 This script corresponds to the 'emma_instr' action in the java build process.
10 Depending on whether emma_instrument is set, the 'emma_instr' action will either 10 Depending on whether emma_instrument is set, the 'emma_instr' action will either
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 os.remove(options.coverage_file) 93 os.remove(options.coverage_file)
94 if os.path.exists(options.sources_list_file): 94 if os.path.exists(options.sources_list_file):
95 os.remove(options.sources_list_file) 95 os.remove(options.sources_list_file)
96 96
97 shutil.copy(options.input_path, options.output_path) 97 shutil.copy(options.input_path, options.output_path)
98 98
99 if options.stamp: 99 if options.stamp:
100 build_utils.Touch(options.stamp) 100 build_utils.Touch(options.stamp)
101 101
102 if options.depfile: 102 if options.depfile:
103 build_utils.WriteDepfile(options.depfile, 103 build_utils.WriteDepfile(options.depfile, options.output_path)
104 build_utils.GetPythonDependencies())
105 104
106 105
107 def _GetSourceDirsFromSourceFiles(source_files): 106 def _GetSourceDirsFromSourceFiles(source_files):
108 """Returns list of directories for the files in |source_files|. 107 """Returns list of directories for the files in |source_files|.
109 108
110 Args: 109 Args:
111 source_files: List of source files. 110 source_files: List of source files.
112 111
113 Returns: 112 Returns:
114 List of source directories. 113 List of source directories.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 231
233 232
234 def main(): 233 def main():
235 option_parser = command_option_parser.CommandOptionParser( 234 option_parser = command_option_parser.CommandOptionParser(
236 commands_dict=VALID_COMMANDS) 235 commands_dict=VALID_COMMANDS)
237 command_option_parser.ParseAndExecute(option_parser) 236 command_option_parser.ParseAndExecute(option_parser)
238 237
239 238
240 if __name__ == '__main__': 239 if __name__ == '__main__':
241 sys.exit(main()) 240 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/gyp/create_test_runner_script.py ('k') | build/android/gyp/find_sun_tools_jar.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698