2010-08-04 19:10:43 +00:00
|
|
|
|
2010-09-18 15:22:08 +00:00
|
|
|
|
2010-08-13 14:12:45 +00:00
|
|
|
|
2010-08-03 16:05:53 +00:00
|
|
|
add_definitions(-D__NTDLL__)
|
|
|
|
add_definitions(-D_NTOSKRNL_)
|
|
|
|
add_definitions(-DCRTDLL)
|
2010-07-28 23:21:13 +00:00
|
|
|
|
2010-08-29 21:32:32 +00:00
|
|
|
include_directories(BEFORE include)
|
2010-08-03 21:39:17 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
|
|
|
|
2010-08-29 21:32:32 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
csr/api.c
|
|
|
|
csr/capture.c
|
|
|
|
csr/connect.c
|
|
|
|
dbg/dbgui.c
|
|
|
|
ldr/startup.c
|
|
|
|
ldr/utils.c
|
|
|
|
ldr/actctx.c
|
|
|
|
rtl/libsupp.c
|
|
|
|
rtl/version.c
|
|
|
|
def/ntdll.rc)
|
|
|
|
|
|
|
|
if(ARCH MATCHES i386)
|
|
|
|
list(APPEND SOURCE dispatch/i386/dispatch.S)
|
|
|
|
elseif(ARCH MATCHES amd64)
|
|
|
|
list(APPEND SOURCE dispatch/amd64/stubs.c)
|
|
|
|
elseif(ARCH MATCHES arm)
|
|
|
|
list(APPEND SOURCE dispatch/arm/stubs_asm.s)
|
|
|
|
else()
|
|
|
|
list(APPEND SOURCE dispatch/dispatch.c)
|
|
|
|
endif(ARCH MATCHES i386)
|
2010-08-04 14:29:24 +00:00
|
|
|
|
|
|
|
add_library(ntdll SHARED
|
2010-08-29 21:32:32 +00:00
|
|
|
${SOURCE}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntdll_ntdll.h.gch)
|
2010-07-28 23:21:13 +00:00
|
|
|
|
2010-08-04 14:29:24 +00:00
|
|
|
set_target_properties(ntdll PROPERTIES LINK_FLAGS "-Wl,-entry,0")
|
2010-07-28 23:21:13 +00:00
|
|
|
|
2010-08-04 14:29:24 +00:00
|
|
|
target_link_libraries(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.def
|
2010-08-13 14:12:45 +00:00
|
|
|
-Wl,--whole-archive rtl -Wl,--no-whole-archive
|
2010-08-04 14:29:24 +00:00
|
|
|
ntdllsys
|
|
|
|
libcntpr
|
|
|
|
pseh)
|
|
|
|
|
2010-08-04 08:16:37 +00:00
|
|
|
add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
|
2010-08-04 14:29:24 +00:00
|
|
|
add_dependencies(ntdll ntstatus version)
|
2010-10-09 13:54:36 +00:00
|
|
|
|
2010-10-22 14:05:00 +00:00
|
|
|
add_minicd_target(ntdll reactos/system32 ntdll.dll)
|
2010-10-30 16:03:40 +00:00
|
|
|
add_cab_target(ntdll 1)
|