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

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

Issue 1568583005: Add proguard_verbose GN arg (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | build/android/gyp/proguard.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2014 The Chromium Authors. All rights reserved. 3 # Copyright 2014 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 """Generates the obfuscated jar and test jar for an apk. 7 """Generates the obfuscated jar and test jar for an apk.
8 8
9 If proguard is not enabled or 'Release' is not in the configuration name, 9 If proguard is not enabled or 'Release' is not in the configuration name,
10 obfuscation will be a no-op. 10 obfuscation will be a no-op.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 proguard.libraryjars([options.android_sdk_jar]) 114 proguard.libraryjars([options.android_sdk_jar])
115 proguard_injars = [p for p in input_jars if p not in exclude_paths] 115 proguard_injars = [p for p in input_jars if p not in exclude_paths]
116 proguard.injars(proguard_injars) 116 proguard.injars(proguard_injars)
117 117
118 multidex_config = _PossibleMultidexConfig(options) 118 multidex_config = _PossibleMultidexConfig(options)
119 if multidex_config: 119 if multidex_config:
120 configs.append(multidex_config) 120 configs.append(multidex_config)
121 121
122 proguard.configs(configs) 122 proguard.configs(configs)
123 proguard.CheckOutput(options.verbose) 123 proguard.verbose(options.verbose)
124 proguard.CheckOutput()
124 125
125 126
126 def _PossibleMultidexConfig(options): 127 def _PossibleMultidexConfig(options):
127 if not options.multidex_configuration_path: 128 if not options.multidex_configuration_path:
128 return None 129 return None
129 130
130 with open(options.multidex_configuration_path) as multidex_config_file: 131 with open(options.multidex_configuration_path) as multidex_config_file:
131 multidex_config = json.loads(multidex_config_file.read()) 132 multidex_config = json.loads(multidex_config_file.read())
132 133
133 if not (multidex_config.get('enabled') and options.main_dex_list_path): 134 if not (multidex_config.get('enabled') and options.main_dex_list_path):
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 for f in output_files: 176 for f in output_files:
176 if os.path.exists(f): 177 if os.path.exists(f):
177 os.remove(f) 178 os.remove(f)
178 build_utils.Touch(f) 179 build_utils.Touch(f)
179 180
180 if options.stamp: 181 if options.stamp:
181 build_utils.Touch(options.stamp) 182 build_utils.Touch(options.stamp)
182 183
183 if __name__ == '__main__': 184 if __name__ == '__main__':
184 sys.exit(main(sys.argv[1:])) 185 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | build/android/gyp/proguard.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698