mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
45cb5eb141
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
29 lines
620 B
CMake
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()
|