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/dispatch.S)
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_module_type(ntdll win32dll ENTRYPOINT 0)
42 add_target_link_flags(ntdll "/RELEASE")
45 target_link_libraries(ntdll
51 add_pch(ntdll include/ntdll.h)
52 add_dependencies(ntdll ntstatus asm)
54 add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)
55 add_importlib_target(def/ntdll.spec)