2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
if(NOT MSVC)
|
|
|
|
|
2012-09-09 21:12:00 +00:00
|
|
|
if (USE_PSEH3)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/pseh)
|
|
|
|
list(APPEND SOURCE
|
|
|
|
i386/pseh3.c
|
|
|
|
i386/pseh3_i386.S)
|
|
|
|
elseif(ARCH STREQUAL "i386")
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
i386/framebased.S
|
|
|
|
i386/framebased-gcchack.c
|
|
|
|
i386/framebased-gcchack-asm.S)
|
2012-08-27 18:58:27 +00:00
|
|
|
elseif(ARCH STREQUAL "amd64")
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE amd64/framebased.S)
|
2012-08-27 18:58:27 +00:00
|
|
|
elseif(ARCH STREQUAL "powerpc")
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE powerpc/framebased.S)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(pseh ${SOURCE})
|
2011-09-11 15:39:19 +00:00
|
|
|
allow_warnings(pseh)
|
2011-06-06 11:44:58 +00:00
|
|
|
target_link_libraries(pseh chkstk)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(pseh psdk)
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
2012-08-27 18:58:27 +00:00
|
|
|
if(ARCH STREQUAL "i386")
|
2011-06-06 19:03:53 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
dummy.c
|
|
|
|
i386/seh.s
|
|
|
|
i386/seh_prolog.s)
|
2012-08-27 18:58:27 +00:00
|
|
|
elseif(ARCH STREQUAL "amd64")
|
2011-06-06 19:03:53 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
dummy.c
|
|
|
|
amd64/seh.s
|
|
|
|
amd64/seh_prolog.s)
|
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_library(pseh ${SOURCE})
|
|
|
|
add_dependencies(pseh asm)
|
|
|
|
|
|
|
|
endif()
|