1 2remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502) 3add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600) 4 5add_definitions(-D_KERNEL32_) 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys ..) 7spec2def(kernel32_vista.dll kernel32_vista.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 GetFileInformationByHandleEx.c 11 GetTickCount64.c 12 InitOnce.c 13 sync.c 14 vista.c) 15 16# These functions are not exported from kernel32_vista (yet). 17# They are only used when NT6 exports in kernel32 are enabled. 18if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600) 19 list(APPEND SOURCE 20 ../client/console/vista.c) 21endif() 22 23add_library(kernel32_vista_static ${SOURCE}) 24target_link_libraries(kernel32_vista_static ${PSEH_LIB}) 25add_dependencies(kernel32_vista_static psdk) 26add_library(kernel32_vista MODULE DllMain.c ${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def) 27set_module_type(kernel32_vista win32dll ENTRYPOINT DllMain 12) 28target_link_libraries(kernel32_vista kernel32_vista_static kernel32_shared) 29add_importlibs(kernel32_vista kernel32 ntdll_vista ntdll) 30add_delay_importlibs(kernel32_vista ntdll_vista) 31add_dependencies(kernel32_vista psdk) 32add_cd_file(TARGET kernel32_vista DESTINATION reactos/system32 FOR all) 33