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    InitOnceExecuteOnce.c
13    sync.c
14    vista.c)
15
16add_library(kernel32_vista_static ${SOURCE})
17add_dependencies(kernel32_vista_static psdk)
18add_library(kernel32_vista MODULE DllMain.c ${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def)
19set_module_type(kernel32_vista win32dll ENTRYPOINT DllMain 12)
20target_link_libraries(kernel32_vista kernel32_vista_static 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