mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[CRT] Add crtmath library
This commit is contained in:
@@ -36,6 +36,7 @@ set_entrypoint(ucrtbase __acrt_DllMain 12)
|
||||
target_link_libraries(ucrtbase
|
||||
ucrt
|
||||
ucrtsupport
|
||||
crtmath
|
||||
vcruntime
|
||||
wine
|
||||
)
|
||||
|
||||
@@ -25,6 +25,7 @@ include(wine/wine.cmake)
|
||||
include(wstring/wstring.cmake)
|
||||
|
||||
include(crt.cmake)
|
||||
include(crtmath.cmake)
|
||||
include(libcntpr.cmake)
|
||||
include(msvcrtex.cmake)
|
||||
include(oldnames.cmake)
|
||||
|
||||
@@ -3,9 +3,7 @@ list(APPEND CRT_SOURCE
|
||||
${CRT_CONIO_SOURCE}
|
||||
${CRT_DIRECT_SOURCE}
|
||||
${CRT_EXCEPT_SOURCE}
|
||||
${CRT_FLOAT_SOURCE}
|
||||
locale/locale.c
|
||||
${CRT_MATH_SOURCE}
|
||||
${CRT_MBSTRING_SOURCE}
|
||||
${CRT_MEM_SOURCE}
|
||||
${CRT_MISC_SOURCE}
|
||||
@@ -25,8 +23,6 @@ list(APPEND CRT_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}
|
||||
@@ -38,6 +34,7 @@ add_asm_files(crt_asm ${CRT_ASM_SOURCE})
|
||||
|
||||
add_library(crt ${CRT_SOURCE} ${crt_asm})
|
||||
target_link_libraries(crt chkstk ${PSEH_LIB})
|
||||
target_sources(crt PRIVATE $<TARGET_OBJECTS:crtmath>)
|
||||
target_compile_definitions(crt
|
||||
PRIVATE __MINGW_IMPORT=extern
|
||||
USE_MSVCRT_PREFIX
|
||||
|
||||
19
sdk/lib/crt/crtmath.cmake
Normal file
19
sdk/lib/crt/crtmath.cmake
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
list(APPEND CRTMATH_SOURCE
|
||||
${CRT_FLOAT_SOURCE}
|
||||
${CRT_MATH_SOURCE}
|
||||
)
|
||||
|
||||
list(APPEND CRTMATH_ASM_SOURCE
|
||||
${CRT_FLOAT_ASM_SOURCE}
|
||||
${CRT_MATH_ASM_SOURCE}
|
||||
)
|
||||
|
||||
add_asm_files(crtmath_asm ${CRTMATH_ASM_SOURCE})
|
||||
|
||||
add_library(crtmath ${CRTMATH_SOURCE} ${crtmath_asm})
|
||||
target_compile_definitions(crtmath PRIVATE
|
||||
USE_MSVCRT_PREFIX
|
||||
__fma3_lib_init=__acrt_initialize_fma3
|
||||
)
|
||||
add_dependencies(crtmath psdk asm)
|
||||
@@ -1,7 +1,5 @@
|
||||
|
||||
list(APPEND UCRTSUPP_SOURCE
|
||||
${CRT_FLOAT_SOURCE}
|
||||
${CRT_MATH_SOURCE}
|
||||
misc/amsg.c
|
||||
misc/purecall.c
|
||||
misc/tls.c
|
||||
@@ -11,8 +9,6 @@ list(APPEND UCRTSUPP_SOURCE
|
||||
)
|
||||
|
||||
list(APPEND UCRTSUPP_ASM_SOURCE
|
||||
${CRT_FLOAT_ASM_SOURCE}
|
||||
${CRT_MATH_ASM_SOURCE}
|
||||
${CRT_SETJMP_ASM_SOURCE}
|
||||
${CRT_WINE_ASM_SOURCE}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user