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 ${SOURCE})
42 set_entrypoint(ntdll 0)
45 target_link_libraries(ntdll rtl)
47 target_link_libraries(ntdll -Wl,--whole-archive rtl -Wl,--no-whole-archive)
50 target_link_libraries(ntdll
55 set_image_base(ntdll ${baseaddress_ntdll})
56 add_pch(ntdll include/ntdll.h)
57 add_dependencies(ntdll ntstatus asm)
59 add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)
60 add_importlib_target(def/ntdll.spec)