2010-08-04 19:10:43 +00:00
|
|
|
|
2010-11-01 08:58:18 +00:00
|
|
|
spec2def(ntdll.dll def/ntdll.spec)
|
|
|
|
|
2010-10-31 22:38:10 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__NTDLL__
|
|
|
|
-D_NTOSKRNL_
|
|
|
|
-DCRTDLL)
|
2010-09-18 15:22:08 +00:00
|
|
|
|
2010-10-31 22:38:10 +00:00
|
|
|
include_directories(
|
|
|
|
BEFORE include
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
2010-08-03 21:39:17 +00:00
|
|
|
|
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
|
2010-10-31 22:41:31 +00:00
|
|
|
def/ntdll.rc
|
2010-11-01 14:05:48 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntdll.def)
|
2010-10-31 22:41:31 +00:00
|
|
|
|
2010-08-29 21:32:32 +00:00
|
|
|
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-10-31 22:38:10 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntdll_ntdll.h.gch
|
|
|
|
${SOURCE})
|
2010-07-28 23:21:13 +00:00
|
|
|
|
2010-10-31 22:38:10 +00:00
|
|
|
set_entrypoint(ntdll 0)
|
2010-07-28 23:21:13 +00:00
|
|
|
|
2010-10-31 22:38:10 +00:00
|
|
|
if(MSVC)
|
|
|
|
target_link_libraries(ntdll rtl)
|
|
|
|
else()
|
|
|
|
target_link_libraries(ntdll -Wl,--whole-archive rtl -Wl,--no-whole-archive)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(ntdll
|
2010-11-01 08:58:18 +00:00
|
|
|
ntdllsys
|
|
|
|
libcntpr
|
2010-11-01 17:24:32 +00:00
|
|
|
${PSEH_LIB})
|
2010-08-04 14:29:24 +00:00
|
|
|
|
2010-08-04 08:16:37 +00:00
|
|
|
add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
|
2010-10-31 22:38:10 +00:00
|
|
|
add_dependencies(ntdll ntstatus)
|
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-11-01 08:58:18 +00:00
|
|
|
add_cab_target(ntdll 1)
|
2010-11-10 21:01:14 +00:00
|
|
|
add_importlib_target(def/ntdll.spec)
|