2024-10-21 21:07:12 +00:00
|
|
|
|
|
|
|
list(APPEND UCRTSUPP_SOURCE
|
|
|
|
${CRT_FLOAT_SOURCE}
|
|
|
|
${CRT_MATH_SOURCE}
|
2024-11-16 13:08:06 +00:00
|
|
|
misc/amsg.c
|
|
|
|
misc/purecall.c
|
|
|
|
misc/tls.c
|
|
|
|
wine/cpp.c
|
|
|
|
wine/except.c
|
2024-10-21 21:07:12 +00:00
|
|
|
wine/undname.c
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND UCRTSUPP_ASM_SOURCE
|
|
|
|
${CRT_FLOAT_ASM_SOURCE}
|
|
|
|
${CRT_MATH_ASM_SOURCE}
|
|
|
|
${CRT_SETJMP_ASM_SOURCE}
|
2024-11-16 13:08:06 +00:00
|
|
|
${CRT_WINE_ASM_SOURCE}
|
2024-10-21 21:07:12 +00:00
|
|
|
)
|
|
|
|
|
2024-11-16 13:08:06 +00:00
|
|
|
if(ARCH STREQUAL "i386")
|
|
|
|
list(APPEND UCRTSUPP_SOURCE
|
|
|
|
except/i386/CxxHandleV8Frame.c
|
|
|
|
wine/except_i386.c
|
|
|
|
)
|
|
|
|
list(APPEND UCRTSUPP_ASM_SOURCE
|
|
|
|
except/i386/__CxxFrameHandler3.s
|
|
|
|
except/i386/chkesp.s
|
|
|
|
wine/rosglue_i386.s
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
list(APPEND UCRTSUPP_ASM_SOURCE
|
|
|
|
except/i386/cpp.s
|
|
|
|
except/i386/prolog.s
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
elseif(ARCH STREQUAL "amd64")
|
|
|
|
list(APPEND UCRTSUPP_SOURCE
|
|
|
|
wine/except_x86_64.c
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
list(APPEND UCRTSUPP_ASM_SOURCE
|
|
|
|
except/amd64/cpp.s
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
elseif(ARCH STREQUAL "arm")
|
|
|
|
list(APPEND UCRTSUPP_SOURCE
|
|
|
|
wine/except_arm.c
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
list(APPEND UCRTSUPP_ASM_SOURCE
|
|
|
|
except/arm/cpp.s
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
elseif(ARCH STREQUAL "arm64")
|
|
|
|
list(APPEND UCRTSUPP_SOURCE
|
|
|
|
wine/except_arm64.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2024-10-21 21:07:12 +00:00
|
|
|
add_asm_files(ucrtsupp_asm ${UCRTSUPP_ASM_SOURCE})
|
|
|
|
|
|
|
|
add_library(ucrtsupport ${UCRTSUPP_SOURCE} ${ucrtsupp_asm})
|
|
|
|
target_link_libraries(ucrtsupport chkstk ${PSEH_LIB})
|
|
|
|
target_compile_definitions(ucrtsupport PRIVATE
|
2024-11-16 13:08:06 +00:00
|
|
|
__UCRTSUPPORT__
|
2024-10-21 21:07:12 +00:00
|
|
|
CRTDLL
|
|
|
|
_MSVCRT_LIB_
|
|
|
|
_MSVCRT_
|
|
|
|
_MT
|
|
|
|
USE_MSVCRT_PREFIX
|
|
|
|
__MINGW_IMPORT=extern
|
|
|
|
__fma3_lib_init=__acrt_initialize_fma3
|
2024-11-16 13:08:06 +00:00
|
|
|
set_terminate=_wine_set_terminate
|
|
|
|
terminate=_wine_terminate
|
|
|
|
_get_terminate=_wine_get_terminate
|
|
|
|
unexpected=_wine_unexpected
|
|
|
|
__pxcptinfoptrs=_wine__pxcptinfoptrs
|
2024-10-21 21:07:12 +00:00
|
|
|
)
|
|
|
|
#add_pch(crt precomp.h)
|
|
|
|
add_dependencies(ucrtsupport psdk asm)
|