2010-07-28 00:08:02 +00:00
|
|
|
|
2010-10-09 16:23:07 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
|
2011-01-07 12:11:46 +00:00
|
|
|
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()
|
2010-08-30 13:00:41 +00:00
|
|
|
|
2011-01-07 12:11:46 +00:00
|
|
|
add_library(pseh ${SOURCE})
|
|
|
|
add_dependencies(pseh psdk)
|
2010-07-28 00:08:02 +00:00
|
|
|
|
2011-01-25 16:26:54 +00:00
|
|
|
else()
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
dummy.c
|
|
|
|
i386/seh.s
|
|
|
|
i386/seh_prolog.s)
|
|
|
|
|
|
|
|
add_library(pseh ${SOURCE})
|
|
|
|
add_dependencies(pseh asm)
|
|
|
|
|
2010-10-09 16:23:07 +00:00
|
|
|
endif()
|