1 2add_definitions(-D__WINESRC__ -DDIRECTINPUT_VERSION=0x0700) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(dinput.dll dinput.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 config.c 8 device.c 9 dinput_main.c 10 effect_linuxinput.c 11 joystick.c 12 joystick_linux.c 13 joystick_linuxinput.c 14 joystick_osx.c 15 keyboard.c 16 mouse.c 17 precomp.h) 18 19add_library(dinput MODULE 20 ${SOURCE} 21 data_formats.c 22 dinput.rc 23 version.rc 24 ${CMAKE_CURRENT_BINARY_DIR}/dinput.def) 25 26add_library(dinput_data_formats data_formats.c) 27add_dependencies(dinput_data_formats psdk) 28set_module_type(dinput win32dll) 29target_link_libraries(dinput dxguid uuid wine) 30add_importlibs(dinput comctl32 ole32 user32 advapi32 msvcrt kernel32 ntdll) 31add_pch(dinput precomp.h SOURCE) 32add_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all) 33