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