mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
b819608ed8
svn path=/branches/condrv_restructure/; revision=63104
44 lines
1.1 KiB
CMake
44 lines
1.1 KiB
CMake
|
|
if(NOT MSVC)
|
|
|
|
if(USE_PSEH3)
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/pseh)
|
|
list(APPEND SOURCE
|
|
i386/pseh3.c
|
|
i386/pseh3_i386.S)
|
|
elseif(USE_DUMMY_PSEH)
|
|
list(APPEND SOURCE dummy.c)
|
|
elseif(ARCH STREQUAL "i386")
|
|
list(APPEND SOURCE
|
|
i386/framebased.S
|
|
i386/framebased-gcchack.c
|
|
i386/framebased-gcchack-asm.S)
|
|
elseif(ARCH STREQUAL "amd64")
|
|
list(APPEND SOURCE amd64/framebased.S)
|
|
elseif(ARCH STREQUAL "powerpc")
|
|
list(APPEND SOURCE powerpc/framebased.S)
|
|
endif()
|
|
|
|
add_library(pseh ${SOURCE})
|
|
target_link_libraries(pseh chkstk)
|
|
add_dependencies(pseh psdk)
|
|
|
|
else()
|
|
|
|
if(ARCH STREQUAL "i386")
|
|
list(APPEND ASM_SOURCE
|
|
i386/seh.s
|
|
i386/seh_prolog.s)
|
|
list(APPEND SOURCE dummy.c)
|
|
elseif(ARCH STREQUAL "amd64")
|
|
list(APPEND ASM_SOURCE
|
|
amd64/seh.s
|
|
amd64/seh_prolog.s)
|
|
list(APPEND SOURCE dummy.c)
|
|
endif()
|
|
|
|
add_asm_files(pseh_asm ${ASM_SOURCE})
|
|
add_library(pseh ${SOURCE} ${pseh_asm})
|
|
add_dependencies(pseh asm)
|
|
|
|
endif()
|