Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: components/cronet/tools/cr_cronet.py

Issue 2060333002: [Cronet] Enforce ARMv7 Cronet doesn't inadvertently use ARM Neon instructions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698