blob: fe2d0c653714ffab819c175732f1b28175f15fb8 [file] [log] [blame]
Adam Langley95c29f32014-06-20 12:00:00 -07001include_directories(. .. ../../include)
2
3if (${ARCH} STREQUAL "x86_64")
Adam Langley4a0f0c42015-01-28 16:37:10 -08004 set(
5 RC4_ARCH_SOURCES
Adam Langley95c29f32014-06-20 12:00:00 -07006
Adam Langley4a0f0c42015-01-28 16:37:10 -08007 rc4-x86_64.${ASM_EXT}
8 rc4-md5-x86_64.${ASM_EXT}
9 )
Adam Langley95c29f32014-06-20 12:00:00 -070010endif()
11
12if (${ARCH} STREQUAL "x86")
Adam Langley4a0f0c42015-01-28 16:37:10 -080013 set(
14 RC4_ARCH_SOURCES
Adam Langley95c29f32014-06-20 12:00:00 -070015
Adam Langley4a0f0c42015-01-28 16:37:10 -080016 rc4-586.${ASM_EXT}
17 )
Adam Langley95c29f32014-06-20 12:00:00 -070018endif()
19
20add_library(
Adam Langley4a0f0c42015-01-28 16:37:10 -080021 rc4
Adam Langley95c29f32014-06-20 12:00:00 -070022
Adam Langley4a0f0c42015-01-28 16:37:10 -080023 OBJECT
Adam Langley95c29f32014-06-20 12:00:00 -070024
Adam Langley4a0f0c42015-01-28 16:37:10 -080025 rc4.c
26 ${RC4_ARCH_SOURCES}
Adam Langley95c29f32014-06-20 12:00:00 -070027)
28
29perlasm(rc4-x86_64.${ASM_EXT} asm/rc4-x86_64.pl)
Adam Langley45ec21b2014-06-24 17:26:59 -070030perlasm(rc4-md5-x86_64.${ASM_EXT} asm/rc4-md5-x86_64.pl)
Adam Langley95c29f32014-06-20 12:00:00 -070031perlasm(rc4-586.${ASM_EXT} asm/rc4-586.pl)