2 spec2def(ntdll.dll def/ntdll.spec)
11 ${REACTOS_SOURCE_DIR}/include/reactos/subsys)
24 ${CMAKE_CURRENT_BINARY_DIR}/ntdll.def)
27 list(APPEND SOURCE dispatch/i386/dispatch.S)
28 elseif(ARCH MATCHES amd64)
29 list(APPEND SOURCE dispatch/amd64/stubs.c)
30 elseif(ARCH MATCHES arm)
31 list(APPEND SOURCE dispatch/arm/stubs_asm.s)
33 list(APPEND SOURCE dispatch/dispatch.c)
34 endif(ARCH MATCHES i386)
36 add_library(ntdll SHARED
37 ${CMAKE_CURRENT_BINARY_DIR}/ntdll_ntdll.h.gch
40 set_entrypoint(ntdll 0)
43 target_link_libraries(ntdll rtl)
45 target_link_libraries(ntdll -Wl,--whole-archive rtl -Wl,--no-whole-archive)
48 target_link_libraries(ntdll
53 add_pch(ntdll ${CMAKE_CURRENT_SOURCE_DIR}/include/ntdll.h ${SOURCE})
54 add_dependencies(ntdll ntstatus)
56 add_minicd_target(ntdll reactos/system32 ntdll.dll)
57 add_cab_target(ntdll 1)
58 add_importlib_target(${CMAKE_CURRENT_BINARY_DIR}/ntdll.def)