mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
22 lines
697 B
CMake
22 lines
697 B
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
|
|
|
|
add_definitions(-D_KERNEL32_)
|
|
spec2def(kernel32_vista.dll kernel32_vista.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
DllMain.c
|
|
GetFileInformationByHandleEx.c
|
|
GetTickCount64.c
|
|
InitOnceExecuteOnce.c
|
|
sync.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/kernel32_vista.def)
|
|
|
|
add_library(kernel32_vista MODULE ${SOURCE})
|
|
set_module_type(kernel32_vista win32dll ENTRYPOINT DllMain 12)
|
|
add_importlibs(kernel32_vista kernel32 ntdll)
|
|
add_delay_importlibs(kernel32_vista ntdll_vista)
|
|
add_dependencies(kernel32_vista psdk)
|
|
add_cd_file(TARGET kernel32_vista DESTINATION reactos/system32 FOR all)
|