xref: /reactos/sdk/lib/crt/stdlib/stdlib.cmake (revision 4225717d)
1
2list(APPEND COMMON_STDLIB_SOURCE
3    stdlib/qsort.c
4)
5
6list(APPEND LIBCNTPR_STDLIB_SOURCE
7    ${COMMON_STDLIB_SOURCE}
8    stdlib/rand_nt.c
9)
10
11list(APPEND CRT_STDLIB_SOURCE
12    ${COMMON_STDLIB_SOURCE}
13    stdlib/_exit.c
14    stdlib/_invalid_parameter.c
15    stdlib/_set_abort_behavior.c
16    stdlib/abort.c
17    stdlib/atexit.c
18    stdlib/ecvt.c
19    stdlib/errno.c
20    stdlib/fcvt.c
21    stdlib/fcvtbuf.c
22    stdlib/fullpath.c
23    stdlib/gcvt.c
24    stdlib/getenv.c
25    stdlib/makepath.c
26    stdlib/makepath_s.c
27    stdlib/mbtowc.c
28    stdlib/mbstowcs.c
29    stdlib/obsol.c
30    stdlib/putenv.c
31    stdlib/rand.c
32    stdlib/rand_s.c
33    stdlib/rot.c
34    stdlib/senv.c
35    stdlib/swab.c
36    stdlib/wfulpath.c
37    stdlib/wputenv.c
38    stdlib/wsenv.c
39    stdlib/wmakpath.c
40    stdlib/wmakpath_s.c
41)
42
43if(MSVC AND CMAKE_C_COMPILER_ID STREQUAL "Clang")
44    if(ARCH STREQUAL "i386")
45        list(APPEND CRT_STDLIB_ASM_SOURCE
46            stdlib/clang-alias.s
47        )
48    elseif(ARCH STREQUAL "amd64")
49        list(APPEND CRT_STDLIB_ASM_SOURCE
50            stdlib/clang-alias.s
51        )
52    endif()
53endif()
54