2 include_directories(include)
4 add_definitions(-D_CRTBLD)
144 setjmp/${ARCH}/setjmp.s
284 if(ARCH MATCHES i386)
285 list(APPEND CRT_SOURCE
286 except/i386/chkstk_asm.s
294 elseif(ARCH MATCHES amd64)
295 list(APPEND CRT_SOURCE
296 except/amd64/chkstk_asm.s
302 endif(ARCH MATCHES i386)
304 if(ARCH MATCHES i386)
305 list(APPEND CRT_SOURCE
306 math/i386/alldiv_asm.s
307 math/i386/alldvrm_asm.s
308 math/i386/allmul_asm.s
309 math/i386/allrem_asm.s
310 math/i386/allshl_asm.s
311 math/i386/allshr_asm.s
313 math/i386/aulldiv_asm.s
314 math/i386/aulldvrm_asm.s
315 math/i386/aullrem_asm.s
316 math/i386/aullshr_asm.s
321 math/i386/floor_asm.s
325 math/i386/log10_asm.s
330 math/i386/atan2_asm.s
334 math/i386/fmodf_asm.s
336 mem/i386/memchr_asm.s
337 mem/i386/memmove_asm.s
338 mem/i386/memset_asm.s
340 string/i386/strcat_asm.s
341 string/i386/strchr_asm.s
342 string/i386/strcmp_asm.s
343 string/i386/strcpy_asm.s
344 string/i386/strlen_asm.s
345 string/i386/strncat_asm.s
346 string/i386/strncmp_asm.s
347 string/i386/strncpy_asm.s
348 string/i386/strnlen_asm.s
349 string/i386/strrchr_asm.s
350 string/i386/wcscat_asm.s
351 string/i386/wcschr_asm.s
352 string/i386/wcscmp_asm.s
353 string/i386/wcscpy_asm.s
354 string/i386/wcslen_asm.s
355 string/i386/wcsncat_asm.s
356 string/i386/wcsncmp_asm.s
357 string/i386/wcsncpy_asm.s
358 string/i386/wcsnlen_asm.s
359 string/i386/wcsrchr_asm.s)
361 list(APPEND CRT_SOURCE
387 endif(ARCH MATCHES i386)
389 if(ARCH MATCHES amd64)
390 list(APPEND CRT_SOURCE
411 endif(ARCH MATCHES amd64)
413 add_library(crt ${CMAKE_CURRENT_BINARY_DIR}/crt_precomp.h.gch ${CRT_SOURCE})
415 set_property(TARGET crt PROPERTY COMPILE_DEFINITIONS __MINGW_IMPORT=extern USE_MSVCRT_PREFIX _MSVCRT_LIB_ _MSVCRT_ _MT)
416 add_pch(crt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${CRT_SOURCE})
417 add_dependencies(crt psdk buildno_header asm)
419 list(APPEND LIBCNTPR_SOURCE
420 except/${ARCH}/chkstk_asm.s
431 setjmp/${ARCH}/setjmp.s
471 if(ARCH MATCHES i386)
472 list(APPEND LIBCNTPR_SOURCE
473 math/i386/alldiv_asm.s
474 math/i386/alldvrm_asm.s
475 math/i386/allmul_asm.s
476 math/i386/allrem_asm.s
477 math/i386/allshl_asm.s
478 math/i386/allshr_asm.s
480 math/i386/aulldiv_asm.s
481 math/i386/aulldvrm_asm.s
482 math/i386/aullrem_asm.s
483 math/i386/aullshr_asm.s
487 math/i386/floor_asm.s
489 math/i386/ftol2_asm.s
497 elseif(ARCH MATCHES amd64)
498 list(APPEND LIBCNTPR_SOURCE
515 endif(ARCH MATCHES i386)
517 if(ARCH MATCHES i386)
518 list(APPEND LIBCNTPR_SOURCE
519 mem/i386/memchr_asm.s
520 mem/i386/memmove_asm.s
521 mem/i386/memset_asm.s
522 string/i386/strcat_asm.s
523 string/i386/strchr_asm.s
524 string/i386/strcmp_asm.s
525 string/i386/strcpy_asm.s
526 string/i386/strlen_asm.s
527 string/i386/strncat_asm.s
528 string/i386/strncmp_asm.s
529 string/i386/strncpy_asm.s
530 string/i386/strnlen_asm.s
531 string/i386/strrchr_asm.s
532 string/i386/wcscat_asm.s
533 string/i386/wcschr_asm.s
534 string/i386/wcscmp_asm.s
535 string/i386/wcscpy_asm.s
536 string/i386/wcslen_asm.s
537 string/i386/wcsncat_asm.s
538 string/i386/wcsncmp_asm.s
539 string/i386/wcsncpy_asm.s
540 string/i386/wcsnlen_asm.s
541 string/i386/wcsrchr_asm.s)
543 list(APPEND LIBCNTPR_SOURCE
568 endif(ARCH MATCHES i386)
570 add_library(libcntpr ${LIBCNTPR_SOURCE})
571 set_property(TARGET libcntpr PROPERTY COMPILE_DEFINITIONS NO_RTL_INLINES _NTSYSTEM_ _NTDLLBUILD_ _LIBCNT_ __CRT__NO_INLINE)
572 add_dependencies(libcntpr psdk buildno_header asm)
574 # This is a temporary solution until we have proper crt libs
575 list(APPEND MSVCSUP_SOURCE
577 except/i386/chkstk_asm.s
578 math/i386/ftol2_asm.S
581 add_library(msvcsup ${MSVCSUP_SOURCE})
582 add_dependencies(msvcsup psdk buildno_header asm)