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

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

Issue 540523002: Roll BoringSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... Created 6 years, 3 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
« no previous file with comments | « third_party/boringssl/boringssl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 perlasms = ReadPerlAsmOperations() 195 perlasms = ReadPerlAsmOperations()
196 196
197 for ((osname, arch), asm_files) in sorted( 197 for ((osname, arch), asm_files) in sorted(
198 WriteAsmFiles(perlasms).iteritems()): 198 WriteAsmFiles(perlasms).iteritems()):
199 PrintVariableSection(gypi, 'boringssl_%s_%s_sources' % 199 PrintVariableSection(gypi, 'boringssl_%s_%s_sources' %
200 (osname, arch), asm_files) 200 (osname, arch), asm_files)
201 201
202 gypi.write(' }\n}\n') 202 gypi.write(' }\n}\n')
203 203
204 test_c_files = FindCFiles(os.path.join('src', 'crypto'), OnlyTests) 204 test_c_files = FindCFiles(os.path.join('src', 'crypto'), OnlyTests)
205 test_c_files += FindCFiles(os.path.join('src', 'ssl'), OnlyTests)
205 206
206 with open('boringssl_tests.gypi', 'w+') as test_gypi: 207 with open('boringssl_tests.gypi', 'w+') as test_gypi:
207 test_gypi.write(FILE_HEADER + '{\n \'targets\': [\n') 208 test_gypi.write(FILE_HEADER + '{\n \'targets\': [\n')
208 209
209 test_names = [] 210 test_names = []
210 for test in sorted(test_c_files): 211 for test in sorted(test_c_files):
211 test_name = 'boringssl_%s' % os.path.splitext(os.path.basename(test))[0] 212 test_name = 'boringssl_%s' % os.path.splitext(os.path.basename(test))[0]
212 test_gypi.write(""" { 213 test_gypi.write(""" {
213 'target_name': '%s', 214 'target_name': '%s',
214 'type': 'executable', 215 'type': 'executable',
(...skipping 15 matching lines...) Expand all
230 for test in test_names: 231 for test in test_names:
231 test_gypi.write(""" '%s',\n""" % test) 232 test_gypi.write(""" '%s',\n""" % test)
232 233
233 test_gypi.write(' ],\n }\n}\n') 234 test_gypi.write(' ],\n }\n}\n')
234 235
235 return 0 236 return 0
236 237
237 238
238 if __name__ == '__main__': 239 if __name__ == '__main__':
239 sys.exit(main()) 240 sys.exit(main())
OLDNEW
« no previous file with comments | « third_party/boringssl/boringssl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698