2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ControllerEmu.cpp
|
|
|
|
InputConfig.cpp
|
|
|
|
ControllerInterface/ControllerInterface.cpp
|
|
|
|
ControllerInterface/Device.cpp
|
|
|
|
ControllerInterface/ExpressionParser.cpp)
|
2010-11-01 09:47:02 -06:00
|
|
|
|
2014-08-02 00:23:52 -06:00
|
|
|
|
|
|
|
set(LIBS common)
|
|
|
|
|
2010-11-01 09:47:02 -06:00
|
|
|
if(WIN32)
|
|
|
|
set(SRCS ${SRCS}
|
2013-12-07 13:14:29 -07:00
|
|
|
ControllerInterface/DInput/DInput.cpp
|
|
|
|
ControllerInterface/DInput/DInputJoystick.cpp
|
|
|
|
ControllerInterface/DInput/DInputKeyboardMouse.cpp
|
2014-02-05 03:28:32 -07:00
|
|
|
ControllerInterface/XInput/XInput.cpp
|
|
|
|
ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp)
|
2015-01-03 05:17:57 -07:00
|
|
|
elseif(APPLE)
|
|
|
|
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
|
|
|
|
find_library(CARBON_LIBRARY Carbon)
|
|
|
|
find_library(COCOA_LIBRARY Cocoa)
|
2010-11-01 09:47:02 -06:00
|
|
|
set(SRCS ${SRCS}
|
2013-12-07 13:14:29 -07:00
|
|
|
ControllerInterface/OSX/OSX.mm
|
|
|
|
ControllerInterface/OSX/OSXKeyboard.mm
|
|
|
|
ControllerInterface/OSX/OSXJoystick.mm
|
2014-01-28 16:11:51 -07:00
|
|
|
ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp)
|
2014-10-31 11:40:27 -06:00
|
|
|
set(LIBS ${LIBS} ${COREFOUNDATION_LIBRARY} ${CARBON_LIBRARY} ${COCOA_LIBRARY})
|
2010-11-01 09:47:02 -06:00
|
|
|
elseif(X11_FOUND)
|
|
|
|
set(SRCS ${SRCS}
|
2013-12-07 13:14:29 -07:00
|
|
|
ControllerInterface/Xlib/Xlib.cpp)
|
2013-07-20 22:50:50 -06:00
|
|
|
if(XINPUT2_FOUND)
|
2013-07-10 00:49:58 -06:00
|
|
|
set(SRCS ${SRCS}
|
2013-12-07 13:14:29 -07:00
|
|
|
ControllerInterface/Xlib/XInput2.cpp)
|
2013-07-10 00:49:58 -06:00
|
|
|
endif()
|
2014-08-02 00:23:52 -06:00
|
|
|
set(LIBS ${LIBS} ${X11_LIBRARIES} ${XINPUT2_LIBRARIES})
|
2013-04-14 22:02:53 -06:00
|
|
|
elseif(ANDROID)
|
|
|
|
set(SRCS ${SRCS}
|
2013-12-07 13:14:29 -07:00
|
|
|
ControllerInterface/Android/Android.cpp)
|
2010-11-01 09:47:02 -06:00
|
|
|
endif()
|
|
|
|
|
2015-06-28 18:17:35 -06:00
|
|
|
if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
|
|
|
|
set(SRCS ${SRCS} ControllerInterface/evdev/evdev.cpp)
|
|
|
|
set(LIBS ${LIBS} ${LIBEVDEV_LIBRARY} ${LIBUDEV_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2014-05-04 18:41:02 -06:00
|
|
|
if(SDL_FOUND OR SDL2_FOUND)
|
|
|
|
set(SRCS ${SRCS} ControllerInterface/SDL/SDL.cpp)
|
2014-08-02 00:23:52 -06:00
|
|
|
if (SDL2_FOUND)
|
|
|
|
set(LIBS ${LIBS} ${SDL2_LIBRARY})
|
|
|
|
elseif(SDL_FOUND)
|
|
|
|
set(LIBS ${LIBS} ${SDL_LIBRARY})
|
|
|
|
endif()
|
2014-05-04 18:41:02 -06:00
|
|
|
endif()
|
|
|
|
|
2014-08-02 00:23:52 -06:00
|
|
|
add_dolphin_library(inputcommon "${SRCS}" "${LIBS}")
|