1 2list(APPEND LIBCNTPR_STRING_SOURCE 3 string/_splitpath.c 4 string/_wsplitpath.c 5 string/ctype.c 6 string/iswctype.c 7 string/is_wctype.c 8 string/scanf.c 9 string/strcspn.c 10 string/stricmp.c 11 string/strnicmp.c 12 string/strlwr.c 13 string/strrev.c 14 string/strset.c 15 string/strstr.c 16 string/strupr.c 17 string/strpbrk.c 18 string/strspn.c 19 string/atoi64.c 20 string/atoi.c 21 string/atol.c 22 string/itoa.c 23 string/itow.c 24 string/strtoi64.c 25 string/strtol.c 26 string/strtoul.c 27 string/strtoull.c 28 string/wcs.c 29 string/wcstol.c 30 string/wcstoul.c 31 string/wctype.c 32 string/wtoi64.c 33 string/wtoi.c 34 string/wtol.c 35 string/winesup.c 36) 37 38if(ARCH STREQUAL "i386") 39 list(APPEND LIBCNTPR_STRING_ASM_SOURCE 40 string/i386/strcat_asm.s 41 string/i386/strchr_asm.s 42 string/i386/strcmp_asm.s 43 string/i386/strcpy_asm.s 44 string/i386/strlen_asm.s 45 string/i386/strncat_asm.s 46 string/i386/strncmp_asm.s 47 string/i386/strncpy_asm.s 48 string/i386/strnlen_asm.s 49 string/i386/strrchr_asm.s 50 string/i386/wcscat_asm.s 51 string/i386/wcschr_asm.s 52 string/i386/wcscmp_asm.s 53 string/i386/wcscpy_asm.s 54 string/i386/wcslen_asm.s 55 string/i386/wcsncat_asm.s 56 string/i386/wcsncmp_asm.s 57 string/i386/wcsncpy_asm.s 58 string/i386/wcsnlen_asm.s 59 string/i386/wcsrchr_asm.s 60 ) 61else() 62 list(APPEND LIBCNTPR_STRING_SOURCE 63 string/strcat.c 64 string/strchr.c 65 string/strcmp.c 66 string/strcpy.c 67 string/strlen.c 68 string/strncat.c 69 string/strncmp.c 70 string/strncpy.c 71 string/strnlen.c 72 string/strrchr.c 73 string/wcscat.c 74 string/wcschr.c 75 string/wcscmp.c 76 string/wcscpy.c 77 string/wcslen.c 78 string/wcsncat.c 79 string/wcsncmp.c 80 string/wcsncpy.c 81 string/wcsnlen.c 82 string/wcsrchr.c 83 ) 84endif() 85 86list(APPEND CRT_STRING_SOURCE 87 ${LIBCNTPR_STRING_SOURCE} 88 string/_mbsnlen.c 89 string/_mbstrnlen.c 90 string/_splitpath_s.c 91 string/_wcslwr_s.c 92 string/_wsplitpath_s.c 93 string/atof.c 94 string/mbstowcs_s.c 95 string/strcoll.c 96 string/strdup.c 97 string/strerror.c 98 string/string.c 99 string/strncoll.c 100 string/strtod.c 101 string/strtok.c 102 string/strtok_s.c 103 string/strtoul.c 104 string/strxfrm.c 105 string/wcstombs_s.c 106 string/wtof.c 107) 108 109list(APPEND CRT_STRING_ASM_SOURCE 110 ${LIBCNTPR_STRING_ASM_SOURCE} 111) 112 113list(APPEND LIBCNTPR_STRING_SOURCE 114 string/mbstowcs_nt.c 115 string/wcstombs_nt.c 116) 117 118# Used by acpi.sys 119add_library(strtol 120 string/ctype.c 121 string/iswctype.c 122 string/strtoi64.c 123 string/strtol.c 124 string/strtoul.c 125 string/strtoull.c 126 string/wctype.c) 127target_compile_definitions(strtol PRIVATE _LIBCNT_) 128add_dependencies(strtol psdk) 129