| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2016 The Chromium Authors. All rights reserved. | 3 # Copyright 2016 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 argparse | 7 import argparse |
| 8 import os | 8 import os |
| 9 import shutil | 9 import shutil |
| 10 import sys | 10 import sys |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 help='Jar input path to include .class files from.') | 45 help='Jar input path to include .class files from.') |
| 46 parser.add_argument('--output-jar', required=True, | 46 parser.add_argument('--output-jar', required=True, |
| 47 help='Jar output path.') | 47 help='Jar output path.') |
| 48 parser.add_argument('--classpath', required=True, | 48 parser.add_argument('--classpath', required=True, |
| 49 help='Classpath.') | 49 help='Classpath.') |
| 50 parser.add_argument('--android-sdk-jar', required=True, | 50 parser.add_argument('--android-sdk-jar', required=True, |
| 51 help='Android sdk jar path.') | 51 help='Android sdk jar path.') |
| 52 options = parser.parse_args(args) | 52 options = parser.parse_args(args) |
| 53 | 53 |
| 54 options.classpath = build_utils.ParseGnList(options.classpath) | 54 options.classpath = build_utils.ParseGnList(options.classpath) |
| 55 input_paths = options.classpath + [options.input_jar] | 55 input_paths = options.classpath + [options.input_jar, |
| 56 options.android_sdk_jar] |
| 56 output_paths = [options.output_jar] | 57 output_paths = [options.output_jar] |
| 57 | 58 |
| 58 build_utils.CallAndWriteDepfileIfStale( | 59 build_utils.CallAndWriteDepfileIfStale( |
| 59 lambda: _OnStaleMd5(options.input_jar, options.output_jar, | 60 lambda: _OnStaleMd5(options.input_jar, options.output_jar, |
| 60 options.classpath, options.android_sdk_jar), | 61 options.classpath, options.android_sdk_jar), |
| 61 options, | 62 options, |
| 62 input_paths=input_paths, | 63 input_paths=input_paths, |
| 63 input_strings=[], | 64 input_strings=[], |
| 64 output_paths=output_paths) | 65 output_paths=output_paths, |
| 66 depfile_deps=input_paths) |
| 65 | 67 |
| 66 | 68 |
| 67 if __name__ == '__main__': | 69 if __name__ == '__main__': |
| 68 sys.exit(main()) | 70 sys.exit(main()) |
| OLD | NEW |