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