cmake: Find tslib and build the tslib plugin if found
Change-Id: I7119ddf473a3ede29bbfef23cffb08a4fcbd5681 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
parent
93564b3f8b
commit
f18db41f85
3
cmake/FindTslib.cmake
Normal file
3
cmake/FindTslib.cmake
Normal file
@ -0,0 +1,3 @@
|
||||
find_package(PkgConfig)
|
||||
|
||||
pkg_check_modules(Tslib tslib IMPORTED_TARGET)
|
@ -54,6 +54,8 @@ find_package(JPEG)
|
||||
set_package_properties(JPEG PROPERTIES TYPE OPTIONAL)
|
||||
find_package(PNG)
|
||||
set_package_properties(PNG PROPERTIES TYPE OPTIONAL)
|
||||
find_package(Tslib)
|
||||
set_package_properties(Tslib PROPERTIES TYPE OPTIONAL)
|
||||
find_package(Vulkan)
|
||||
set_package_properties(Vulkan PROPERTIES TYPE OPTIONAL)
|
||||
find_package(Wayland)
|
||||
@ -436,8 +438,6 @@ XCloseDisplay(d);
|
||||
"
|
||||
)
|
||||
|
||||
|
||||
|
||||
#### Features
|
||||
|
||||
qt_feature("accessibility_atspi_bridge" PUBLIC PRIVATE
|
||||
@ -691,7 +691,7 @@ qt_feature("sessionmanager" PUBLIC
|
||||
qt_feature_definition("sessionmanager" "QT_NO_SESSIONMANAGER" NEGATE VALUE "1")
|
||||
qt_feature("tslib" PRIVATE
|
||||
LABEL "tslib"
|
||||
CONDITION libs.tslib OR FIXME
|
||||
CONDITION Tslib_FOUND
|
||||
)
|
||||
qt_feature("tuiotouch" PRIVATE
|
||||
LABEL "TuioTouch"
|
||||
|
@ -6,6 +6,9 @@ set_package_properties(Libinput PROPERTIES TYPE OPTIONAL)
|
||||
find_package(XKB)
|
||||
set_package_properties(XKB PROPERTIES TYPE OPTIONAL)
|
||||
|
||||
find_package(Tslib)
|
||||
set_package_properties(Tslib PROPERTIES TYPE OPTIONAL)
|
||||
|
||||
#####################################################################
|
||||
## InputSupport Module:
|
||||
#####################################################################
|
||||
@ -65,7 +68,7 @@ extend_target(InputSupport CONDITION QT_FEATURE_tslib
|
||||
SOURCES
|
||||
tslib/qtslib.cpp tslib/qtslib_p.h
|
||||
LIBRARIES
|
||||
tslib
|
||||
PkgConfig::Tslib
|
||||
)
|
||||
|
||||
extend_target(InputSupport CONDITION QT_FEATURE_libinput
|
||||
|
@ -10,7 +10,7 @@ if(QT_FEATURE_evdev)
|
||||
endif()
|
||||
|
||||
if(QT_FEATURE_tslib)
|
||||
# TODO add_subdirectory(tslib)
|
||||
add_subdirectory(tslib)
|
||||
endif()
|
||||
|
||||
if(QT_FEATURE_tuiotouch)
|
||||
|
19
src/plugins/generic/tslib/CMakeLists.txt
Normal file
19
src/plugins/generic/tslib/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated from tslib.pro.
|
||||
|
||||
#####################################################################
|
||||
## qtslibplugin Plugin:
|
||||
#####################################################################
|
||||
|
||||
add_qt_plugin(qtslibplugin
|
||||
TYPE generic
|
||||
SOURCES
|
||||
main.cpp
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::GuiPrivate
|
||||
Qt::InputSupportPrivate
|
||||
# OTHER_FILES = "tslib.json"
|
||||
# PLUGIN_CLASS_NAME = "QTsLibPlugin"
|
||||
# PLUGIN_EXTENDS = "-"
|
||||
# _LOADED = "qt_plugin"
|
||||
)
|
@ -78,6 +78,7 @@ def map_library(lib: str) -> Union[str, LibraryMapping, List[str]]:
|
||||
'pps': 'PPS',
|
||||
'slog2': 'Slog2',
|
||||
'sun_iconv': None,
|
||||
'tslib': 'Tslib',
|
||||
'udev': 'Libudev',
|
||||
'vulkan': 'Vulkan',
|
||||
'wayland_server': 'Wayland',
|
||||
|
Loading…
x
Reference in New Issue
Block a user