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