2 spec2def(ntdll.dll def/ntdll.spec)
11 ${REACTOS_SOURCE_DIR}/include/reactos/subsys)
25 ${CMAKE_CURRENT_BINARY_DIR}/ntdll.def)
28 list(APPEND SOURCE dispatch/i386/dispatch.S)
29 elseif(ARCH MATCHES amd64)
30 list(APPEND SOURCE dispatch/amd64/stubs.c)
31 elseif(ARCH MATCHES arm)
32 list(APPEND SOURCE dispatch/arm/stubs_asm.s)
34 list(APPEND SOURCE dispatch/dispatch.c)
35 endif(ARCH MATCHES i386)
37 add_library(ntdll SHARED
38 ${CMAKE_CURRENT_BINARY_DIR}/ntdll_ntdll.h.gch
41 set_entrypoint(ntdll 0)
44 target_link_libraries(ntdll rtl)
46 target_link_libraries(ntdll -Wl,--whole-archive rtl -Wl,--no-whole-archive)
49 target_link_libraries(ntdll
54 set_image_base(ntdll ${baseaddress_ntdll})
55 add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
56 add_dependencies(ntdll ntstatus asm)
58 add_minicd_target(ntdll reactos/system32 ntdll.dll)
59 add_cab_target(ntdll 1)
60 add_importlib_target(def/ntdll.spec)