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