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

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

Powered by Google App Engine
This is Rietveld 408576698