| 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', '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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 for test in test_names: | 235 for test in test_names: |
| 236 test_gypi.write(""" '%s',\n""" % test) | 236 test_gypi.write(""" '%s',\n""" % test) |
| 237 | 237 |
| 238 test_gypi.write(' ],\n }\n}\n') | 238 test_gypi.write(' ],\n }\n}\n') |
| 239 | 239 |
| 240 return 0 | 240 return 0 |
| 241 | 241 |
| 242 | 242 |
| 243 if __name__ == '__main__': | 243 if __name__ == '__main__': |
| 244 sys.exit(main()) | 244 sys.exit(main()) |
| OLD | NEW |