OLD | NEW |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 target_os = 'android' | 95 target_os = 'android' |
96 test_target = 'cronet_test_instrumentation_apk' | 96 test_target = 'cronet_test_instrumentation_apk' |
97 gn_args = 'use_errorprone_java_compiler=true arm_use_neon=false ' | 97 gn_args = 'use_errorprone_java_compiler=true arm_use_neon=false ' |
98 gn_extra = '' | 98 gn_extra = '' |
99 out_dir_suffix = '' | 99 out_dir_suffix = '' |
100 | 100 |
101 gn_args += 'target_os="' + target_os + '" enable_websockets=false '+ \ | 101 gn_args += 'target_os="' + target_os + '" enable_websockets=false '+ \ |
102 'disable_file_support=true disable_ftp_support=true '+ \ | 102 'disable_file_support=true disable_ftp_support=true '+ \ |
103 'use_platform_icu_alternatives=true '+ \ | 103 'use_platform_icu_alternatives=true '+ \ |
104 'disable_brotli_filter=true is_component_build=false ' + \ | 104 'disable_brotli_filter=true is_component_build=false ' + \ |
105 'ignore_elf32_limitations=true' | 105 'ignore_elf32_limitations=true use_partition_alloc=false' |
106 | 106 |
107 extra_options = ' '.join(extra_options_list) | 107 extra_options = ' '.join(extra_options_list) |
108 if options.gn: | 108 if options.gn: |
109 out_dir_suffix += "-gn" | 109 out_dir_suffix += "-gn" |
110 | 110 |
111 if options.release: | 111 if options.release: |
112 out_dir = 'out/Release' + out_dir_suffix | 112 out_dir = 'out/Release' + out_dir_suffix |
113 release_arg = ' --release' | 113 release_arg = ' --release' |
114 gn_args += ' is_debug=false ' | 114 gn_args += ' is_debug=false ' |
115 else: | 115 else: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 return test_ios(out_dir, extra_options) | 147 return test_ios(out_dir, extra_options) |
148 if (options.command=='build-test'): | 148 if (options.command=='build-test'): |
149 return build(out_dir, test_target) or test_ios(out_dir, extra_options) | 149 return build(out_dir, test_target) or test_ios(out_dir, extra_options) |
150 | 150 |
151 parser.print_help() | 151 parser.print_help() |
152 return 1 | 152 return 1 |
153 | 153 |
154 | 154 |
155 if __name__ == '__main__': | 155 if __name__ == '__main__': |
156 sys.exit(main()) | 156 sys.exit(main()) |
OLD | NEW |