diff options
author | Liang Qi <liang.qi@qt.io> | 2019-05-02 16:28:51 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-05-02 16:23:59 +0000 |
commit | 10f477e5bb8dff131020eb5a43d5b78102e614eb (patch) | |
tree | 94f035980d4633da0b48946e15f6b8af469191a7 /src | |
parent | 417e714d908e4293a46254b02f6c855bce2fed1d (diff) |
cmake: add CMakeLists.txt files for xcb/gl_integrations
Change-Id: I34bc3c0ab4b4b686fe57149a3bb69e2d2cafd551
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
4 files changed, 94 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/CMakeLists.txt b/src/plugins/platforms/xcb/CMakeLists.txt index f67c48c1d2..57ec1b9443 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 0000000000..a5a744d898 --- /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 0000000000..6692ece7dc --- /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:<TRUE>: +# 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 0000000000..51e5f97658 --- /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:<TRUE>: +# 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} +) |