CMake: set default eglfs device integration plugin
Use QT_QPA_DEFAULT_EGLFS_INTEGRATION for setting the default eglfs device integration plugin, which can be overwritten at runtime using QT_QPA_EGLFS_INTEGRATION environment variable. Change-Id: I1c3ac0c58cdbbb7bb08c2f0ea5abe4d04eb8d61a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
9692015d92
commit
623e866d5c
@ -1,5 +1,19 @@
|
|||||||
# Generated from eglfs.pro.
|
# Generated from eglfs.pro.
|
||||||
qt_find_package(EGL) # special case
|
# special case begin
|
||||||
|
qt_find_package(EGL)
|
||||||
|
|
||||||
|
if(QT_FEATURE_eglfs_gbm)
|
||||||
|
set(_device_integration "eglfs_kms")
|
||||||
|
elseif(QT_FEATURE_eglfs_egldevice)
|
||||||
|
set(_device_integration "eglfs_kms_egldevice")
|
||||||
|
elseif(QT_FEATURE_eglfs_viv)
|
||||||
|
set(_device_integration "eglfs_viv")
|
||||||
|
elseif(QT_FEATURE_eglfs_brcm)
|
||||||
|
set(_device_integration "eglfs_brcm")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(QT_QPA_DEFAULT_EGLFS_INTEGRATION "${_device_integration}" CACHE STRING "Default EGLFS device integration plugin")
|
||||||
|
# special case end
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
## EglFSDeviceIntegration Module:
|
## EglFSDeviceIntegration Module:
|
||||||
@ -18,6 +32,7 @@ qt_internal_add_module(EglFSDeviceIntegration
|
|||||||
DEFINES
|
DEFINES
|
||||||
QT_BUILD_EGL_DEVICE_LIB
|
QT_BUILD_EGL_DEVICE_LIB
|
||||||
QT_EGL_NO_X11
|
QT_EGL_NO_X11
|
||||||
|
EGLFS_PREFERRED_PLUGIN=${QT_QPA_DEFAULT_EGLFS_INTEGRATION} # special case
|
||||||
INCLUDE_DIRECTORIES
|
INCLUDE_DIRECTORIES
|
||||||
api
|
api
|
||||||
PUBLIC_LIBRARIES
|
PUBLIC_LIBRARIES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user