Skip to content

Commit

Permalink
Move UNIX services into QtGui
Browse files Browse the repository at this point in the history
Task-number: QTBUG-83255
Change-Id: I95cd25c6e18ffb46955acc76d6cab551d1c8f5ae
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
FriedemannKleint committed Jun 18, 2020
1 parent ab01885 commit 7e83f09
Show file tree
Hide file tree
Showing 36 changed files with 44 additions and 84 deletions.
10 changes: 10 additions & 0 deletions src/gui/.prev_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,16 @@ qt_extend_target(Gui CONDITION QT_FEATURE_glib AND UNIX
GLIB2::GLIB2
)

qt_extend_target(Gui CONDITION UNIX AND (QT_FEATURE_xcb OR NOT UIKIT)
SOURCES
platform/unix/qgenericunixservices.cpp platform/unix/qgenericunixservices_p.h
)

qt_extend_target(Gui CONDITION TARGET Qt::DBus AND UNIX AND (QT_FEATURE_xcb OR NOT UIKIT)
LIBRARIES
Qt::DBus
)

qt_extend_target(Gui CONDITION IOS OR MACOS
SOURCES
rhi/qrhimetal.mm rhi/qrhimetal_p.h
Expand Down
10 changes: 10 additions & 0 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,16 @@ qt_extend_target(Gui CONDITION QT_FEATURE_glib AND UNIX
GLIB2::GLIB2
)

qt_extend_target(Gui CONDITION UNIX AND (QT_FEATURE_xcb OR NOT UIKIT)
SOURCES
platform/unix/qgenericunixservices.cpp platform/unix/qgenericunixservices_p.h
)

qt_extend_target(Gui CONDITION TARGET Qt::DBus AND UNIX AND (QT_FEATURE_xcb OR NOT UIKIT)
LIBRARIES
Qt::DBus
)

qt_extend_target(Gui CONDITION IOS OR MACOS
SOURCES
rhi/qrhimetal.mm rhi/qrhimetal_p.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Expand All @@ -56,7 +56,7 @@

QT_BEGIN_NAMESPACE

class QGenericUnixServices : public QPlatformServices
class Q_GUI_EXPORT QGenericUnixServices : public QPlatformServices
{
public:
QGenericUnixServices() {}
Expand Down
10 changes: 10 additions & 0 deletions src/gui/platform/unix/unix.pri
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ HEADERS += \
platform/unix/qunixeventdispatcher_qpa_p.h \
platform/unix/qgenericunixeventdispatcher_p.h


qtConfig(glib) {
SOURCES += platform/unix/qeventdispatcher_glib.cpp
HEADERS += platform/unix/qeventdispatcher_glib_p.h
QMAKE_USE_PRIVATE += glib
}

if(unix:!uikit)|qtConfig(xcb) {
SOURCES += \
platform/unix/qgenericunixservices.cpp
HEADERS += \
platform/unix/qgenericunixservices_p.h

qtHaveModule(dbus): QT_PRIVATE += dbus
}
3 changes: 0 additions & 3 deletions src/platformsupport/.prev_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ endif()
if(QT_FEATURE_evdev OR QT_FEATURE_integrityhid OR QT_FEATURE_libinput OR QT_FEATURE_tslib OR QT_FEATURE_xkbcommon)
add_subdirectory(input)
endif()
if(QT_FEATURE_xcb OR (UNIX AND NOT UIKIT))
add_subdirectory(services)
endif()
if(QT_FEATURE_egl)
add_subdirectory(eglconvenience)
endif()
Expand Down
3 changes: 0 additions & 3 deletions src/platformsupport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ endif()
if(QT_FEATURE_evdev OR QT_FEATURE_integrityhid OR QT_FEATURE_libinput OR QT_FEATURE_tslib OR QT_FEATURE_xkbcommon)
add_subdirectory(input)
endif()
if(QT_FEATURE_xcb OR (UNIX AND NOT UIKIT))
add_subdirectory(services)
endif()
if(QT_FEATURE_egl)
add_subdirectory(eglconvenience)
endif()
Expand Down
3 changes: 0 additions & 3 deletions src/platformsupport/platformsupport.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ qtConfig(evdev)|qtConfig(tslib)|qtConfig(libinput)|qtConfig(integrityhid)|qtConf
input.depends += devicediscovery
}

if(unix:!uikit)|qtConfig(xcb): \
SUBDIRS += services

qtConfig(egl): \
SUBDIRS += eglconvenience
qtConfig(xlib):qtConfig(opengl):!qtConfig(opengles2): \
Expand Down
30 changes: 0 additions & 30 deletions src/platformsupport/services/CMakeLists.txt

This file was deleted.

2 changes: 0 additions & 2 deletions src/platformsupport/services/genericunix/genericunix.pri

This file was deleted.

14 changes: 0 additions & 14 deletions src/platformsupport/services/services.pro

This file was deleted.

1 change: 0 additions & 1 deletion src/plugins/platforms/bsdfb/bsdfb.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ TARGET = qbsdfb

QT += \
core-private gui-private \
service_support-private \
fb_support-private

qtHaveModule(input_support-private): \
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/bsdfb/qbsdfbintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "qbsdfbscreen.h"

#include <QtGui/private/qgenericunixfontdatabase_p.h>
#include <QtServiceSupport/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixeventdispatcher_p.h>

#include <QtFbSupport/private/qfbvthandler_p.h>
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/directfb/.prev_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ qt_internal_add_plugin(QDirectFbIntegrationPlugin
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate
Qt::ServiceSupportPrivate
)

#### Keys ignored in scope 1:.:.:directfb.pro:<TRUE>:
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/directfb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ qt_internal_add_plugin(QDirectFbIntegrationPlugin
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate
Qt::ServiceSupportPrivate
)

#### Keys ignored in scope 1:.:.:directfb.pro:<TRUE>:
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/platforms/directfb/directfb.pro
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
TARGET = qdirectfb

QT += \
core-private gui-private \
service_support-private
core-private gui-private

QMAKE_USE += directfb

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/directfb/qdirectfbintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

#include <QtGui/private/qgenericunixfontdatabase_p.h>
#include <QtGui/private/qgenericunixeventdispatcher_p.h>
#include <QtServiceSupport/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixservices_p.h>

#include <QtGui/private/qpixmap_blitter_p.h>
#include <QtGui/private/qpixmap_raster_p.h>
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/eglfs/.prev_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ qt_add_module(EglFSDeviceIntegration
Qt::EglSupportPrivate
Qt::FbSupportPrivate
Qt::GuiPrivate
Qt::ServiceSupportPrivate
Qt::ThemeSupportPrivate
)

Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/eglfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ qt_add_module(EglFSDeviceIntegration
Qt::EglSupportPrivate
Qt::FbSupportPrivate
Qt::GuiPrivate
Qt::ServiceSupportPrivate
Qt::ThemeSupportPrivate
EGL::EGL # special case
)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/eglfs/api/qeglfsintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#endif

#include <QtGui/private/qgenericunixfontdatabase_p.h>
#include <QtServiceSupport/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixservices_p.h>
#include <QtThemeSupport/private/qgenericunixthemes_p.h>
#include <QtGui/private/qgenericunixeventdispatcher_p.h>
#include <QtFbSupport/private/qfbvthandler_p.h>
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/eglfs/eglfsdeviceintegration.pro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MODULE = eglfsdeviceintegration
QT += \
core-private gui-private \
devicediscovery_support-private \
service_support-private theme_support-private \
theme_support-private \
fb_support-private egl_support-private

qtHaveModule(input_support-private): \
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/integrity/integrity.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ TARGET = integrityfb

QT += \
core-private gui-private \
service_support-private \
fb_support-private

SOURCES = \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "qintegrityhidmanager.h"

#include <QtGui/private/qgenericunixfontdatabase_p.h>
#include <QtServiceSupport/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixeventdispatcher_p.h>

#include <QtFbSupport/private/qfbbackingstore_p.h>
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/linuxfb/.prev_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ qt_internal_add_plugin(QLinuxFbIntegrationPlugin
Qt::FbSupportPrivate
Qt::Gui
Qt::GuiPrivate
Qt::ServiceSupportPrivate
)

#### Keys ignored in scope 1:.:.:linuxfb.pro:<TRUE>:
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/linuxfb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ qt_internal_add_plugin(QLinuxFbIntegrationPlugin
Qt::FbSupportPrivate
Qt::Gui
Qt::GuiPrivate
Qt::ServiceSupportPrivate
)

#### Keys ignored in scope 1:.:.:linuxfb.pro:<TRUE>:
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/linuxfb/linuxfb.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ DEFINES += QT_NO_FOREACH

QT += \
core-private gui-private \
service_support-private \
fb_support-private

qtHaveModule(input_support-private): \
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#endif

#include <QtGui/private/qgenericunixfontdatabase_p.h>
#include <QtServiceSupport/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixeventdispatcher_p.h>

#include <QtFbSupport/private/qfbvthandler_p.h>
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/vnc/.prev_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ qt_internal_add_plugin(QVncIntegrationPlugin
Qt::Gui
Qt::GuiPrivate
Qt::Network
Qt::ServiceSupportPrivate
)

#### Keys ignored in scope 1:.:.:vnc.pro:<TRUE>:
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/vnc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ qt_internal_add_plugin(QVncIntegrationPlugin
Qt::Gui
Qt::GuiPrivate
Qt::Network
Qt::ServiceSupportPrivate
)

#### Keys ignored in scope 1:.:.:vnc.pro:<TRUE>:
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/vnc/qvncintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "qvnc_p.h"

#include <QtGui/private/qgenericunixfontdatabase_p.h>
#include <QtServiceSupport/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixeventdispatcher_p.h>

#include <QtFbSupport/private/qfbbackingstore_p.h>
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/vnc/vnc.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TARGET = qvnc

QT += \
core-private network gui-private \
service_support-private fb_support-private
fb_support-private

qtHaveModule(input_support-private): \
QT += input_support-private
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/xcb/.prev_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ qt_add_module(XcbQpa
Qt::CorePrivate
Qt::EdidSupportPrivate
Qt::GuiPrivate
Qt::ServiceSupportPrivate
Qt::ThemeSupportPrivate
Qt::XkbCommonSupportPrivate
XCB::ICCCM
Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/xcb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ qt_add_module(XcbQpa
Qt::CorePrivate
Qt::EdidSupportPrivate
Qt::GuiPrivate
Qt::ServiceSupportPrivate
Qt::ThemeSupportPrivate
Qt::XkbCommonSupportPrivate
XCB::ICCCM
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/xcb/qxcbintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#include <xcb/xcb.h>

#include <QtGui/private/qgenericunixfontdatabase_p.h>
#include <QtServiceSupport/private/qgenericunixservices_p.h>
#include <QtGui/private/qgenericunixservices_p.h>
#if QT_CONFIG(opengl)
#include <QtOpenGL/qpa/qplatformbackingstoreopenglsupport.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/xcb/xcb_qpa_lib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DEFINES += QT_NO_FOREACH

QT += \
core-private gui-private \
service_support-private theme_support-private \
theme_support-private \
edid_support-private \
xkbcommon_support-private

Expand Down
1 change: 0 additions & 1 deletion sync.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"QtDeviceDiscoverySupport" => "$basedir/src/platformsupport/devicediscovery",
"QtInputSupport" => "$basedir/src/platformsupport/input",
"QtXkbCommonSupport" => "$basedir/src/platformsupport/input/xkbcommon",
"QtServiceSupport" => "$basedir/src/platformsupport/services",
"QtThemeSupport" => "$basedir/src/platformsupport/themes",
"QtEglSupport" => "$basedir/src/platformsupport/eglconvenience",
"QtFbSupport" => "$basedir/src/platformsupport/fbconvenience",
Expand Down

0 comments on commit 7e83f09

Please sign in to comment.