2011-08-19 18:10:17 +00:00
|
|
|
|
2011-05-23 15:50:03 +00:00
|
|
|
list(APPEND CRT_SOURCE
|
2021-07-17 12:53:17 +00:00
|
|
|
${CRT_CONIO_SOURCE}
|
|
|
|
${CRT_DIRECT_SOURCE}
|
|
|
|
${CRT_EXCEPT_SOURCE}
|
|
|
|
${CRT_FLOAT_SOURCE}
|
2011-05-23 15:50:03 +00:00
|
|
|
locale/locale.c
|
2021-07-17 12:53:17 +00:00
|
|
|
${CRT_MATH_SOURCE}
|
|
|
|
${CRT_MBSTRING_SOURCE}
|
|
|
|
${CRT_MEM_SOURCE}
|
|
|
|
${CRT_MISC_SOURCE}
|
|
|
|
${CRT_PRINTF_SOURCE}
|
|
|
|
${CRT_PROCESS_SOURCE}
|
|
|
|
${CRT_SEARCH_SOURCE}
|
2011-05-23 15:50:03 +00:00
|
|
|
signal/signal.c
|
2021-07-17 12:53:17 +00:00
|
|
|
${CRT_STARTUP_SOURCE}
|
|
|
|
${CRT_STDIO_SOURCE}
|
|
|
|
${CRT_STDLIB_SOURCE}
|
|
|
|
${CRT_STRING_SOURCE}
|
2011-05-23 15:50:03 +00:00
|
|
|
sys_stat/systime.c
|
2021-07-17 12:53:17 +00:00
|
|
|
${CRT_TIME_SOURCE}
|
|
|
|
${CRT_WINE_SOURCE}
|
|
|
|
${CRT_WSTRING_SOURCE}
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND CRT_ASM_SOURCE
|
|
|
|
${CRT_EXCEPT_ASM_SOURCE}
|
|
|
|
${CRT_FLOAT_ASM_SOURCE}
|
|
|
|
${CRT_MATH_ASM_SOURCE}
|
|
|
|
${CRT_SETJMP_ASM_SOURCE}
|
|
|
|
${CRT_STDLIB_ASM_SOURCE}
|
|
|
|
${CRT_STRING_ASM_SOURCE}
|
2024-01-08 19:55:15 +00:00
|
|
|
${CRT_WINE_ASM_SOURCE}
|
2021-07-17 12:53:17 +00:00
|
|
|
)
|
2020-01-13 12:41:24 +00:00
|
|
|
|
2013-01-08 20:33:08 +00:00
|
|
|
set_source_files_properties(${CRT_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "__MINGW_IMPORT=extern;USE_MSVCRT_PREFIX;_MSVCRT_LIB_;_MSVCRT_;_MT;CRTDLL")
|
|
|
|
add_asm_files(crt_asm ${CRT_ASM_SOURCE})
|
|
|
|
|
2021-07-17 12:53:17 +00:00
|
|
|
add_library(crt ${CRT_SOURCE} ${crt_asm})
|
2021-04-22 15:28:52 +00:00
|
|
|
target_link_libraries(crt chkstk ${PSEH_LIB})
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_definitions(crt
|
|
|
|
PRIVATE __MINGW_IMPORT=extern
|
2011-12-31 17:44:51 +00:00
|
|
|
USE_MSVCRT_PREFIX
|
|
|
|
_MSVCRT_LIB_
|
|
|
|
_MSVCRT_
|
|
|
|
_MT
|
|
|
|
CRTDLL)
|
2011-09-04 20:27:48 +00:00
|
|
|
#add_pch(crt precomp.h)
|
2011-05-23 15:50:03 +00:00
|
|
|
add_dependencies(crt psdk asm)
|