OLD | NEW |
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__), '..') | 12 from util import build_utils |
13 sys.path.append(BUILD_ANDROID_DIR) | |
14 | 13 |
15 from pylib import build_utils | |
16 | 14 |
17 def DoJavac(options): | 15 def DoJavac(options): |
18 output_dir = options.output_dir | 16 output_dir = options.output_dir |
19 | 17 |
20 src_dirs = build_utils.ParseGypList(options.src_dirs) | 18 src_dirs = build_utils.ParseGypList(options.src_dirs) |
21 java_files = build_utils.FindInDirectories(src_dirs, '*.java') | 19 java_files = build_utils.FindInDirectories(src_dirs, '*.java') |
22 if options.javac_includes: | 20 if options.javac_includes: |
23 javac_includes = build_utils.ParseGypList(options.javac_includes) | 21 javac_includes = build_utils.ParseGypList(options.javac_includes) |
24 filtered_java_files = [] | 22 filtered_java_files = [] |
25 for f in java_files: | 23 for f in java_files: |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 DoJavac(options) | 79 DoJavac(options) |
82 | 80 |
83 if options.stamp: | 81 if options.stamp: |
84 build_utils.Touch(options.stamp) | 82 build_utils.Touch(options.stamp) |
85 | 83 |
86 | 84 |
87 if __name__ == '__main__': | 85 if __name__ == '__main__': |
88 sys.exit(main(sys.argv)) | 86 sys.exit(main(sys.argv)) |
89 | 87 |
90 | 88 |
OLD | NEW |