cmake: enable src/platformsupport/input
Change-Id: Iafe75f55c579779d3d25a0147d993904622161fa Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
5716bcf6f7
commit
03d096d11a
@ -14,6 +14,10 @@ if((UNIX AND (NOT uikit)) OR QT_FEATURE_xcb)
|
||||
add_subdirectory(services)
|
||||
endif()
|
||||
|
||||
if(QT_FEATURE_evdev OR QT_FEATURE_tslib OR QT_FEATURE_libinput OR QT_FEATURE_integrityhid)
|
||||
add_subdirectory(input)
|
||||
endif()
|
||||
|
||||
if(QT_FEATURE_accessibility)
|
||||
add_subdirectory(accessibility)
|
||||
if(QT_FEATURE_accessibility_atspi_bridge)
|
||||
|
104
src/platformsupport/input/CMakeLists.txt
Normal file
104
src/platformsupport/input/CMakeLists.txt
Normal file
@ -0,0 +1,104 @@
|
||||
# Generated from input.pro.
|
||||
|
||||
find_package(Libinput)
|
||||
set_package_properties(Libinput PROPERTIES TYPE OPTIONAL)
|
||||
|
||||
find_package(XKB)
|
||||
set_package_properties(XKB PROPERTIES TYPE OPTIONAL)
|
||||
|
||||
#####################################################################
|
||||
## InputSupport Module:
|
||||
#####################################################################
|
||||
|
||||
add_qt_module(InputSupport
|
||||
STATIC
|
||||
DEFINES
|
||||
QT_NO_CAST_FROM_ASCII
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::GuiPrivate
|
||||
Qt::DeviceDiscoverySupportPrivate
|
||||
# CONFIG = "static" "internal_module"
|
||||
# MODULE = "input_support"
|
||||
# PRECOMPILED_HEADER = "../../corelib/global/qt_pch.h"
|
||||
# _LOADED = "qt_module"
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_evdev
|
||||
SOURCES
|
||||
evdevkeyboard/qevdevkeyboard_defaultmap_p.h
|
||||
evdevkeyboard/qevdevkeyboardhandler.cpp evdevkeyboard/qevdevkeyboardhandler_p.h
|
||||
evdevkeyboard/qevdevkeyboardmanager.cpp evdevkeyboard/qevdevkeyboardmanager_p.h
|
||||
evdevmouse/qevdevmousehandler.cpp evdevmouse/qevdevmousehandler_p.h
|
||||
evdevmouse/qevdevmousemanager.cpp evdevmouse/qevdevmousemanager_p.h
|
||||
evdevtouch/qevdevtouchhandler.cpp evdevtouch/qevdevtouchhandler_p.h
|
||||
evdevtouch/qevdevtouchmanager.cpp evdevtouch/qevdevtouchmanager_p.h
|
||||
INCLUDE_DIRECTORIES
|
||||
evdevtouch/../shared
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_evdev AND QT_FEATURE_tabletevent
|
||||
SOURCES
|
||||
evdevtablet/qevdevtablethandler.cpp evdevtablet/qevdevtablethandler_p.h
|
||||
evdevtablet/qevdevtabletmanager.cpp evdevtablet/qevdevtabletmanager_p.h
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_evdev AND QT_FEATURE_libudev AND QT_FEATURE_tabletevent
|
||||
LIBRARIES
|
||||
PkgConfig::Libudev
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_evdev AND QT_FEATURE_libudev
|
||||
LIBRARIES
|
||||
PkgConfig::Libudev
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_evdev AND QT_FEATURE_mtdev
|
||||
LIBRARIES
|
||||
mtdev
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_tslib
|
||||
SOURCES
|
||||
tslib/qtslib.cpp tslib/qtslib_p.h
|
||||
LIBRARIES
|
||||
tslib
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_libinput
|
||||
SOURCES
|
||||
libinput/qlibinputhandler.cpp libinput/qlibinputhandler_p.h
|
||||
libinput/qlibinputkeyboard.cpp libinput/qlibinputkeyboard_p.h
|
||||
libinput/qlibinputpointer.cpp libinput/qlibinputpointer_p.h
|
||||
libinput/qlibinputtouch.cpp libinput/qlibinputtouch_p.h
|
||||
INCLUDE_DIRECTORIES
|
||||
libinput/../shared
|
||||
LIBRARIES
|
||||
PkgConfig::Libudev
|
||||
Libinput::Libinput
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_libinput AND QT_FEATURE_xkbcommon_evdev
|
||||
LIBRARIES
|
||||
XKB::XKB
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_libinput AND NOT QT_FEATURE_xkbcommon_evdev
|
||||
DEFINES
|
||||
QT_NO_XKBCOMMON_EVDEV
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_evdev OR QT_FEATURE_libinput
|
||||
SOURCES
|
||||
shared/qtouchoutputmapping.cpp shared/qtouchoutputmapping_p.h
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_integrityhid
|
||||
SOURCES
|
||||
integrityhid/qintegrityhidmanager.cpp integrityhid/qintegrityhidmanager.h
|
||||
LIBRARIES
|
||||
integrityhid
|
||||
)
|
Loading…
Reference in New Issue
Block a user