mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 12:26:32 +00:00
ad73e17418
Add user32_vista.dll to introduce new NT6+ User32 features without changing the existing User32.dll when compiled as NT5.x. Also implements a stub for GetDpiForWindow(). The GetDpiForWindow() function will be required to Wine-sync common controls to modern Wine versions. Changes: Expose GetDpiForWindow() function and USER_DEFAULT_SCREEN_DPI to appropriate versions in winuser.h Introduce a basic user32_vista library that can be expanded as needed.
26 lines
710 B
CMake
26 lines
710 B
CMake
|
|
spec2def(user32_vista.dll user32_vista.spec ADD_IMPORTLIB)
|
|
|
|
include_directories(
|
|
include
|
|
${REACTOS_SOURCE_DIR}/win32ss/include)
|
|
|
|
list(APPEND SOURCE
|
|
dpi.c)
|
|
|
|
add_library(user32_vista_static
|
|
${SOURCE})
|
|
target_link_libraries(user32_vista_static win32ksys)
|
|
add_dependencies(user32_vista_static psdk)
|
|
|
|
add_library(user32_vista MODULE
|
|
${SOURCE}
|
|
user32_vista.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/user32_vista.def)
|
|
|
|
set_module_type(user32_vista win32dll UNICODE ENTRYPOINT 0)
|
|
add_importlibs(user32_vista user32 gdi32 ntdll)
|
|
target_link_libraries(user32_vista user32_vista_static win32ksys)
|
|
add_dependencies(user32_vista psdk)
|
|
add_cd_file(TARGET user32_vista DESTINATION reactos/system32 FOR all)
|