float/isnan.c
float/nafter.c
float/scalb.c
- float/${ARCH}/clearfp.c
- float/${ARCH}/cntrlfp.c
- float/${ARCH}/fpreset.c
- float/${ARCH}/logb.c
- float/${ARCH}/statfp.c
locale/locale.c
math/acos.c
math/adjust.c
math/logf.c
math/modf.c
math/rand.c
+ math/sqrtf.c
math/s_modf.c
math/sinf.c
math/sinh.c
mem/memicmp.c
misc/amsg.c
misc/assert.c
- misc/crtmain.c
misc/environ.c
misc/getargs.c
misc/initterm.c
wine/undname.c)
if(ARCH MATCHES i386)
-list(APPEND CRT_SOURCE except/i386/prolog.s except/i386/unwind.c)
+list(APPEND CRT_SOURCE
+ except/i386/chkstk_asm.s
+ except/i386/prolog.s
+ except/i386/unwind.c
+ float/i386/clearfp.c
+ float/i386/cntrlfp.c
+ float/i386/fpreset.c
+ float/i386/logb.c
+ float/i386/statfp.c)
elseif(ARCH MATCHES amd64)
-list(APPEND CRT_SOURCE chkstk_asm.s)
+list(APPEND CRT_SOURCE
+ except/amd64/chkstk_asm.s
+ float/i386/clearfp.c
+ float/i386/cntrlfp.c
+ float/i386/fpreset.c
+ float/i386/logb.c
+ float/i386/statfp.c)
endif(ARCH MATCHES i386)
if(ARCH MATCHES i386)
math/i386/sin_asm.s
math/i386/sqrt_asm.s
math/i386/tan_asm.s
- math/i386/atan2.c
+ math/i386/atan2_asm.s
math/i386/ci.c
- math/i386/exp.c
- math/i386/fmod.c
- math/i386/fmodf.c
+ math/i386/exp_asm.s
+ math/i386/fmod_asm.s
+ math/i386/fmodf_asm.s
math/i386/ldexp.c
- math/i386/sqrtf.c
mem/i386/memchr_asm.s
- mem/i386/memcpy_asm.s
mem/i386/memmove_asm.s
mem/i386/memset_asm.s
+ misc/i386/readcr4.S
string/i386/strcat_asm.s
string/i386/strchr_asm.s
string/i386/strcmp_asm.s
math/amd64/tan.S)
endif(ARCH MATCHES amd64)
-add_library(crt ${CRT_SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/crt_precomp.h.gch)
+add_library(crt ${CMAKE_CURRENT_BINARY_DIR}/crt_precomp.h.gch ${CRT_SOURCE})
set_property(TARGET crt PROPERTY COMPILE_DEFINITIONS __MINGW_IMPORT=extern USE_MSVCRT_PREFIX _MSVCRT_LIB_ _MSVCRT_ _MT)
add_pch(crt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${CRT_SOURCE})
-add_dependencies(crt psdk)
+add_dependencies(crt psdk buildno_header asm)
list(APPEND LIBCNTPR_SOURCE
except/${ARCH}/chkstk_asm.s
math/i386/fabs_asm.s
math/i386/floor_asm.s
math/i386/ftol_asm.s
+ math/i386/ftol2_asm.s
math/i386/log_asm.s
math/i386/pow_asm.s
math/i386/sin_asm.s
math/i386/sqrt_asm.s
math/i386/tan_asm.s
- math/i386/ci.c)
+ math/i386/ci.c
+ misc/i386/readcr4.S)
elseif(ARCH MATCHES amd64)
list(APPEND LIBCNTPR_SOURCE
math/cos.c
if(ARCH MATCHES i386)
list(APPEND LIBCNTPR_SOURCE
mem/i386/memchr_asm.s
- mem/i386/memcpy_asm.s
mem/i386/memmove_asm.s
mem/i386/memset_asm.s
string/i386/strcat_asm.s
add_library(libcntpr ${LIBCNTPR_SOURCE})
set_property(TARGET libcntpr PROPERTY COMPILE_DEFINITIONS NO_RTL_INLINES _NTSYSTEM_ _NTDLLBUILD_ _LIBCNT_ __CRT__NO_INLINE)
-add_dependencies(libcntpr psdk)
+add_dependencies(libcntpr psdk buildno_header asm)
+
+# This is a temporary solution until we have proper crt libs
+list(APPEND MSVCSUP_SOURCE
+ misc/fltused.c
+ except/i386/chkstk_asm.s
+ math/i386/ftol2_asm.S
+)
+
+add_library(msvcsup ${MSVCSUP_SOURCE})
+add_dependencies(msvcsup psdk buildno_header asm)