| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 if options.iphoneos: | 81 if options.iphoneos: |
| 82 out_dir_suffix = '-iphoneos' | 82 out_dir_suffix = '-iphoneos' |
| 83 else: | 83 else: |
| 84 target_os = 'android' | 84 target_os = 'android' |
| 85 test_target = 'cronet_test_instrumentation_apk' | 85 test_target = 'cronet_test_instrumentation_apk' |
| 86 out_dir_suffix = '' | 86 out_dir_suffix = '' |
| 87 | 87 |
| 88 gyp_defines = 'GYP_DEFINES="OS=' + target_os + ' enable_websockets=0 '+ \ | 88 gyp_defines = 'GYP_DEFINES="OS=' + target_os + ' enable_websockets=0 '+ \ |
| 89 'disable_file_support=1 disable_ftp_support=1 '+ \ | 89 'disable_file_support=1 disable_ftp_support=1 '+ \ |
| 90 'enable_errorprone=1 use_platform_icu_alternatives=1 ' + \ | 90 'enable_errorprone=1 use_platform_icu_alternatives=1 ' + \ |
| 91 'disable_brotli_filter=1"' | 91 'disable_brotli_filter=1 arm_neon=0"' |
| 92 gn_args = 'target_os="' + target_os + '" enable_websockets=false '+ \ | 92 gn_args = 'target_os="' + target_os + '" enable_websockets=false '+ \ |
| 93 'disable_file_support=true disable_ftp_support=true '+ \ | 93 'disable_file_support=true disable_ftp_support=true '+ \ |
| 94 'use_errorprone_java_compiler=true use_platform_icu_alternatives=true '+ \ | 94 'use_errorprone_java_compiler=true use_platform_icu_alternatives=true '+ \ |
| 95 'disable_brotli_filter=true' | 95 'disable_brotli_filter=true arm_use_neon=false' |
| 96 | 96 |
| 97 extra_options = ' '.join(extra_options_list) | 97 extra_options = ' '.join(extra_options_list) |
| 98 if options.release: | 98 if options.release: |
| 99 out_dir = 'out/Release' + out_dir_suffix | 99 out_dir = 'out/Release' + out_dir_suffix |
| 100 release_arg = ' --release' | 100 release_arg = ' --release' |
| 101 gn_args += ' is_debug=false ' | 101 gn_args += ' is_debug=false ' |
| 102 else: | 102 else: |
| 103 out_dir = 'out/Debug' + out_dir_suffix | 103 out_dir = 'out/Debug' + out_dir_suffix |
| 104 release_arg = '' | 104 release_arg = '' |
| 105 | 105 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 136 return test_ios(out_dir, extra_options) | 136 return test_ios(out_dir, extra_options) |
| 137 if (options.command=='build-test'): | 137 if (options.command=='build-test'): |
| 138 return build(out_dir, test_target) or test_ios(out_dir, extra_options) | 138 return build(out_dir, test_target) or test_ios(out_dir, extra_options) |
| 139 | 139 |
| 140 parser.print_help() | 140 parser.print_help() |
| 141 return 1 | 141 return 1 |
| 142 | 142 |
| 143 | 143 |
| 144 if __name__ == '__main__': | 144 if __name__ == '__main__': |
| 145 sys.exit(main()) | 145 sys.exit(main()) |
| OLD | NEW |