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

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

Issue 2310473002: 🔟 Remove Parcelable -keep from base proguard rules (Closed)
Patch Set: Created 4 years, 3 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 64
65 def main(args): 65 def main(args):
66 args = build_utils.ExpandFileArgs(args) 66 args = build_utils.ExpandFileArgs(args)
67 options = _ParseOptions(args) 67 options = _ParseOptions(args)
68 68
69 proguard = proguard_util.ProguardCmdBuilder(options.proguard_path) 69 proguard = proguard_util.ProguardCmdBuilder(options.proguard_path)
70 proguard.injars(options.input_paths) 70 proguard.injars(options.input_paths)
71 proguard.configs(options.proguard_configs) 71 proguard.configs(options.proguard_configs)
72 proguard.outjar(options.output_path) 72 proguard.outjar(options.output_path)
73 print options.proguard_configs
74 73
75 if options.mapping: 74 if options.mapping:
76 proguard.mapping(options.mapping) 75 proguard.mapping(options.mapping)
77 76
78 if options.tested_apk_info: 77 if options.tested_apk_info:
79 proguard.tested_apk_info(options.tested_apk_info) 78 proguard.tested_apk_info(options.tested_apk_info)
80 79
81 classpath = list(set(options.classpath)) 80 classpath = list(set(options.classpath))
82 proguard.libraryjars(classpath) 81 proguard.libraryjars(classpath)
83 proguard.verbose(options.verbose) 82 proguard.verbose(options.verbose)
84 if not options.enable_dangerous_optimizations: 83 if not options.enable_dangerous_optimizations:
85 proguard.disable_optimizations(_DANGEROUS_OPTIMIZATIONS) 84 proguard.disable_optimizations(_DANGEROUS_OPTIMIZATIONS)
86 85
87 input_paths = proguard.GetInputs() 86 input_paths = proguard.GetInputs()
88 87
89 build_utils.CallAndWriteDepfileIfStale( 88 build_utils.CallAndWriteDepfileIfStale(
90 proguard.CheckOutput, 89 proguard.CheckOutput,
91 options, 90 options,
92 input_paths=input_paths, 91 input_paths=input_paths,
93 input_strings=proguard.build(), 92 input_strings=proguard.build(),
94 output_paths=[options.output_path]) 93 output_paths=[options.output_path])
95 94
96 95
97 if __name__ == '__main__': 96 if __name__ == '__main__':
98 sys.exit(main(sys.argv[1:])) 97 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698