2 list(APPEND LIBCNTPR_SOURCE
72 if(ARCH STREQUAL "i386")
73 list(APPEND LIBCNTPR_ASM_SOURCE
74 except/i386/chkstk_asm.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
135 elseif(ARCH STREQUAL "arm")
136 list(APPEND LIBCNTPR_SOURCE
137 except/arm/chkstk_asm.s
138 except/arm/__jump_unwind.s
140 math/arm/__rt_sdiv64_worker.c
142 math/arm/__rt_udiv64_worker.c
144 list(APPEND LIBCNTPR_ASM_SOURCE
145 except/arm/_abnormal_termination.s
146 except/arm/_except_handler2.s
147 except/arm/_except_handler3.s
148 except/arm/_global_unwind2.s
149 except/arm/_local_unwind2.s
150 except/arm/chkstk_asm.s
151 except/arm/ehandler.c
153 float/arm/_controlfp.s
155 float/arm/_statusfp.s
176 math/arm/__rt_sdiv64.s
178 math/arm/__rt_udiv64.s
183 if(ARCH STREQUAL "i386")
184 list(APPEND LIBCNTPR_ASM_SOURCE
185 mem/i386/memchr_asm.s
186 mem/i386/memmove_asm.s
187 mem/i386/memset_asm.s
188 string/i386/strcat_asm.s
189 string/i386/strchr_asm.s
190 string/i386/strcmp_asm.s
191 string/i386/strcpy_asm.s
192 string/i386/strlen_asm.s
193 string/i386/strncat_asm.s
194 string/i386/strncmp_asm.s
195 string/i386/strncpy_asm.s
196 string/i386/strnlen_asm.s
197 string/i386/strrchr_asm.s
198 string/i386/wcscat_asm.s
199 string/i386/wcschr_asm.s
200 string/i386/wcscmp_asm.s
201 string/i386/wcscpy_asm.s
202 string/i386/wcslen_asm.s
203 string/i386/wcsncat_asm.s
204 string/i386/wcsncmp_asm.s
205 string/i386/wcsncpy_asm.s
206 string/i386/wcsnlen_asm.s
207 string/i386/wcsrchr_asm.s)
209 list(APPEND LIBCNTPR_SOURCE
239 set_source_files_properties(${LIBCNTPR_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "NO_RTL_INLINES;_NTSYSTEM_;_NTDLLBUILD_;_LIBCNT_;__CRT__NO_INLINE;CRTDLL")
240 add_asm_files(libcntpr_asm ${LIBCNTPR_ASM_SOURCE})
242 add_library(libcntpr ${LIBCNTPR_SOURCE} ${libcntpr_asm})
243 add_target_compile_definitions(libcntpr
250 add_dependencies(libcntpr psdk asm)