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