Find mtdev and use it
Change-Id: I90db48efaa6a23add770fcf69b46c4f4c84866c1 Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
bb2ae3e409
commit
05aeaed906
3
cmake/FindMtdev.cmake
Normal file
3
cmake/FindMtdev.cmake
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
find_package(PkgConfig)
|
||||||
|
|
||||||
|
pkg_check_modules(Mtdev mtdev IMPORTED_TARGET)
|
@ -54,6 +54,8 @@ find_package(JPEG)
|
|||||||
set_package_properties(JPEG PROPERTIES TYPE OPTIONAL)
|
set_package_properties(JPEG PROPERTIES TYPE OPTIONAL)
|
||||||
find_package(PNG)
|
find_package(PNG)
|
||||||
set_package_properties(PNG PROPERTIES TYPE OPTIONAL)
|
set_package_properties(PNG PROPERTIES TYPE OPTIONAL)
|
||||||
|
find_package(Mtdev)
|
||||||
|
set_package_properties(Mtdev PROPERTIES TYPE OPTIONAL)
|
||||||
find_package(Tslib)
|
find_package(Tslib)
|
||||||
set_package_properties(Tslib PROPERTIES TYPE OPTIONAL)
|
set_package_properties(Tslib PROPERTIES TYPE OPTIONAL)
|
||||||
find_package(Vulkan)
|
find_package(Vulkan)
|
||||||
@ -531,7 +533,7 @@ qt_feature("mirclient" PRIVATE
|
|||||||
)
|
)
|
||||||
qt_feature("mtdev" PRIVATE
|
qt_feature("mtdev" PRIVATE
|
||||||
LABEL "mtdev"
|
LABEL "mtdev"
|
||||||
CONDITION libs.mtdev OR FIXME
|
CONDITION Mtdev_FOUND
|
||||||
)
|
)
|
||||||
qt_feature("opengles2" PUBLIC
|
qt_feature("opengles2" PUBLIC
|
||||||
LABEL "OpenGL ES 2.0"
|
LABEL "OpenGL ES 2.0"
|
||||||
|
@ -9,6 +9,9 @@ set_package_properties(XKB PROPERTIES TYPE OPTIONAL)
|
|||||||
find_package(Tslib)
|
find_package(Tslib)
|
||||||
set_package_properties(Tslib PROPERTIES TYPE OPTIONAL)
|
set_package_properties(Tslib PROPERTIES TYPE OPTIONAL)
|
||||||
|
|
||||||
|
find_package(Mtdev)
|
||||||
|
set_package_properties(Mtdev PROPERTIES TYPE OPTIONAL)
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
## InputSupport Module:
|
## InputSupport Module:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
@ -61,7 +64,7 @@ extend_target(InputSupport CONDITION QT_FEATURE_evdev AND QT_FEATURE_libudev
|
|||||||
|
|
||||||
extend_target(InputSupport CONDITION QT_FEATURE_evdev AND QT_FEATURE_mtdev
|
extend_target(InputSupport CONDITION QT_FEATURE_evdev AND QT_FEATURE_mtdev
|
||||||
LIBRARIES
|
LIBRARIES
|
||||||
mtdev
|
PkgConfig::Mtdev
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_target(InputSupport CONDITION QT_FEATURE_tslib
|
extend_target(InputSupport CONDITION QT_FEATURE_tslib
|
||||||
|
@ -73,6 +73,7 @@ def map_library(lib: str) -> Union[str, LibraryMapping, List[str]]:
|
|||||||
'librt': 'WrapRt',
|
'librt': 'WrapRt',
|
||||||
'libudev': 'Libudev',
|
'libudev': 'Libudev',
|
||||||
'lttng-ust': LibraryMapping(package='LTTngUST', resultVariable="LTTNGUST"),
|
'lttng-ust': LibraryMapping(package='LTTngUST', resultVariable="LTTNGUST"),
|
||||||
|
'mtdev': 'Mtdev',
|
||||||
'opengl': LibraryMapping(package="OpenGL", resultVariable="OpenGL_OpenGL"),
|
'opengl': LibraryMapping(package="OpenGL", resultVariable="OpenGL_OpenGL"),
|
||||||
'openssl': 'OpenSSL',
|
'openssl': 'OpenSSL',
|
||||||
'openssl_headers': LibraryMapping(package="OpenSSL", resultVariable="OPENSSL_INCLUDE_DIR", appendFoundSuffix=False),
|
'openssl_headers': LibraryMapping(package="OpenSSL", resultVariable="OPENSSL_INCLUDE_DIR", appendFoundSuffix=False),
|
||||||
|
Loading…
Reference in New Issue
Block a user