| 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 use_openssl=1"' | 91 'disable_brotli_filter=1"' |
| 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' |
| 96 | 96 |
| 97 out_dir = 'out/Debug' + out_dir_suffix | 97 out_dir = 'out/Debug' + out_dir_suffix |
| 98 release_arg = '' | 98 release_arg = '' |
| 99 extra_options = ' '.join(extra_options_list) | 99 extra_options = ' '.join(extra_options_list) |
| 100 if options.release: | 100 if options.release: |
| 101 out_dir = 'out/Release' + out_dir_suffix | 101 out_dir = 'out/Release' + out_dir_suffix |
| (...skipping 29 matching lines...) Expand all Loading... |
| 131 return test_ios(out_dir, extra_options) | 131 return test_ios(out_dir, extra_options) |
| 132 if (options.command=='build-test'): | 132 if (options.command=='build-test'): |
| 133 return build(out_dir, test_target) or test_ios(out_dir, extra_options) | 133 return build(out_dir, test_target) or test_ios(out_dir, extra_options) |
| 134 | 134 |
| 135 parser.print_help() | 135 parser.print_help() |
| 136 return 1 | 136 return 1 |
| 137 | 137 |
| 138 | 138 |
| 139 if __name__ == '__main__': | 139 if __name__ == '__main__': |
| 140 sys.exit(main()) | 140 sys.exit(main()) |
| OLD | NEW |