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

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

Issue 2985523002: Update experimental Java 8 support to use Desugar instead of Retrolambda (Closed)
Patch Set: addressing comments Created 3 years, 5 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
OLDNEW
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
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)
agrieve 2017/07/20 18:24:09 You should delete retrolambda in this change as we
F 2017/07/20 19:40:55 Done.
65 67
66 68
67 if __name__ == '__main__': 69 if __name__ == '__main__':
68 sys.exit(main()) 70 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698