1 2spec2def(ntdll_vista.dll ntdll_vista.spec ADD_IMPORTLIB) 3 4add_definitions( 5 -D__NTDLL__ 6 -D_NTOSKRNL_ 7 -DCRTDLL) 8 9include_directories( 10 BEFORE include 11 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys) 12 13list(APPEND SOURCE 14 DllMain.c 15 ${CMAKE_CURRENT_BINARY_DIR}/ntdll_vista.def) 16 17add_library(ntdll_vista MODULE ${SOURCE}) 18set_module_type(ntdll_vista win32dll ENTRYPOINT DllMain 12) 19target_link_libraries(ntdll_vista smlib rtl_vista) 20if(ARCH STREQUAL "arm") 21 target_link_libraries(ntdll_vista chkstk) 22endif() 23add_importlibs(ntdll_vista ntdll) 24add_dependencies(ntdll_vista psdk) 25add_cd_file(TARGET ntdll_vista DESTINATION reactos/system32 FOR all) 26