mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 23:46:50 +00:00
9ed2e0b5bc
svn path=/branches/condrv_restructure/; revision=63744
55 lines
1.5 KiB
CMake
55 lines
1.5 KiB
CMake
|
|
include_directories(include)
|
|
|
|
add_definitions(-D_CRTBLD)
|
|
|
|
if(ARCH STREQUAL "i386")
|
|
list(APPEND CHKSTK_ASM_SOURCE except/i386/chkstk_asm.s)
|
|
if(NOT MSVC)
|
|
list(APPEND CHKSTK_SOURCE except/i386/chkstk_ms.s)
|
|
endif()
|
|
elseif(ARCH STREQUAL "amd64")
|
|
list(APPEND CHKSTK_ASM_SOURCE except/amd64/chkstk_asm.s)
|
|
if(NOT MSVC)
|
|
list(APPEND CHKSTK_SOURCE except/amd64/chkstk_ms.s)
|
|
endif()
|
|
elseif(ARCH STREQUAL "arm")
|
|
list(APPEND CHKSTK_ASM_SOURCE except/arm/chkstk_asm.s)
|
|
if(NOT MSVC)
|
|
list(APPEND CHKSTK_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)
|
|
|
|
include(crt.cmake)
|
|
include(libcntpr.cmake)
|
|
include(msvcrtex.cmake)
|
|
include(oldnames.cmake)
|
|
|
|
add_library(user32_wsprintf
|
|
printf/streamout.c
|
|
printf/wstreamout.c
|
|
printf/wsprintfA.c
|
|
printf/wsprintfW.c
|
|
printf/wvsprintfA.c
|
|
printf/wvsprintfW.c
|
|
printf/wvsnprintfA.c
|
|
printf/wvsnprintfW.c
|
|
string/strnlen.c
|
|
string/wcsnlen.c
|
|
string/mbstowcs_nt.c
|
|
string/wcstombs_nt.c)
|
|
|
|
add_dependencies(user32_wsprintf psdk)
|
|
add_target_compile_definitions(user32_wsprintf _USER32_WSPRINTF)
|
|
|
|
add_library(getopt misc/getopt.c)
|
|
add_target_compile_definitions(getopt _DLL __USE_CRTIMP)
|
|
add_dependencies(getopt psdk)
|