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

Side by Side Diff: components/cronet/tools/generate_proguard_file.py

Issue 2214013002: [Cronet] add base proguard flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced to 0855f910f2561da7beb87578f4af99faa6db75ec 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
« no previous file with comments | « components/cronet/android/sample/javatests/proguard.cfg ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
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
5 # found in the LICENSE file.
6
7 import optparse
8 import sys
9
10 # Combines files in |input_files| as one proguard file and write that to
11 # |output_file|
12 def GenerateProguardFile(output_file, input_files):
13 try:
14 with open(output_file, "wb") as target:
15 for input_file in input_files:
16 f = open(input_file, "rb")
17 for line in f:
18 target.write(line)
19 except IOError:
20 raise Exception("Proguard file generation failed")
21
22
23 def main():
24 parser = optparse.OptionParser()
25 parser.add_option('--output-file',
26 help='Output file for the generated proguard file')
27
28 options, input_files = parser.parse_args()
29 GenerateProguardFile(options.output_file, input_files)
30
31
32 if __name__ == '__main__':
33 sys.exit(main())
OLDNEW
« no previous file with comments | « components/cronet/android/sample/javatests/proguard.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698