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

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

Issue 13432002: Add input content checking to some build scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 sys 10 import sys
11 11
12 BUILD_ANDROID_DIR = os.path.join(os.path.dirname(__file__), '..')
Yaron 2013/04/03 22:05:35 Unused?
cjhopman 2013/04/03 22:17:56 Nope, the imported pylib below is in BUILD_ANDROID
13 sys.path.append(BUILD_ANDROID_DIR)
14
12 from pylib import build_utils 15 from pylib import build_utils
13 16
14 def DoJavac(options): 17 def DoJavac(options):
15 output_dir = options.output_dir 18 output_dir = options.output_dir
16 19
17 src_dirs = build_utils.ParseGypList(options.src_dirs) 20 src_dirs = build_utils.ParseGypList(options.src_dirs)
18 java_files = build_utils.FindInDirectories(src_dirs, '*.java') 21 java_files = build_utils.FindInDirectories(src_dirs, '*.java')
19 if options.javac_includes: 22 if options.javac_includes:
20 javac_includes = build_utils.ParseGypList(options.javac_includes) 23 javac_includes = build_utils.ParseGypList(options.javac_includes)
21 filtered_java_files = [] 24 filtered_java_files = []
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 DoJavac(options) 81 DoJavac(options)
79 82
80 if options.stamp: 83 if options.stamp:
81 build_utils.Touch(options.stamp) 84 build_utils.Touch(options.stamp)
82 85
83 86
84 if __name__ == '__main__': 87 if __name__ == '__main__':
85 sys.exit(main(sys.argv)) 88 sys.exit(main(sys.argv))
86 89
87 90
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698