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 DllMain.c 11 GetFileInformationByHandleEx.c 12 GetTickCount64.c 13 InitOnceExecuteOnce.c 14 sync.c 15 vista.c 16 ${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def) 17 18add_library(kernel32_vista MODULE ${SOURCE}) 19set_module_type(kernel32_vista win32dll ENTRYPOINT DllMain 12) 20target_link_libraries(kernel32_vista kernel32_shared) 21add_importlibs(kernel32_vista kernel32 ntdll_vista ntdll) 22add_delay_importlibs(kernel32_vista ntdll_vista) 23add_dependencies(kernel32_vista psdk) 24add_cd_file(TARGET kernel32_vista DESTINATION reactos/system32 FOR all) 25