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