aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-10-26 14:26:16 +0200
committerLars Knoll <lars.knoll@qt.io>2016-10-31 10:54:34 +0000
commit56b101c01c8b7b0b75951afaeaa82e0ab8e59dcd (patch)
tree41679ef3b8f86f99c0d44d255a0328f9cc94571a /src/plugins
parent095d854f186634a01bf1127fc41f07e7078abe0b (diff)
Convert the module to the new configuration system
... and clean up the SDL detection. This also enables SDL use on non-macOS Darwin platforms, per the library's documentation. Change-Id: I4111fc8cb75b30662fe93b90e76a0c5563140656 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gamepads/gamepads.pro4
-rw-r--r--src/plugins/gamepads/sdl2/sdl2.pro12
2 files changed, 3 insertions, 13 deletions
diff --git a/src/plugins/gamepads/gamepads.pro b/src/plugins/gamepads/gamepads.pro
index b372359..dd60750 100644
--- a/src/plugins/gamepads/gamepads.pro
+++ b/src/plugins/gamepads/gamepads.pro
@@ -1,6 +1,6 @@
TEMPLATE = subdirs
-QT_FOR_CONFIG += gui-private
-config_sdl:SUBDIRS += sdl2
+QT_FOR_CONFIG += gui-private gamepad-private
+qtConfig(sdl2): SUBDIRS += sdl2
!android: qtConfig(evdev): SUBDIRS += evdev
win32: !wince*: SUBDIRS += xinput
darwin: !watchos: SUBDIRS += darwin
diff --git a/src/plugins/gamepads/sdl2/sdl2.pro b/src/plugins/gamepads/sdl2/sdl2.pro
index 3d53711..91715a3 100644
--- a/src/plugins/gamepads/sdl2/sdl2.pro
+++ b/src/plugins/gamepads/sdl2/sdl2.pro
@@ -5,17 +5,7 @@ PLUGIN_TYPE = gamepads
PLUGIN_CLASS_NAME = QSdl2GamepadBackendPlugin
load(qt_plugin)
-osx {
- INCLUDEPATH += /Library/Frameworks/SDL2.framework/Headers
- LIBS += -F/Library/Frameworks/ -framework SDL2
-}
-
-unix:!osx{
- CONFIG += link_pkgconfig
- PKGCONFIG += sdl2
-}
-
-win32: LIBS += -lSDL2
+QMAKE_USE += sdl2
HEADERS += qsdlgamepadbackend_p.h
SOURCES += \