2 list(APPEND LIBCNTPR_SOURCE
70 if(ARCH STREQUAL "i386")
71 list(APPEND LIBCNTPR_ASM_SOURCE
72 except/i386/chkstk_asm.s
74 except/i386/seh_prolog.s
76 math/i386/alldiv_asm.s
77 math/i386/alldvrm_asm.s
78 math/i386/allmul_asm.s
79 math/i386/allrem_asm.s
80 math/i386/allshl_asm.s
81 math/i386/allshr_asm.s
84 math/i386/aulldiv_asm.s
85 math/i386/aulldvrm_asm.s
86 math/i386/aullrem_asm.s
87 math/i386/aullshr_asm.s
102 list(APPEND LIBCNTPR_SOURCE
110 list(APPEND LIBCNTPR_SOURCE except/i386/chkstk_ms.s)
112 elseif(ARCH STREQUAL "amd64")
113 list(APPEND LIBCNTPR_ASM_SOURCE
114 except/amd64/chkstk_asm.s
116 setjmp/amd64/setjmp.s
131 list(APPEND LIBCNTPR_SOURCE
132 except/amd64/ehandler.c
137 if(ARCH STREQUAL "i386")
138 list(APPEND LIBCNTPR_ASM_SOURCE
139 mem/i386/memchr_asm.s
140 mem/i386/memmove_asm.s
141 mem/i386/memset_asm.s
142 string/i386/strcat_asm.s
143 string/i386/strchr_asm.s
144 string/i386/strcmp_asm.s
145 string/i386/strcpy_asm.s
146 string/i386/strlen_asm.s
147 string/i386/strncat_asm.s
148 string/i386/strncmp_asm.s
149 string/i386/strncpy_asm.s
150 string/i386/strnlen_asm.s
151 string/i386/strrchr_asm.s
152 string/i386/wcscat_asm.s
153 string/i386/wcschr_asm.s
154 string/i386/wcscmp_asm.s
155 string/i386/wcscpy_asm.s
156 string/i386/wcslen_asm.s
157 string/i386/wcsncat_asm.s
158 string/i386/wcsncmp_asm.s
159 string/i386/wcsncpy_asm.s
160 string/i386/wcsnlen_asm.s
161 string/i386/wcsrchr_asm.s)
163 list(APPEND LIBCNTPR_SOURCE
190 set_source_files_properties(${LIBCNTPR_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "NO_RTL_INLINES;_NTSYSTEM_;_NTDLLBUILD_;_LIBCNT_;__CRT__NO_INLINE;CRTDLL")
191 add_asm_files(libcntpr_asm ${LIBCNTPR_ASM_SOURCE})
193 add_library(libcntpr ${LIBCNTPR_SOURCE} ${libcntpr_asm})
194 add_target_compile_definitions(libcntpr
201 add_dependencies(libcntpr psdk asm)