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

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

Issue 1839803002: Remove net & url small, iOS ICU alternatives, unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/cronet_static.gypi ('k') | components/data_reduction_proxy.gypi » ('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/python 1 #!/usr/bin/python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """ 6 """
7 cr_cronet.py - cr - like helper tool for cronet developers 7 cr_cronet.py - cr - like helper tool for cronet developers
8 """ 8 """
9 9
10 import argparse 10 import argparse
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 'debug', 64 'debug',
65 'build-debug']) 65 'build-debug'])
66 parser.add_argument('-r', '--release', action='store_true', 66 parser.add_argument('-r', '--release', action='store_true',
67 help='use release configuration') 67 help='use release configuration')
68 68
69 options, extra_options_list = parser.parse_known_args() 69 options, extra_options_list = parser.parse_known_args()
70 print options 70 print options
71 print extra_options_list 71 print extra_options_list
72 gyp_defines = 'GYP_DEFINES="OS=android enable_websockets=0 '+ \ 72 gyp_defines = 'GYP_DEFINES="OS=android enable_websockets=0 '+ \
73 'disable_file_support=1 disable_ftp_support=1 '+ \ 73 'disable_file_support=1 disable_ftp_support=1 '+ \
74 'enable_errorprone=1"' 74 'enable_errorprone=1 use_platform_icu_alternatives=1 ' + \
75 'disable_brotli_filter=1"'
75 gn_args = 'target_os="android" enable_websockets=false '+ \ 76 gn_args = 'target_os="android" enable_websockets=false '+ \
76 'disable_file_support=true disable_ftp_support=true '+ \ 77 'disable_file_support=true disable_ftp_support=true '+ \
77 'use_errorprone_java_compiler=true' 78 'use_errorprone_java_compiler=true use_platform_icu_alternatives=true '+ \
79 'disable_brotli_filter=true'
78 out_dir = 'out/Debug' 80 out_dir = 'out/Debug'
79 release_arg = '' 81 release_arg = ''
80 extra_options = ' '.join(extra_options_list) 82 extra_options = ' '.join(extra_options_list)
81 if options.release: 83 if options.release:
82 out_dir = 'out/Release' 84 out_dir = 'out/Release'
83 release_arg = ' --release' 85 release_arg = ' --release'
84 gn_args += ' is_debug=false ' 86 gn_args += ' is_debug=false '
85 87
86 if (options.command=='gyp'): 88 if (options.command=='gyp'):
87 return run (gyp_defines + ' gclient runhooks') 89 return run (gyp_defines + ' gclient runhooks')
(...skipping 18 matching lines...) Expand all
106 return install(release_arg) or debug(extra_options) 108 return install(release_arg) or debug(extra_options)
107 if (options.command=='build-debug'): 109 if (options.command=='build-debug'):
108 return build(out_dir) or install(release_arg) or debug(extra_options) 110 return build(out_dir) or install(release_arg) or debug(extra_options)
109 111
110 parser.print_help() 112 parser.print_help()
111 return 1 113 return 1
112 114
113 115
114 if __name__ == '__main__': 116 if __name__ == '__main__':
115 sys.exit(main()) 117 sys.exit(main())
OLDNEW
« no previous file with comments | « components/cronet/cronet_static.gypi ('k') | components/data_reduction_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698