mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:33:04 +00:00
[CRT] Refactor CMake files
This commit is contained in:
parent
3e1454c739
commit
8c4aff39a8
22 changed files with 936 additions and 886 deletions
85
sdk/lib/crt/except/except.cmake
Normal file
85
sdk/lib/crt/except/except.cmake
Normal file
|
@ -0,0 +1,85 @@
|
|||
|
||||
if(ARCH STREQUAL "i386")
|
||||
list(APPEND LIBCNTPR_EXCEPT_ASM_SOURCE
|
||||
except/i386/chkstk_asm.s
|
||||
)
|
||||
if(NOT MSVC)
|
||||
list(APPEND LIBCNTPR_EXCEPT_ASM_SOURCE
|
||||
except/i386/chkstk_ms.s)
|
||||
endif()
|
||||
list(APPEND CRT_EXCEPT_ASM_SOURCE
|
||||
except/i386/chkesp.s
|
||||
except/i386/prolog.s
|
||||
)
|
||||
if(MSVC)
|
||||
list(APPEND CRT_EXCEPT_ASM_SOURCE
|
||||
except/i386/cpp.s)
|
||||
endif()
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
list(APPEND LIBCNTPR_EXCEPT_SOURCE
|
||||
except/amd64/ehandler.c
|
||||
)
|
||||
list(APPEND LIBCNTPR_EXCEPT_ASM_SOURCE
|
||||
except/amd64/chkstk_ms.s
|
||||
except/amd64/seh.s
|
||||
)
|
||||
list(APPEND CRT_EXCEPT_ASM_SOURCE
|
||||
except/amd64/seh.s
|
||||
)
|
||||
if(MSVC)
|
||||
list(APPEND CRT_EXCEPT_ASM_SOURCE
|
||||
except/amd64/cpp.s)
|
||||
endif()
|
||||
elseif(ARCH STREQUAL "arm")
|
||||
list(APPEND LIBCNTPR_EXCEPT_SOURCE
|
||||
except/arm/ehandler.c
|
||||
)
|
||||
list(APPEND LIBCNTPR_EXCEPT_ASM_SOURCE
|
||||
except/arm/__jump_unwind.s
|
||||
except/arm/_abnormal_termination.s
|
||||
except/arm/_except_handler2.s
|
||||
except/arm/_except_handler3.s
|
||||
except/arm/_global_unwind2.s
|
||||
except/arm/_local_unwind2.s
|
||||
except/arm/chkstk_asm.s
|
||||
)
|
||||
list(APPEND CRT_EXCEPT_ASM_SOURCE
|
||||
except/arm/_abnormal_termination.s
|
||||
except/arm/_except_handler2.s
|
||||
except/arm/_except_handler3.s
|
||||
except/arm/_global_unwind2.s
|
||||
except/arm/_local_unwind2.s
|
||||
except/arm/chkstk_asm.s
|
||||
)
|
||||
if(MSVC)
|
||||
list(APPEND CRT_EXCEPT_ASM_SOURCE
|
||||
except/arm/cpp.s)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
list(APPEND CRT_EXCEPT_SOURCE
|
||||
${LIBCNTPR_EXCEPT_SOURCE}
|
||||
except/matherr.c
|
||||
except/stack.c
|
||||
)
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
list(APPEND CHKSTK_ASM_SOURCE except/i386/chkstk_asm.s)
|
||||
if(NOT MSVC)
|
||||
list(APPEND CHKSTK_ASM_SOURCE except/i386/chkstk_ms.s)
|
||||
endif()
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
list(APPEND CHKSTK_ASM_SOURCE except/amd64/chkstk_ms.s)
|
||||
elseif(ARCH STREQUAL "arm")
|
||||
list(APPEND CHKSTK_ASM_SOURCE except/arm/chkstk_asm.s)
|
||||
if(NOT MSVC)
|
||||
list(APPEND CHKSTK_ASM_SOURCE except/arm/chkstk_ms.s)
|
||||
endif()
|
||||
elseif(ARCH STREQUAL "powerpc")
|
||||
list(APPEND CHKSTK_ASM_SOURCE except/powerpc/chkstk_asm.s)
|
||||
endif()
|
||||
|
||||
add_asm_files(chkstk_lib_asm ${CHKSTK_ASM_SOURCE})
|
||||
add_library(chkstk ${CHKSTK_SOURCE} ${chkstk_lib_asm})
|
||||
set_target_properties(chkstk PROPERTIES LINKER_LANGUAGE "C")
|
||||
add_dependencies(chkstk asm)
|
Loading…
Add table
Add a link
Reference in a new issue