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 firmware.c 11 GetFileInformationByHandleEx.c 12 GetTickCount64.c 13 InitOnce.c 14 sync.c 15 vista.c) 16 17# These functions are not exported from kernel32_vista (yet). 18# They are only used when NT6 exports in kernel32 are enabled. 19if(DLL_EXPORT_VERSION GREATER_EQUAL 0x600) 20 list(APPEND SOURCE 21 ../client/console/vista.c) 22endif() 23 24add_library(kernel32_vista_static ${SOURCE}) 25target_link_libraries(kernel32_vista_static ${PSEH_LIB}) 26add_dependencies(kernel32_vista_static psdk) 27 28add_library(kernel32_vista MODULE 29 DllMain.c 30 kernel32_vista.rc 31 ${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def) 32set_module_type(kernel32_vista win32dll ENTRYPOINT DllMain 12) 33target_link_libraries(kernel32_vista kernel32_vista_static kernel32_shared) 34add_importlibs(kernel32_vista kernel32 ntdll_vista ntdll) 35add_delay_importlibs(kernel32_vista ntdll_vista) 36add_dependencies(kernel32_vista psdk) 37add_cd_file(TARGET kernel32_vista DESTINATION reactos/system32 FOR all) 38