mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTKRNLMP]
* Add to build. Dedicated to Stefan. svn path=/trunk/; revision=56340
This commit is contained in:
parent
84efd179fc
commit
ecea399f4b
1 changed files with 27 additions and 0 deletions
|
@ -461,5 +461,32 @@ add_dependencies(ntoskrnl psdk bugcodes asm)
|
|||
|
||||
add_cd_file(TARGET ntoskrnl DESTINATION reactos/system32 NO_CAB FOR all)
|
||||
|
||||
if(BUILD_MP)
|
||||
add_executable(ntkrnlmp ${SOURCE})
|
||||
add_target_compile_definitions(ntkrnlmp CONFIG_SMP)
|
||||
|
||||
if(ARCH MATCHES i386)
|
||||
set_entrypoint(ntkrnlmp KiSystemStartup 4)
|
||||
else()
|
||||
set_entrypoint(ntkrnlmp KiSystemStartup)
|
||||
endif()
|
||||
set_subsystem(ntkrnlmp native)
|
||||
|
||||
if(MSVC)
|
||||
set_image_base(ntkrnlmp 0x00400000)
|
||||
else()
|
||||
set_image_base(ntkrnlmp 0x80800000)
|
||||
endif()
|
||||
|
||||
# Linker bug
|
||||
if(NOT MSVC AND LTCG)
|
||||
add_target_link_flags(ntkrnlmp "-shared")
|
||||
endif()
|
||||
|
||||
target_link_libraries(ntkrnlmp cportlib csq ${PSEH_LIB} cmlib rtl rossym libcntpr wdmguid ioevent)
|
||||
add_importlibs(ntkrnlmp hal kdcom bootvid)
|
||||
add_dependencies(ntkrnlmp psdk bugcodes asm)
|
||||
add_cd_file(TARGET ntkrnlmp DESTINATION reactos/system32 NO_CAB FOR all)
|
||||
endif()
|
||||
|
||||
add_library(ntdllsys ntdll.S)
|
||||
|
|
Loading…
Reference in a new issue