2 spec2def(ntdll.dll def/ntdll.spec ADD_IMPORTLIB)
11 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
12 ${REACTOS_SOURCE_DIR}/win32ss/include)
27 if(ARCH STREQUAL "i386")
28 list(APPEND ASM_SOURCE dispatch/i386/dispatch.S)
29 elseif(ARCH STREQUAL "amd64")
30 list(APPEND ASM_SOURCE dispatch/amd64/dispatch.S)
31 elseif(ARCH STREQUAL "arm")
32 list(APPEND ASM_SOURCE dispatch/arm/stubs_asm.s)
34 list(APPEND SOURCE dispatch/dispatch.c)
37 add_asm_files(ntdll_asm ${ASM_SOURCE})
39 add_library(ntdll SHARED
43 ${CMAKE_CURRENT_BINARY_DIR}/ntdll.def)
45 set_module_type(ntdll win32dll ENTRYPOINT 0)
46 #############################################
47 ## HACK FOR MSVC COMPILATION WITH win32dll ##
48 set_subsystem(ntdll console)
49 ################# END HACK #################
52 add_target_link_flags(ntdll "/RELEASE")
55 target_link_libraries(ntdll
62 add_pch(ntdll include/ntdll.h SOURCE)
63 add_dependencies(ntdll ntstatus asm)
65 add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)