aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aes/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-07-23 18:22:27 +0200
committerEgor Tensin <egor@tensin.name>2026-07-23 23:34:04 +0200
commit3725266c1e521a26f04fb5067d2f983cb3757792 (patch)
tree1f65b9fdbdc853b6125d8855741fca9d917baf54 /aes/CMakeLists.txt
parentmake buildable on Linux (diff)
downloadaes-tools-3725266c1e521a26f04fb5067d2f983cb3757792.tar.gz
aes-tools-3725266c1e521a26f04fb5067d2f983cb3757792.zip
aes: add 64-bit ASM implementation
Diffstat (limited to 'aes/CMakeLists.txt')
-rw-r--r--aes/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/aes/CMakeLists.txt b/aes/CMakeLists.txt
index e48fe24..11d4d94 100644
--- a/aes/CMakeLists.txt
+++ b/aes/CMakeLists.txt
@@ -1,7 +1,8 @@
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
-option(AES_TOOLS_ASM "Use the assembly language implementation instead of the one in C")
+option(AES_TOOLS_ASM "Use the 32-bit ASM implementation")
+option(AES_TOOLS_ASM64 "Use the 64-bit ASM implementation")
file(GLOB_RECURSE aes_include CONFIGURE_DEPENDS "include/*.h")
file(GLOB aes_src CONFIGURE_DEPENDS "src/*.c")
@@ -11,6 +12,9 @@ if(MSVC AND AES_TOOLS_ASM)
file(GLOB aes_src_impl CONFIGURE_DEPENDS "src/asm/*.asm")
set_source_files_properties(${aes_src_impl} PROPERTIES COMPILE_FLAGS /safeseh)
# Setting CMAKE_ASM_MASM_FLAGS doesn't work: http://www.cmake.org/Bug/view.php?id=14711
+elseif(MSVC AND AES_TOOLS_ASM64)
+ enable_language(ASM_MASM)
+ file(GLOB aes_src_impl CONFIGURE_DEPENDS "src/asm64/*.asm")
else()
file(GLOB aes_src_impl CONFIGURE_DEPENDS "src/c/*.c")
endif()