2014-10-18 14:22:09 +00:00
|
|
|
|
2014-02-10 17:12:41 +00:00
|
|
|
include(../ntos.cmake)
|
|
|
|
|
2014-11-10 16:26:55 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl)
|
2014-02-10 17:12:41 +00:00
|
|
|
spec2def(ntkrnlmp.exe ../ntoskrnl.spec)
|
|
|
|
|
2020-06-06 20:59:26 +00:00
|
|
|
if(MSVC_IDE)
|
2014-02-10 17:12:41 +00:00
|
|
|
set_source_files_properties(${NTKRNLMP_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "CONFIG_SMP")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_asm_files(ntkrnlmp_asm ${NTKRNLMP_ASM_SOURCE})
|
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
list(APPEND NTKRNLMP_PCH_SKIP_SOURCE
|
|
|
|
${REACTOS_SOURCE_DIR}/ntoskrnl/guid.c)
|
|
|
|
|
2014-02-10 17:12:41 +00:00
|
|
|
add_executable(ntkrnlmp
|
|
|
|
${ntkrnlmp_asm}
|
|
|
|
${NTKRNLMP_SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${NTKRNLMP_PCH_SKIP_SOURCE}
|
2014-02-10 17:12:41 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/ntoskrnl/ntoskrnl.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntkrnlmp.def)
|
2021-02-24 10:47:18 +00:00
|
|
|
set_module_type(ntkrnlmp kernel)
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_definitions(ntkrnlmp PRIVATE CONFIG_SMP)
|
2014-02-10 17:12:41 +00:00
|
|
|
|
2020-04-09 01:40:17 +00:00
|
|
|
# dynamic analysis switches
|
2014-10-04 20:26:14 +00:00
|
|
|
if(STACK_PROTECTOR)
|
2020-12-31 16:56:39 +00:00
|
|
|
target_sources(ntkrnlmp PRIVATE $<TARGET_OBJECTS:gcc_ssp_nt>)
|
2020-04-09 01:40:17 +00:00
|
|
|
endif()
|
|
|
|
|
2020-03-26 14:45:59 +00:00
|
|
|
target_link_libraries(ntkrnlmp cportlib csq ${PSEH_LIB} arbiter cmlib ntlsalib rtl ${ROSSYM_LIB} libcntpr wdmguid ioevent)
|
2014-02-10 17:12:41 +00:00
|
|
|
add_importlibs(ntkrnlmp hal kdcom bootvid)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(ntkrnlmp ${REACTOS_SOURCE_DIR}/ntoskrnl/include/ntoskrnl.h "${NTKRNLMP_PCH_SKIP_SOURCE}")
|
2021-02-24 10:47:18 +00:00
|
|
|
add_dependencies(ntkrnlmp psdk asm)
|
2014-02-10 17:12:41 +00:00
|
|
|
add_cd_file(TARGET ntkrnlmp DESTINATION reactos/system32 NO_CAB FOR all)
|