reactos/dll/directx/wine/dinput/CMakeLists.txt
Joachim Henze a04d7c300e [0.4.9] [WINE DIRECTX] Sledge-hammer-revert to avoid CORE-14534
This commit reverts
dll/directx/wine/* and
sdk/include/reactos/wine/wined3d.h
to the state of 0.4.8rls.

The current state of Ddraw without this revert is totally broken,
so we need this interim solution. I will happily replace it with
a proper fix if someone finds one until release.
2018-05-21 17:14:08 +02:00

32 lines
835 B
CMake

add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(dinput.dll dinput.spec ADD_IMPORTLIB)
list(APPEND SOURCE
config.c
device.c
dinput_main.c
effect_linuxinput.c
joystick.c
joystick_linux.c
joystick_linuxinput.c
joystick_osx.c
keyboard.c
mouse.c
dinput_private.h)
add_library(dinput SHARED
${SOURCE}
data_formats.c
dinput.rc
${CMAKE_CURRENT_BINARY_DIR}/dinput.def)
add_library(dinput_data_formats data_formats.c)
add_dependencies(dinput_data_formats psdk)
set_module_type(dinput win32dll)
target_link_libraries(dinput dxguid uuid wine)
add_importlibs(dinput comctl32 ole32 user32 advapi32 msvcrt kernel32 ntdll)
add_pch(dinput dinput_private.h SOURCE)
add_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all)