reactos/sdk/lib/crt/mem/mem.cmake
2021-07-20 23:13:03 +02:00

33 lines
647 B
CMake

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)