xref: /reactos/sdk/lib/ucrt/string/string.cmake (revision b09b5584)
1
2list(APPEND UCRT_STRING_SOURCES
3    string/memcpy_s.cpp
4    string/memicmp.cpp
5    string/strcat_s.cpp
6    string/strcoll.cpp
7    string/strcpy_s.cpp
8    string/strdup.cpp
9    string/stricmp.cpp
10    string/stricoll.cpp
11    string/strlwr.cpp
12    string/strncat_s.cpp
13    string/strncnt.cpp
14    string/strncoll.cpp
15    string/strncpy_s.cpp
16    string/strnicmp.cpp
17    string/strnicol.cpp
18    string/strnlen.cpp
19    string/strnset_s.cpp
20    string/strset_s.cpp
21    string/strtok.cpp
22    string/strtok_s.cpp
23    string/strupr.cpp
24    string/strxfrm.cpp
25    string/wcscat.cpp
26    string/wcscat_s.cpp
27    string/wcscmp.cpp
28    string/wcscoll.cpp
29    string/wcscpy.cpp
30    string/wcscpy_s.cpp
31    string/wcscspn.cpp
32    string/wcsdup.cpp
33    string/wcsicmp.cpp
34    string/wcsicoll.cpp
35    string/wcslwr.cpp
36    string/wcsncat.cpp
37    string/wcsncat_s.cpp
38    string/wcsncmp.cpp
39    string/wcsncnt.cpp
40    string/wcsncoll.cpp
41    string/wcsncpy.cpp
42    string/wcsncpy_s.cpp
43    string/wcsnicmp.cpp
44    string/wcsnicol.cpp
45    string/wcsnset.cpp
46    string/wcsnset_s.cpp
47    string/wcspbrk.cpp
48    string/wcsrev.cpp
49    string/wcsset.cpp
50    string/wcsset_s.cpp
51    string/wcsspn.cpp
52    string/wcstok.cpp
53    string/wcstok_s.cpp
54    string/wcsupr.cpp
55    string/wcsxfrm.cpp
56    string/wmemcpy_s.cpp
57    string/wmemmove_s.cpp
58)
59
60if(${ARCH} STREQUAL "i386")
61    list(APPEND UCRT_STRING_ASM_SOURCES
62        string/i386/_memicmp.s
63        string/i386/_strnicm.s
64        string/i386/memccpy.s
65        string/i386/strcat.s
66        string/i386/strcmp.s
67        string/i386/strcspn.s
68        string/i386/strlen.s
69        string/i386/strncat.s
70        string/i386/strncmp.s
71        string/i386/strncpy.s
72        string/i386/strnset.s
73        string/i386/strpbrk.s
74        string/i386/strrev.s
75        string/i386/strset.s
76        string/i386/strspn.s
77    )
78elseif(${ARCH} STREQUAL "amd64")
79    list(APPEND UCRT_STRING_ASM_SOURCES
80        string/amd64/strcat.s
81        string/amd64/strcmp.s
82        string/amd64/strlen.s
83        string/amd64/strncat.s
84        string/amd64/strncmp.s
85        string/amd64/strncpy.s
86    )
87    list(APPEND UCRT_STRING_SOURCES
88        string/amd64/strcspn.c
89        string/amd64/strpbrk.c
90        string/amd64/strspn.c
91        string/memccpy.c
92        string/strnset.c
93        string/strrev.c
94        string/strset.c
95    )
96else()
97    if(${ARCH} STREQUAL "arm64")
98        list(APPEND UCRT_STRING_ASM_SOURCES
99            string/arm64/strlen.s
100            string/arm64/wcslen.s
101    )
102    else()
103        list(APPEND UCRT_STRING_SOURCES
104            string/arm/strlen.c
105        )
106    endif()
107    list(APPEND UCRT_STRING_SOURCES
108        string/memccpy.c
109        string/strcat.c
110        string/strcmp.c
111        string/strcspn.c
112        string/strncat.c
113        string/strncmp.c
114        string/strncpy.c
115        string/strnset.c
116        string/strpbrk.c
117        string/strrev.c
118        string/strset.c
119        string/strspn.c
120    )
121endif()
122
123add_asm_files(UCRT_STRING_ASM ${UCRT_STRING_ASM_SOURCES})
124list(APPEND UCRT_STRING_SOURCES ${UCRT_STRING_ASM})
125