reactos/sdk/lib/crt/wine/wine.cmake
Timo Kreuzer 92db51883a [MSVCRT] Add asm wrapper around RtlUnwind for Wine code
This is needed, because Wine code expects RtlUnwind to restore the non-volatile registers, before returning, but ours / the native one doesn't do that.
Should fix CORE-19392 and CORE-19397
2024-01-13 19:39:23 +02:00

33 lines
728 B
CMake

list(APPEND CRT_WINE_SOURCE
wine/cpp.c
wine/except.c
wine/heap.c
wine/undname.c
)
if(ARCH STREQUAL "i386")
list(APPEND CRT_WINE_SOURCE
wine/except_i386.c
)
list(APPEND CRT_WINE_ASM_SOURCE
wine/rosglue_i386.s
)
elseif(ARCH STREQUAL "amd64")
list(APPEND CRT_WINE_SOURCE
wine/except_x86_64.c
)
elseif(ARCH STREQUAL "arm")
list(APPEND CRT_WINE_SOURCE
wine/except_arm.c
)
elseif(ARCH STREQUAL "arm64")
list(APPEND CRT_WINE_SOURCE
wine/except_arm64.c
)
endif()
# includes for wine code
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
#set_source_files_properties(${CRT_WINE_SOURCE} PROPERTIES INCLUDE_DIRECTORIES)