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

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

Issue 507523002: Add content_shell_apk target (and a bunch of its dependencies) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix PageTransitionTypes.template path Created 6 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/copy_ex.py ('k') | build/android/gyp/package_resources.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 import fnmatch 7 import fnmatch
8 import optparse 8 import optparse
9 import os 9 import os
10 import shutil 10 import shutil
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 java_files += build_utils.FindInDirectories(src_gendirs, '*.java') 165 java_files += build_utils.FindInDirectories(src_gendirs, '*.java')
166 166
167 input_files = classpath + java_srcjars + java_files 167 input_files = classpath + java_srcjars + java_files
168 with build_utils.TempDir() as temp_dir: 168 with build_utils.TempDir() as temp_dir:
169 classes_dir = os.path.join(temp_dir, 'classes') 169 classes_dir = os.path.join(temp_dir, 'classes')
170 os.makedirs(classes_dir) 170 os.makedirs(classes_dir)
171 if java_srcjars: 171 if java_srcjars:
172 java_dir = os.path.join(temp_dir, 'java') 172 java_dir = os.path.join(temp_dir, 'java')
173 os.makedirs(java_dir) 173 os.makedirs(java_dir)
174 for srcjar in java_srcjars: 174 for srcjar in java_srcjars:
175 build_utils.ExtractAll(srcjar, path=java_dir) 175 build_utils.ExtractAll(srcjar, path=java_dir, pattern='*.java')
176 java_files += build_utils.FindInDirectory(java_dir, '*.java') 176 java_files += build_utils.FindInDirectory(java_dir, '*.java')
177 177
178 if options.javac_includes: 178 if options.javac_includes:
179 javac_includes = build_utils.ParseGypList(options.javac_includes) 179 javac_includes = build_utils.ParseGypList(options.javac_includes)
180 filtered_java_files = [] 180 filtered_java_files = []
181 for f in java_files: 181 for f in java_files:
182 for include in javac_includes: 182 for include in javac_includes:
183 if fnmatch.fnmatch(f, include): 183 if fnmatch.fnmatch(f, include):
184 filtered_java_files.append(f) 184 filtered_java_files.append(f)
185 break 185 break
(...skipping 25 matching lines...) Expand all
211 input_files + build_utils.GetPythonDependencies()) 211 input_files + build_utils.GetPythonDependencies())
212 212
213 if options.stamp: 213 if options.stamp:
214 build_utils.Touch(options.stamp) 214 build_utils.Touch(options.stamp)
215 215
216 216
217 if __name__ == '__main__': 217 if __name__ == '__main__':
218 sys.exit(main(sys.argv[1:])) 218 sys.exit(main(sys.argv[1:]))
219 219
220 220
OLDNEW
« no previous file with comments | « build/android/gyp/copy_ex.py ('k') | build/android/gyp/package_resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698