| OLD | NEW |
| 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_64', 'masm', [''], 'asm'), | 22 ('win', 'x86_64', 'masm', [''], 'asm'), |
| 22 ] | 23 ] |
| 23 | 24 |
| 24 # 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 |
| 25 # perlasm system. | 26 # perlasm system. |
| 26 NON_PERL_FILES = { | 27 NON_PERL_FILES = { |
| 27 ('linux', 'arm'): [ | 28 ('linux', 'arm'): [ |
| 28 'src/crypto/poly1305/poly1305_arm_asm.S', | 29 'src/crypto/poly1305/poly1305_arm_asm.S', |
| 29 'src/crypto/chacha/chacha_vec_arm.S', | 30 'src/crypto/chacha/chacha_vec_arm.S', |
| 30 ], | 31 ], |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 for test in test_names: | 232 for test in test_names: |
| 232 test_gypi.write(""" '%s',\n""" % test) | 233 test_gypi.write(""" '%s',\n""" % test) |
| 233 | 234 |
| 234 test_gypi.write(' ],\n }\n}\n') | 235 test_gypi.write(' ],\n }\n}\n') |
| 235 | 236 |
| 236 return 0 | 237 return 0 |
| 237 | 238 |
| 238 | 239 |
| 239 if __name__ == '__main__': | 240 if __name__ == '__main__': |
| 240 sys.exit(main()) | 241 sys.exit(main()) |
| OLD | NEW |