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 ${SOURCE})
39 set_entrypoint(ntdll 0)
42 target_link_libraries(ntdll rtl)
43 add_linkerflag(ntdll /RELEASE)
45 target_link_libraries(ntdll -Wl,--whole-archive rtl -Wl,--no-whole-archive)
48 target_link_libraries(ntdll
53 set_image_base(ntdll ${baseaddress_ntdll})
54 add_pch(ntdll include/ntdll.h)
55 add_dependencies(ntdll ntstatus asm)
57 add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)
58 add_importlib_target(def/ntdll.spec)