[CRT] Refactor CMake files

This commit is contained in:
Timo Kreuzer 2021-07-17 14:53:17 +02:00
parent 3e1454c739
commit 8c4aff39a8
22 changed files with 936 additions and 886 deletions

32
sdk/lib/crt/mem/mem.cmake Normal file
View file

@ -0,0 +1,32 @@
list(APPEND LIBCNTPR_MEM_SOURCE
mem/memccpy.c
mem/memcmp.c
mem/memicmp.c
)
if(ARCH STREQUAL "i386")
list(APPEND LIBCNTPR_MEM_ASM_SOURCE
mem/i386/memchr_asm.s
mem/i386/memmove_asm.s
mem/i386/memset_asm.s
)
list(APPEND CRT_MEM_ASM_SOURCE
${LIBCNTPR_MEM_ASM_SOURCE}
)
else()
list(APPEND LIBCNTPR_MEM_SOURCE
mem/memchr.c
mem/memcpy.c
mem/memmove.c
mem/memset.c
)
endif()
list(APPEND CRT_MEM_SOURCE
${LIBCNTPR_MEM_SOURCE}
)
# Needed by ext2fs. Should use RtlCompareMemory instead?
add_library(memcmp mem/memcmp.c)
add_dependencies(memcmp psdk)