cmake: build eglfs_kms plugin

Change-Id: I362c17a67c2cb4c243c39f760c598bfc7e1071bd
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-15 17:35:14 +01:00
parent b56d9916d9
commit d03b915c20
2 changed files with 39 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if(QT_FEATURE_eglfs_gbm OR QT_FEATURE_eglfs_egldevice)
endif()
if(QT_FEATURE_eglfs_gbm)
# TODO add_subdirectory(eglfs_kms)
add_subdirectory(eglfs_kms)
endif()
if(QT_FEATURE_eglfs_egldevice)

View File

@ -0,0 +1,38 @@
# Generated from eglfs_kms.pro.
find_package(gbm)
find_package(Libdrm)
#####################################################################
## qeglfs-kms-integration Plugin:
#####################################################################
add_qt_plugin(qeglfs-kms-integration
TYPE egldeviceintegrations
SOURCES
qeglfskmsgbmcursor.cpp qeglfskmsgbmcursor.h
qeglfskmsgbmdevice.cpp qeglfskmsgbmdevice.h
qeglfskmsgbmintegration.cpp qeglfskmsgbmintegration.h
qeglfskmsgbmmain.cpp
qeglfskmsgbmscreen.cpp qeglfskmsgbmscreen.h
qeglfskmsgbmwindow.cpp qeglfskmsgbmwindow.h
DEFINES
QT_EGL_NO_X11
INCLUDE_DIRECTORIES
../../api
../eglfs_kms_support
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
Qt::EglFSDeviceIntegrationPrivate
Qt::EglFsKmsSupportPrivate
Qt::KmsSupportPrivate
Qt::EdidSupportPrivate
Qt::PlatformCompositorSupportPrivate
gbm::gbm
Libdrm::Libdrm
# CONFIG = "egl"
# OTHER_FILES = "$$PWD/eglfs_kms.json"
# PLUGIN_CLASS_NAME = "QEglFSKmsGbmIntegrationPlugin"
# _LOADED = "qt_plugin"
)