2 spec2def(ntdll.dll def/ntdll.spec ADD_IMPORTLIB)
11 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
12 ${REACTOS_SOURCE_DIR}/win32ss/include)
26 ${CMAKE_CURRENT_BINARY_DIR}/ntdll.def)
28 if(ARCH STREQUAL "i386")
29 list(APPEND SOURCE dispatch/i386/dispatch.S)
30 elseif(ARCH STREQUAL "amd64")
31 list(APPEND SOURCE dispatch/amd64/dispatch.S)
32 elseif(ARCH STREQUAL "arm")
33 list(APPEND SOURCE dispatch/arm/stubs_asm.s)
35 list(APPEND SOURCE dispatch/dispatch.c)
36 endif(ARCH STREQUAL "i386")
38 add_library(ntdll SHARED ${SOURCE})
40 set_module_type(ntdll win32dll ENTRYPOINT 0)
43 add_target_link_flags(ntdll "/RELEASE")
46 target_link_libraries(ntdll
52 add_pch(ntdll include/ntdll.h)
53 add_dependencies(ntdll ntstatus asm)
55 add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)