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