[PSEH3]
[reactos.git] / reactos / lib / pseh / CMakeLists.txt
1
2 if(NOT MSVC)
3
4 if (USE_PSEH3)
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/pseh)
6 list(APPEND SOURCE
7 i386/pseh3.c
8 i386/pseh3_i386.S)
9 elseif(ARCH STREQUAL "i386")
10 list(APPEND SOURCE
11 i386/framebased.S
12 i386/framebased-gcchack.c
13 i386/framebased-gcchack-asm.S)
14 elseif(ARCH STREQUAL "amd64")
15 list(APPEND SOURCE amd64/framebased.S)
16 elseif(ARCH STREQUAL "powerpc")
17 list(APPEND SOURCE powerpc/framebased.S)
18 endif()
19
20 add_library(pseh ${SOURCE})
21 allow_warnings(pseh)
22 target_link_libraries(pseh chkstk)
23 add_dependencies(pseh psdk)
24
25 else()
26
27 if(ARCH STREQUAL "i386")
28 list(APPEND SOURCE
29 dummy.c
30 i386/seh.s
31 i386/seh_prolog.s)
32 elseif(ARCH STREQUAL "amd64")
33 list(APPEND SOURCE
34 dummy.c
35 amd64/seh.s
36 amd64/seh_prolog.s)
37 endif()
38
39 add_library(pseh ${SOURCE})
40 add_dependencies(pseh asm)
41
42 endif()