mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 04:33:55 +00:00
[CRT] Refactor CMake files
This commit is contained in:
parent
3e1454c739
commit
8c4aff39a8
22 changed files with 936 additions and 886 deletions
49
sdk/lib/crt/stdlib/stdlib.cmake
Normal file
49
sdk/lib/crt/stdlib/stdlib.cmake
Normal file
|
@ -0,0 +1,49 @@
|
|||
|
||||
list(APPEND LIBCNTPR_STDLIB_SOURCE
|
||||
stdlib/qsort.c
|
||||
)
|
||||
|
||||
list(APPEND CRT_STDLIB_SOURCE
|
||||
${LIBCNTPR_STDLIB_SOURCE}
|
||||
stdlib/_exit.c
|
||||
stdlib/_set_abort_behavior.c
|
||||
stdlib/abort.c
|
||||
stdlib/atexit.c
|
||||
stdlib/ecvt.c
|
||||
stdlib/errno.c
|
||||
stdlib/fcvt.c
|
||||
stdlib/fcvtbuf.c
|
||||
stdlib/fullpath.c
|
||||
stdlib/gcvt.c
|
||||
stdlib/getenv.c
|
||||
stdlib/makepath.c
|
||||
stdlib/makepath_s.c
|
||||
stdlib/mbtowc.c
|
||||
stdlib/mbstowcs.c
|
||||
stdlib/obsol.c
|
||||
stdlib/putenv.c
|
||||
stdlib/rot.c
|
||||
stdlib/senv.c
|
||||
stdlib/swab.c
|
||||
stdlib/wfulpath.c
|
||||
stdlib/wputenv.c
|
||||
stdlib/wsenv.c
|
||||
stdlib/wmakpath.c
|
||||
stdlib/wmakpath_s.c
|
||||
)
|
||||
|
||||
if(USE_CLANG_CL)
|
||||
# clang-cl is missing pragma function support
|
||||
# https://bugs.llvm.org/show_bug.cgi?id=35116
|
||||
set_property(SOURCE stdlib/rot.c APPEND_STRING PROPERTY COMPILE_FLAGS " /fallback")
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
list(APPEND CRT_STDLIB_ASM_SOURCE
|
||||
stdlib/clang-alias.s
|
||||
)
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
list(APPEND CRT_STDLIB_ASM_SOURCE
|
||||
stdlib/clang-alias.s
|
||||
)
|
||||
endif()
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue