2 list(APPEND LIBCNTPR_SOURCE
72 if(ARCH STREQUAL "i386")
73 list(APPEND LIBCNTPR_ASM_SOURCE
74 except/i386/chkstk_asm.s
76 except/i386/seh_prolog.s
78 math/i386/alldiv_asm.s
79 math/i386/alldvrm_asm.s
80 math/i386/allmul_asm.s
81 math/i386/allrem_asm.s
82 math/i386/allshl_asm.s
83 math/i386/allshr_asm.s
86 math/i386/aulldiv_asm.s
87 math/i386/aulldvrm_asm.s
88 math/i386/aullrem_asm.s
89 math/i386/aullshr_asm.s
104 list(APPEND LIBCNTPR_SOURCE
112 list(APPEND LIBCNTPR_SOURCE except/i386/chkstk_ms.s)
114 elseif(ARCH STREQUAL "amd64")
115 list(APPEND LIBCNTPR_ASM_SOURCE
116 except/amd64/chkstk_asm.s
118 setjmp/amd64/setjmp.s
133 list(APPEND LIBCNTPR_SOURCE
134 except/amd64/ehandler.c
137 elseif(ARCH STREQUAL "arm")
138 list(APPEND LIBCNTPR_SOURCE
139 except/arm/chkstk_asm.s
140 except/arm/__jump_unwind.s
142 math/arm/__rt_sdiv64_worker.c
144 math/arm/__rt_udiv64_worker.c
146 list(APPEND LIBCNTPR_ASM_SOURCE
147 except/arm/_abnormal_termination.s
148 except/arm/_except_handler2.s
149 except/arm/_except_handler3.s
150 except/arm/_global_unwind2.s
151 except/arm/_local_unwind2.s
152 except/arm/chkstk_asm.s
153 except/arm/ehandler.c
155 float/arm/_controlfp.s
157 float/arm/_statusfp.s
178 math/arm/__rt_sdiv64.s
180 math/arm/__rt_udiv64.s
185 if(ARCH STREQUAL "i386")
186 list(APPEND LIBCNTPR_ASM_SOURCE
187 mem/i386/memchr_asm.s
188 mem/i386/memmove_asm.s
189 mem/i386/memset_asm.s
190 string/i386/strcat_asm.s
191 string/i386/strchr_asm.s
192 string/i386/strcmp_asm.s
193 string/i386/strcpy_asm.s
194 string/i386/strlen_asm.s
195 string/i386/strncat_asm.s
196 string/i386/strncmp_asm.s
197 string/i386/strncpy_asm.s
198 string/i386/strnlen_asm.s
199 string/i386/strrchr_asm.s
200 string/i386/wcscat_asm.s
201 string/i386/wcschr_asm.s
202 string/i386/wcscmp_asm.s
203 string/i386/wcscpy_asm.s
204 string/i386/wcslen_asm.s
205 string/i386/wcsncat_asm.s
206 string/i386/wcsncmp_asm.s
207 string/i386/wcsncpy_asm.s
208 string/i386/wcsnlen_asm.s
209 string/i386/wcsrchr_asm.s)
211 list(APPEND LIBCNTPR_SOURCE
241 set_source_files_properties(${LIBCNTPR_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "NO_RTL_INLINES;_NTSYSTEM_;_NTDLLBUILD_;_LIBCNT_;__CRT__NO_INLINE;CRTDLL")
242 add_asm_files(libcntpr_asm ${LIBCNTPR_ASM_SOURCE})
244 add_library(libcntpr ${LIBCNTPR_SOURCE} ${libcntpr_asm})
245 add_target_compile_definitions(libcntpr
252 add_dependencies(libcntpr psdk asm)