9 ${REACTOS_SOURCE_DIR}/include/reactos/subsys)
24 list(APPEND SOURCE dispatch/i386/dispatch.S)
25 elseif(ARCH MATCHES amd64)
26 list(APPEND SOURCE dispatch/amd64/stubs.c)
27 elseif(ARCH MATCHES arm)
28 list(APPEND SOURCE dispatch/arm/stubs_asm.s)
30 list(APPEND SOURCE dispatch/dispatch.c)
31 endif(ARCH MATCHES i386)
33 add_library(ntdll SHARED
34 ${CMAKE_CURRENT_BINARY_DIR}/ntdll_ntdll.h.gch
37 set_entrypoint(ntdll 0)
40 target_link_libraries(ntdll rtl)
42 target_link_libraries(ntdll -Wl,--whole-archive rtl -Wl,--no-whole-archive)
45 target_link_libraries(ntdll
46 ${CMAKE_CURRENT_SOURCE_DIR}/def/ntdll.def
51 add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
52 add_dependencies(ntdll ntstatus)
54 add_minicd_target(ntdll reactos/system32 ntdll.dll)
55 add_cab_target(ntdll 1)