mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
7c99b62e1f
- Move generated precompiled headers to binary folders. - Enable auto image base for ntdll. - Update the location of generated PCH files for rtl, ntdll and crt. svn path=/branches/cmake-bringup/; revision=48459
32 lines
1.1 KiB
CMake
32 lines
1.1 KiB
CMake
|
|
add_definitions(-D__NTDLL__)
|
|
add_definitions(-D_NTOSKRNL_)
|
|
add_definitions(-DCRTDLL)
|
|
|
|
include_directories(BEFORE ./include)
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
|
|
|
file(GLOB_RECURSE SOURCE *.c)
|
|
list(REMOVE_ITEM SOURCE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ldr/elf.c
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dispatch/dispatch.c
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dispatch/amd64/stubs.c)
|
|
file(GLOB_RECURSE ARCH_SOURCE
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.c"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/dispatch/${ARCH}/*.s")
|
|
|
|
add_library(ntdll SHARED
|
|
${ARCH_SOURCE} ${SOURCE}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntdll_ntdll.h.gch)
|
|
|
|
set_target_properties(ntdll PROPERTIES LINK_FLAGS "-Wl,-entry,0")
|
|
|
|
target_link_libraries(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.def
|
|
rtl
|
|
ntdllsys
|
|
libcntpr
|
|
pseh)
|
|
|
|
add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
|
|
add_dependencies(ntdll ntstatus version)
|