14e72da08STimo Kreuzer 24e72da08STimo Kreuzerremove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502) 34e72da08STimo Kreuzeradd_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600) 44e72da08STimo Kreuzer 54e72da08STimo Kreuzeradd_definitions(-D_KERNEL32_) 6a8e8add0STimo Kreuzerinclude_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys ..) 74e72da08STimo Kreuzerspec2def(kernel32_vista.dll kernel32_vista.spec ADD_IMPORTLIB) 84e72da08STimo Kreuzer 94e72da08STimo Kreuzerlist(APPEND SOURCE 101cf8759dSRatin Gao firmware.c 114e72da08STimo Kreuzer GetFileInformationByHandleEx.c 124e72da08STimo Kreuzer GetTickCount64.c 13f491d7ccSRatin Gao InitOnce.c 144e72da08STimo Kreuzer sync.c 152549e10cSTimo Kreuzer vista.c) 164e72da08STimo Kreuzer 17a8e8add0STimo Kreuzer# These functions are not exported from kernel32_vista (yet). 18a8e8add0STimo Kreuzer# They are only used when NT6 exports in kernel32 are enabled. 19a8e8add0STimo Kreuzerif(DLL_EXPORT_VERSION GREATER_EQUAL 0x600) 20a8e8add0STimo Kreuzer list(APPEND SOURCE 21a8e8add0STimo Kreuzer ../client/console/vista.c) 22a8e8add0STimo Kreuzerendif() 23a8e8add0STimo Kreuzer 242549e10cSTimo Kreuzeradd_library(kernel32_vista_static ${SOURCE}) 25a8e8add0STimo Kreuzertarget_link_libraries(kernel32_vista_static ${PSEH_LIB}) 262549e10cSTimo Kreuzeradd_dependencies(kernel32_vista_static psdk) 27*6756c2adSSerge Gautherie 28*6756c2adSSerge Gautherieadd_library(kernel32_vista MODULE 29*6756c2adSSerge Gautherie DllMain.c 30*6756c2adSSerge Gautherie kernel32_vista.rc 31*6756c2adSSerge Gautherie ${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def) 324e72da08STimo Kreuzerset_module_type(kernel32_vista win32dll ENTRYPOINT DllMain 12) 332549e10cSTimo Kreuzertarget_link_libraries(kernel32_vista kernel32_vista_static kernel32_shared) 344e72da08STimo Kreuzeradd_importlibs(kernel32_vista kernel32 ntdll_vista ntdll) 354e72da08STimo Kreuzeradd_delay_importlibs(kernel32_vista ntdll_vista) 364e72da08STimo Kreuzeradd_dependencies(kernel32_vista psdk) 374e72da08STimo Kreuzeradd_cd_file(TARGET kernel32_vista DESTINATION reactos/system32 FOR all) 38