external/boringssl/crypto/rand/CMakeLists.txt
raw| 1 | include_directories(../../include) |
| 2 | |
| 3 | if (${ARCH} STREQUAL "x86_64") |
| 4 | set( |
| 5 | RAND_ARCH_SOURCES |
| 6 | |
| 7 | rdrand-x86_64.${ASM_EXT} |
| 8 | ) |
| 9 | endif() |
| 10 | |
| 11 | add_library( |
| 12 | rand |
| 13 | |
| 14 | OBJECT |
| 15 | |
| 16 | deterministic.c |
| 17 | rand.c |
| 18 | urandom.c |
| 19 | windows.c |
| 20 | |
| 21 | ${RAND_ARCH_SOURCES} |
| 22 | ) |
| 23 | |
| 24 | perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl) |