2014-09-25 18:25:47 +00:00
|
|
|
|
2015-04-09 16:02:48 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
|
2014-09-25 18:25:47 +00:00
|
|
|
|
2014-10-17 23:28:29 +00:00
|
|
|
add_definitions(-D_KERNEL32_)
|
2014-09-25 18:25:47 +00:00
|
|
|
spec2def(kernel32_vista.dll kernel32_vista.spec ADD_IMPORTLIB)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
DllMain.c
|
2015-11-17 10:40:04 +00:00
|
|
|
GetFileInformationByHandleEx.c
|
2014-09-25 18:25:47 +00:00
|
|
|
GetTickCount64.c
|
2015-02-28 15:46:43 +00:00
|
|
|
InitOnceExecuteOnce.c
|
2017-05-30 21:39:50 +00:00
|
|
|
sync.c
|
2014-09-25 19:37:02 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def)
|
2014-09-25 18:25:47 +00:00
|
|
|
|
2014-09-25 19:37:02 +00:00
|
|
|
add_library(kernel32_vista SHARED ${SOURCE})
|
2015-11-04 18:06:16 +00:00
|
|
|
set_module_type(kernel32_vista win32dll ENTRYPOINT DllMain 12)
|
2017-07-27 09:43:56 +00:00
|
|
|
add_importlibs(kernel32_vista kernel32 ntdll)
|
|
|
|
add_delay_importlibs(kernel32_vista ntdll_vista)
|
2014-09-25 18:25:47 +00:00
|
|
|
add_dependencies(kernel32_vista psdk)
|
|
|
|
add_cd_file(TARGET kernel32_vista DESTINATION reactos/system32 FOR all)
|