2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2013-04-15 18:54:35 +00:00
|
|
|
add_definitions(-D__WINESRC__)
|
2011-05-16 13:12:07 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(dinput.dll dinput.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_library(dinput SHARED
|
2013-04-15 18:54:35 +00:00
|
|
|
config.c
|
2011-05-16 13:12:07 +00:00
|
|
|
data_formats.c
|
|
|
|
device.c
|
|
|
|
dinput_main.c
|
|
|
|
effect_linuxinput.c
|
2013-04-15 18:54:35 +00:00
|
|
|
joystick.c
|
2011-05-16 13:12:07 +00:00
|
|
|
joystick_linux.c
|
|
|
|
joystick_linuxinput.c
|
2013-04-15 18:54:35 +00:00
|
|
|
joystick_osx.c
|
2011-05-16 13:12:07 +00:00
|
|
|
keyboard.c
|
|
|
|
mouse.c
|
2013-04-15 18:54:35 +00:00
|
|
|
dinput.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dinput.def)
|
|
|
|
|
2013-04-15 18:54:35 +00:00
|
|
|
add_library(dinput_data_formats data_formats.c)
|
2013-04-27 14:56:43 +00:00
|
|
|
add_dependencies(dinput_data_formats psdk)
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(dinput win32dll UNICODE)
|
2013-04-15 18:54:35 +00:00
|
|
|
target_link_libraries(dinput dxguid uuid wine)
|
|
|
|
add_importlibs(dinput comctl32 ole32 user32 advapi32 msvcrt kernel32 ntdll)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all)
|