From 324bf0f34465773a0e4be484394d1fc98a90dc16 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 11 Feb 2019 14:03:38 +0100 Subject: [PATCH] cmake: build linuxfb platform plugin Change-Id: I74c84ca410bdcf9c46828c5da903e241b2fa5d0d Reviewed-by: Simon Hausmann --- src/plugins/platforms/CMakeLists.txt | 4 ++ src/plugins/platforms/linuxfb/CMakeLists.txt | 44 ++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/plugins/platforms/linuxfb/CMakeLists.txt diff --git a/src/plugins/platforms/CMakeLists.txt b/src/plugins/platforms/CMakeLists.txt index 0a01b80bc8..6992bd0711 100644 --- a/src/plugins/platforms/CMakeLists.txt +++ b/src/plugins/platforms/CMakeLists.txt @@ -2,6 +2,10 @@ if(QT_FEATURE_xcb) add_subdirectory(xcb) endif() +if(QT_FEATURE_linuxfb) + add_subdirectory(linuxfb) +endif() + if(APPLE) add_subdirectory(cocoa) endif(APPLE) diff --git a/src/plugins/platforms/linuxfb/CMakeLists.txt b/src/plugins/platforms/linuxfb/CMakeLists.txt new file mode 100644 index 0000000000..6c80083503 --- /dev/null +++ b/src/plugins/platforms/linuxfb/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from linuxfb.pro. + +##################################################################### +## qlinuxfb Plugin: +##################################################################### + +add_qt_plugin(qlinuxfb + TYPE platforms + SOURCES + main.cpp + qlinuxfbintegration.cpp qlinuxfbintegration.h + qlinuxfbscreen.cpp qlinuxfbscreen.h + DEFINES + QT_NO_FOREACH + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::ServiceSupportPrivate + Qt::EventDispatcherSupportPrivate + Qt::FontDatabaseSupportPrivate + Qt::FbSupportPrivate + # OTHER_FILES = "linuxfb.json" + # PLUGIN_CLASS_NAME = "QLinuxFbIntegrationPlugin" + # _LOADED = "qt_plugin" +) + +## Scopes: +##################################################################### + +extend_target(qlinuxfb CONDITION TARGET Qt::InputSupportPrivate + LIBRARIES + Qt::InputSupportPrivate +) + +extend_target(qlinuxfb CONDITION TARGET Qt::KmsSupportPrivate + SOURCES + qlinuxfbdrmscreen.cpp qlinuxfbdrmscreen.h + LIBRARIES + Qt::KmsSupportPrivate +) +# +#extend_target(qlinuxfb CONDITION NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN +# # PLUGIN_EXTENDS = "-" +#)