[REACTOS] Explicitly link against pseh & include pseh headers in a few places

This commit is contained in:
Jérôme Gardou 2021-04-22 17:28:52 +02:00 committed by Jérôme Gardou
parent 37bc01f42b
commit e470b58376
50 changed files with 103 additions and 23 deletions

View file

@ -9,3 +9,5 @@ target_include_directories(atl_classes INTERFACE
target_compile_definitions(atl_classes INTERFACE
"$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<BOOL:$<TARGET_PROPERTY:WITH_CXX_EXCEPTIONS>>>>:_ATL_NO_EXCEPTIONS>")
target_link_libraries(atl_classes INTERFACE pseh)

View file

@ -22,6 +22,7 @@
#pragma once
#include <cguid.h> // for GUID_NULL
#include <pseh/pseh2.h>
namespace ATL
{

View file

@ -603,7 +603,7 @@ if(USE_CLANG_CL)
endif()
add_library(crt ${CRT_SOURCE} ${CRT_WINE_SOURCE} ${crt_asm})
target_link_libraries(crt chkstk)
target_link_libraries(crt chkstk ${PSEH_LIB})
target_compile_definitions(crt
PRIVATE __MINGW_IMPORT=extern
USE_MSVCRT_PREFIX

View file

@ -4,4 +4,5 @@ list(APPEND SOURCE
copysup.c)
add_library(copysup ${SOURCE})
target_link_libraries(copysup PRIVATE pseh)
add_dependencies(copysup bugcodes xdk)

View file

@ -7,4 +7,5 @@ list(APPEND SOURCE
rdbss.c)
add_library(rdbsslib ${SOURCE})
target_link_libraries(rdbsslib PRIVATE pseh)
add_dependencies(rdbsslib bugcodes xdk)

View file

@ -6,4 +6,5 @@ list(APPEND SOURCE
rxce.c)
add_library(rxce ${SOURCE})
target_link_libraries(rxce PRIVATE pseh)
add_dependencies(rxce bugcodes xdk)

View file

@ -112,6 +112,7 @@ endif()
add_asm_files(rtl_asm ${ASM_SOURCE})
add_library(rtl ${SOURCE} ${rtl_asm})
target_link_libraries(rtl PRIVATE pseh)
add_pch(rtl rtl.h SOURCE)
add_dependencies(rtl psdk asm)
@ -124,3 +125,4 @@ list(APPEND SOURCE_VISTA
add_library(rtl_vista ${SOURCE_VISTA})
add_pch(rtl_vista rtl_vista.h SOURCE_VISTA)
add_dependencies(rtl_vista psdk)
target_link_libraries(rtl_vista PRIVATE pseh)