73415b6aa0
arm_arch.h is included from ARM asm files, but lives in crypto/, not openssl/include/. Since the asm files are often built from a different location than their position in the source tree, relative include paths are unlikely to work so, rather than having crypto/ be a de-facto, second global include path, this change moves arm_arch.h to include/openssl/. It also removes entries from many include paths because they should be needed as relative includes are always based on the locations of the source file. Change-Id: I638ff43d641ca043a4fc06c0d901b11c6ff73542 Reviewed-on: https://boringssl-review.googlesource.com/5746 Reviewed-by: Adam Langley <agl@google.com>
72 lines
1.3 KiB
CMake
72 lines
1.3 KiB
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
AES_ARCH_SOURCES
|
|
|
|
aes-x86_64.${ASM_EXT}
|
|
aesni-x86_64.${ASM_EXT}
|
|
bsaes-x86_64.${ASM_EXT}
|
|
vpaes-x86_64.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
if (${ARCH} STREQUAL "x86")
|
|
set(
|
|
AES_ARCH_SOURCES
|
|
|
|
aes-586.${ASM_EXT}
|
|
vpaes-x86.${ASM_EXT}
|
|
aesni-x86.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
if (${ARCH} STREQUAL "arm")
|
|
set(
|
|
AES_ARCH_SOURCES
|
|
|
|
aes-armv4.${ASM_EXT}
|
|
bsaes-armv7.${ASM_EXT}
|
|
aesv8-armx.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
if (${ARCH} STREQUAL "aarch64")
|
|
set(
|
|
AES_ARCH_SOURCES
|
|
|
|
aesv8-armx.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
aes
|
|
|
|
OBJECT
|
|
|
|
aes.c
|
|
mode_wrappers.c
|
|
|
|
${AES_ARCH_SOURCES}
|
|
)
|
|
|
|
perlasm(aes-x86_64.${ASM_EXT} asm/aes-x86_64.pl)
|
|
perlasm(aesni-x86_64.${ASM_EXT} asm/aesni-x86_64.pl)
|
|
perlasm(bsaes-x86_64.${ASM_EXT} asm/bsaes-x86_64.pl)
|
|
perlasm(vpaes-x86_64.${ASM_EXT} asm/vpaes-x86_64.pl)
|
|
perlasm(aes-586.${ASM_EXT} asm/aes-586.pl)
|
|
perlasm(vpaes-x86.${ASM_EXT} asm/vpaes-x86.pl)
|
|
perlasm(aesni-x86.${ASM_EXT} asm/aesni-x86.pl)
|
|
perlasm(aes-armv4.${ASM_EXT} asm/aes-armv4.pl)
|
|
perlasm(bsaes-armv7.${ASM_EXT} asm/bsaes-armv7.pl)
|
|
perlasm(aesv8-armx.${ASM_EXT} asm/aesv8-armx.pl)
|
|
|
|
add_executable(
|
|
aes_test
|
|
|
|
aes_test.cc
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(aes_test crypto)
|