mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:11:55 +00:00
[CRT] Refactor CMake files
This commit is contained in:
parent
3e1454c739
commit
8c4aff39a8
22 changed files with 936 additions and 886 deletions
32
sdk/lib/crt/mem/mem.cmake
Normal file
32
sdk/lib/crt/mem/mem.cmake
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue