Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 1 | include_directories(. .. ../../include) |
| 2 | |
| 3 | if (${ARCH} STREQUAL "x86_64") |
Adam Langley | 4a0f0c4 | 2015-01-28 16:37:10 -0800 | [diff] [blame] | 4 | set( |
| 5 | RC4_ARCH_SOURCES |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 6 | |
Adam Langley | 4a0f0c4 | 2015-01-28 16:37:10 -0800 | [diff] [blame] | 7 | rc4-x86_64.${ASM_EXT} |
| 8 | rc4-md5-x86_64.${ASM_EXT} |
| 9 | ) |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 10 | endif() |
| 11 | |
| 12 | if (${ARCH} STREQUAL "x86") |
Adam Langley | 4a0f0c4 | 2015-01-28 16:37:10 -0800 | [diff] [blame] | 13 | set( |
| 14 | RC4_ARCH_SOURCES |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 15 | |
Adam Langley | 4a0f0c4 | 2015-01-28 16:37:10 -0800 | [diff] [blame] | 16 | rc4-586.${ASM_EXT} |
| 17 | ) |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 18 | endif() |
| 19 | |
| 20 | add_library( |
Adam Langley | 4a0f0c4 | 2015-01-28 16:37:10 -0800 | [diff] [blame] | 21 | rc4 |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 22 | |
Adam Langley | 4a0f0c4 | 2015-01-28 16:37:10 -0800 | [diff] [blame] | 23 | OBJECT |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 24 | |
Adam Langley | 4a0f0c4 | 2015-01-28 16:37:10 -0800 | [diff] [blame] | 25 | rc4.c |
| 26 | ${RC4_ARCH_SOURCES} |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 27 | ) |
| 28 | |
| 29 | perlasm(rc4-x86_64.${ASM_EXT} asm/rc4-x86_64.pl) |
Adam Langley | 45ec21b | 2014-06-24 17:26:59 -0700 | [diff] [blame] | 30 | perlasm(rc4-md5-x86_64.${ASM_EXT} asm/rc4-md5-x86_64.pl) |
Adam Langley | 95c29f3 | 2014-06-20 12:00:00 -0700 | [diff] [blame] | 31 | perlasm(rc4-586.${ASM_EXT} asm/rc4-586.pl) |