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 optparse | 7 import optparse |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 proguard.outjar(options.output_path) | 54 proguard.outjar(options.output_path) |
55 | 55 |
56 if options.mapping: | 56 if options.mapping: |
57 proguard.mapping(options.mapping) | 57 proguard.mapping(options.mapping) |
58 | 58 |
59 if options.tested_apk_info: | 59 if options.tested_apk_info: |
60 proguard.tested_apk_info(options.tested_apk_info) | 60 proguard.tested_apk_info(options.tested_apk_info) |
61 | 61 |
62 classpath = list(set(options.classpath)) | 62 classpath = list(set(options.classpath)) |
63 proguard.libraryjars(classpath) | 63 proguard.libraryjars(classpath) |
| 64 proguard.verbose(options.verbose) |
64 | 65 |
65 input_paths = proguard.GetInputs() | 66 input_paths = proguard.GetInputs() |
66 | 67 |
67 build_utils.CallAndWriteDepfileIfStale( | 68 build_utils.CallAndWriteDepfileIfStale( |
68 lambda: proguard.CheckOutput(options.verbose), | 69 proguard.CheckOutput, |
69 options, | 70 options, |
70 input_paths=input_paths, | 71 input_paths=input_paths, |
71 input_strings=proguard.build(), | 72 input_strings=proguard.build(), |
72 output_paths=[options.output_path]) | 73 output_paths=[options.output_path]) |
73 | 74 |
74 | 75 |
75 if __name__ == '__main__': | 76 if __name__ == '__main__': |
76 sys.exit(main(sys.argv[1:])) | 77 sys.exit(main(sys.argv[1:])) |
OLD | NEW |