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

Side by Side Diff: third_party/boringssl/update_gypi_and_asm.py

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can b 2 # Use of this source code is governed by a BSD-style license that can b
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Enumerates the BoringSSL source in src/ and generates two gypi files: 5 """Enumerates the BoringSSL source in src/ and generates two gypi files:
6 boringssl.gypi and boringssl_tests.gypi.""" 6 boringssl.gypi and boringssl_tests.gypi."""
7 7
8 import os 8 import os
9 import subprocess 9 import subprocess
10 import sys 10 import sys
11 11
12 12
13 # OS_ARCH_COMBOS maps from OS and platform to the OpenSSL assembly "style" for 13 # OS_ARCH_COMBOS maps from OS and platform to the OpenSSL assembly "style" for
14 # that platform and the extension used by asm files. 14 # that platform and the extension used by asm files.
15 OS_ARCH_COMBOS = [ 15 OS_ARCH_COMBOS = [
16 ('linux', 'arm', 'elf', [''], 'S'), 16 ('linux', 'arm', 'elf', [''], 'S'),
17 ('linux', 'x86', 'elf', ['-fPIC'], 'S'), 17 ('linux', 'x86', 'elf', ['-fPIC'], 'S'),
18 ('linux', 'x86_64', 'elf', [''], 'S'), 18 ('linux', 'x86_64', 'elf', [''], 'S'),
19 ('mac', 'x86', 'macosx', ['-fPIC'], 'S'), 19 ('mac', 'x86', 'macosx', ['-fPIC'], 'S'),
20 ('mac', 'x86_64', 'macosx', [''], 'S'), 20 ('mac', 'x86_64', 'macosx', [''], 'S'),
21 ('win', 'x86', 'win32n', [''], 'asm'), 21 ('win', 'x86', 'win32n', [''], 'asm'),
22 ('win', 'x86_64', 'masm', [''], 'asm'), 22 ('win', 'x86_64', 'nasm', [''], 'asm'),
23 ] 23 ]
24 24
25 # NON_PERL_FILES enumerates assembly files that are not processed by the 25 # NON_PERL_FILES enumerates assembly files that are not processed by the
26 # perlasm system. 26 # perlasm system.
27 NON_PERL_FILES = { 27 NON_PERL_FILES = {
28 ('linux', 'arm'): [ 28 ('linux', 'arm'): [
29 'src/crypto/poly1305/poly1305_arm_asm.S', 29 'src/crypto/poly1305/poly1305_arm_asm.S',
30 'src/crypto/chacha/chacha_vec_arm.S', 30 'src/crypto/chacha/chacha_vec_arm.S',
31 ], 31 ],
32 } 32 }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 test_name = 'boringssl_%s' % os.path.splitext(os.path.basename(test))[0] 213 test_name = 'boringssl_%s' % os.path.splitext(os.path.basename(test))[0]
214 test_gypi.write(""" { 214 test_gypi.write(""" {
215 'target_name': '%s', 215 'target_name': '%s',
216 'type': 'executable', 216 'type': 'executable',
217 'dependencies': [ 217 'dependencies': [
218 'boringssl.gyp:boringssl', 218 'boringssl.gyp:boringssl',
219 ], 219 ],
220 'sources': [ 220 'sources': [
221 '%s', 221 '%s',
222 ], 222 ],
223 # TODO(davidben): Fix size_t truncations in BoringSSL.
224 # https://crbug.com/429039
225 'msvs_disabled_warnings': [ 4267, ],
223 },\n""" % (test_name, test)) 226 },\n""" % (test_name, test))
224 test_names.append(test_name) 227 test_names.append(test_name)
225 228
226 test_names.sort() 229 test_names.sort()
227 230
228 test_gypi.write(""" ], 231 test_gypi.write(""" ],
229 'variables': { 232 'variables': {
230 'boringssl_test_targets': [\n""") 233 'boringssl_test_targets': [\n""")
231 234
232 for test in test_names: 235 for test in test_names:
233 test_gypi.write(""" '%s',\n""" % test) 236 test_gypi.write(""" '%s',\n""" % test)
234 237
235 test_gypi.write(' ],\n }\n}\n') 238 test_gypi.write(' ],\n }\n}\n')
236 239
237 return 0 240 return 0
238 241
239 242
240 if __name__ == '__main__': 243 if __name__ == '__main__':
241 sys.exit(main()) 244 sys.exit(main())
OLDNEW
« no previous file with comments | « third_party/boringssl/boringssl_unittest.cc ('k') | third_party/boringssl/win-x86_64/crypto/aes/aes-x86_64.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698