reactos/lib/pseh/CMakeLists.txt
Timo Kreuzer 45cb5eb141 [CMAKE]
On MSVC builds, compile native SEH support into PSEH library.
This should be part of the crt, but our crt is too disorganized to handle that. The empty C file is for cmake to get the library right.

svn path=/branches/cmake-bringup/; revision=50486
2011-01-25 16:26:54 +00:00

29 lines
620 B
CMake

if(NOT MSVC)
list(APPEND SOURCE framebased.c)
if(ARCH MATCHES i386)
list(APPEND SOURCE
i386/framebased.S
i386/framebased-gcchack.c
i386/framebased-gcchack-asm.S)
elseif(ARCH MATCHES amd64)
list(APPEND SOURCE amd64/framebased.S)
elseif(ARCH MATCHES powerpc)
list(APPEND SOURCE powerpc/framebased.S)
endif()
add_library(pseh ${SOURCE})
add_dependencies(pseh psdk)
else()
list(APPEND SOURCE
dummy.c
i386/seh.s
i386/seh_prolog.s)
add_library(pseh ${SOURCE})
add_dependencies(pseh asm)
endif()