From 10f477e5bb8dff131020eb5a43d5b78102e614eb Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Thu, 2 May 2019 16:28:51 +0200 Subject: [PATCH] cmake: add CMakeLists.txt files for xcb/gl_integrations Change-Id: I34bc3c0ab4b4b686fe57149a3bb69e2d2cafd551 Reviewed-by: Alexandru Croitor --- src/plugins/platforms/xcb/CMakeLists.txt | 3 +- .../xcb/gl_integrations/CMakeLists.txt | 10 ++++ .../gl_integrations/xcb_egl/CMakeLists.txt | 35 ++++++++++++++ .../gl_integrations/xcb_glx/CMakeLists.txt | 47 +++++++++++++++++++ 4 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 src/plugins/platforms/xcb/gl_integrations/CMakeLists.txt create mode 100644 src/plugins/platforms/xcb/gl_integrations/xcb_egl/CMakeLists.txt create mode 100644 src/plugins/platforms/xcb/gl_integrations/xcb_glx/CMakeLists.txt diff --git a/src/plugins/platforms/xcb/CMakeLists.txt b/src/plugins/platforms/xcb/CMakeLists.txt index f67c48c1d20..57ec1b94435 100644 --- a/src/plugins/platforms/xcb/CMakeLists.txt +++ b/src/plugins/platforms/xcb/CMakeLists.txt @@ -202,5 +202,6 @@ add_qt_plugin(qxcb #### Keys ignored in scope 3:.:.:./xcb-plugin.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN: # PLUGIN_EXTENDS = "-" +add_subdirectory(gl_integrations) + #### TODO: xcb-static sub folder -#### TODO: gl_integrations sub folder diff --git a/src/plugins/platforms/xcb/gl_integrations/CMakeLists.txt b/src/plugins/platforms/xcb/gl_integrations/CMakeLists.txt new file mode 100644 index 00000000000..a5a744d8981 --- /dev/null +++ b/src/plugins/platforms/xcb/gl_integrations/CMakeLists.txt @@ -0,0 +1,10 @@ +# Generated from gl_integrations.pro. + + +if(QT_FEATURE_xcb_egl_plugin) + add_subdirectory(xcb_egl) +endif() + +if(QT_FEATURE_xcb_glx_plugin) + add_subdirectory(xcb_glx) +endif() diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_egl/CMakeLists.txt b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/CMakeLists.txt new file mode 100644 index 00000000000..6692ece7dc7 --- /dev/null +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_egl/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from xcb_egl.pro. + +##################################################################### +## qxcb-egl-integration Plugin: +##################################################################### + +add_qt_plugin(qxcb-egl-integration + TYPE xcbglintegrations + SOURCES + qxcbeglcontext.h + qxcbeglintegration.cpp qxcbeglintegration.h + qxcbeglmain.cpp + qxcbeglnativeinterfacehandler.cpp qxcbeglnativeinterfacehandler.h + qxcbeglwindow.cpp qxcbeglwindow.h + DEFINES + QT_NO_FOREACH + INCLUDE_DIRECTORIES + .. + ../.. + LIBRARIES + Qt::CorePrivate + Qt::EglSupportPrivate + Qt::GuiPrivate + Qt::XcbQpaPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::EglSupport + Qt::Gui + Qt::XcbQpa +) + +#### Keys ignored in scope 1:.:.:./xcb_egl.pro:: +# CONFIG = "egl" +# PLUGIN_CLASS_NAME = "QXcbEglIntegrationPlugin" +# _LOADED = "qt_plugin" "qt_build_paths" diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/CMakeLists.txt b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/CMakeLists.txt new file mode 100644 index 00000000000..51e5f976589 --- /dev/null +++ b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/CMakeLists.txt @@ -0,0 +1,47 @@ +# Generated from xcb_glx.pro. + +##################################################################### +## qxcb-glx-integration Plugin: +##################################################################### + +add_qt_plugin(qxcb-glx-integration + TYPE xcbglintegrations + SOURCES + qglxintegration.cpp qglxintegration.h + qxcbglxintegration.cpp qxcbglxintegration.h + qxcbglxmain.cpp + qxcbglxnativeinterfacehandler.cpp qxcbglxnativeinterfacehandler.h + qxcbglxwindow.cpp qxcbglxwindow.h + DEFINES + QT_NO_FOREACH + INCLUDE_DIRECTORIES + .. + ../.. + LIBRARIES + Qt::CorePrivate + Qt::GlxSupportPrivate + Qt::GuiPrivate + Qt::XcbQpaPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::GlxSupport + Qt::Gui + Qt::XcbQpa +) + +#### Keys ignored in scope 1:.:.:./xcb_glx.pro:: +# PLUGIN_CLASS_NAME = "QXcbGlxIntegrationPlugin" +# _LOADED = "qt_plugin" "qt_build_paths" + +## Scopes: +##################################################################### + +extend_target(qxcb-glx-integration CONDITION QT_FEATURE_xcb_glx + PUBLIC_LIBRARIES + xcb_glx +) + +extend_target(qxcb-glx-integration CONDITION NOT static + PUBLIC_LIBRARIES + ${CMAKE_DL_LIBS} +)