e6fd125d31
We currently write a mix of "if (FOO)" and "if(FOO)". While the former looks more like a usual language, CMake believes everything, even "if" and "else", is just a really really funny function call (a "command"). We should pick something for consistency. Upstream CMake writes "if(FOO)", so go with that one. Change-Id: I67e0eb650a52670110b417312a362c9f161c8721 Reviewed-on: https://boringssl-review.googlesource.com/30807 Reviewed-by: Adam Langley <agl@google.com>
36 lines
554 B
CMake
36 lines
554 B
CMake
include_directories(../../include)
|
|
|
|
if(${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
CIPHER_ARCH_SOURCES
|
|
|
|
aes128gcmsiv-x86_64.${ASM_EXT}
|
|
chacha20_poly1305_x86_64.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
cipher_extra
|
|
|
|
OBJECT
|
|
|
|
cipher_extra.c
|
|
derive_key.c
|
|
|
|
e_null.c
|
|
e_rc2.c
|
|
e_rc4.c
|
|
e_aesgcmsiv.c
|
|
e_aesctrhmac.c
|
|
e_aesccm.c
|
|
e_chacha20poly1305.c
|
|
|
|
tls_cbc.c
|
|
e_tls.c
|
|
|
|
${CIPHER_ARCH_SOURCES}
|
|
)
|
|
|
|
perlasm(aes128gcmsiv-x86_64.${ASM_EXT} asm/aes128gcmsiv-x86_64.pl)
|
|
perlasm(chacha20_poly1305_x86_64.${ASM_EXT} asm/chacha20_poly1305_x86_64.pl)
|