create modularized version of qtplatformsupport module
lumping together all kinds of unrelated stuff has caused problems with spurious dependencies from the beginning. as the modularization infra is now in a state which supports many small private libraries just fine, take advantage of it. Change-Id: Ic40f47ce76a308bbfd32deae281f6f064fe1ef4c Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
ec774500fb
commit
ea913750b8
@ -41,7 +41,7 @@
|
||||
#define QEGLNATIVECONTEXT_H
|
||||
|
||||
#include <QtCore/QMetaType>
|
||||
#include <QtPlatformSupport/private/qt_egl_p.h>
|
||||
#include <QtEglSupport/private/qt_egl_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
qtConfig(accessibility) {
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/qaccessiblebridgeutils_p.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/qaccessiblebridgeutils.cpp
|
||||
}
|
16
src/platformsupport/accessibility/accessibility.pro
Normal file
16
src/platformsupport/accessibility/accessibility.pro
Normal file
@ -0,0 +1,16 @@
|
||||
TARGET = QtAccessibilitySupport
|
||||
MODULE = accessibility_support
|
||||
|
||||
QT = core-private gui
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
HEADERS += \
|
||||
qaccessiblebridgeutils_p.h
|
||||
|
||||
SOURCES += \
|
||||
qaccessiblebridgeutils.cpp
|
||||
|
||||
load(qt_module)
|
@ -1,11 +0,0 @@
|
||||
osx {
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/cglconvenience_p.h
|
||||
|
||||
OBJECTIVE_SOURCES += \
|
||||
$$PWD/cglconvenience.mm
|
||||
|
||||
LIBS_PRIVATE += -framework AppKit -framework OpenGL
|
||||
}
|
18
src/platformsupport/cglconvenience/cglconvenience.pro
Normal file
18
src/platformsupport/cglconvenience/cglconvenience.pro
Normal file
@ -0,0 +1,18 @@
|
||||
TARGET = QtCglSupport
|
||||
MODULE = cgl_support
|
||||
|
||||
QT = core-private gui
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
HEADERS += \
|
||||
cglconvenience_p.h
|
||||
|
||||
OBJECTIVE_SOURCES += \
|
||||
cglconvenience.mm
|
||||
|
||||
LIBS_PRIVATE += -framework AppKit -framework OpenGL
|
||||
|
||||
load(qt_module)
|
@ -1,7 +0,0 @@
|
||||
mac {
|
||||
HEADERS += $$PWD/qmacmime_p.h
|
||||
OBJECTIVE_SOURCES += $$PWD/qmacmime.mm
|
||||
|
||||
osx: LIBS_PRIVATE += -framework AppKit
|
||||
}
|
||||
|
15
src/platformsupport/clipboard/clipboard.pro
Normal file
15
src/platformsupport/clipboard/clipboard.pro
Normal file
@ -0,0 +1,15 @@
|
||||
TARGET = QtClipboardSupport
|
||||
MODULE = clipboard_support
|
||||
|
||||
QT = core-private gui
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
HEADERS += qmacmime_p.h
|
||||
SOURCES += qmacmime.mm
|
||||
|
||||
macos: LIBS_PRIVATE += -framework AppKit
|
||||
|
||||
load(qt_module)
|
@ -1,13 +0,0 @@
|
||||
HEADERS += $$PWD/qdevicediscovery_p.h
|
||||
|
||||
qtConfig(libudev) {
|
||||
SOURCES += $$PWD/qdevicediscovery_udev.cpp
|
||||
HEADERS += $$PWD/qdevicediscovery_udev_p.h
|
||||
QMAKE_USE_PRIVATE += libudev
|
||||
} else: qtConfig(evdev) {
|
||||
SOURCES += $$PWD/qdevicediscovery_static.cpp
|
||||
HEADERS += $$PWD/qdevicediscovery_static_p.h
|
||||
} else {
|
||||
SOURCES += $$PWD/qdevicediscovery_dummy.cpp
|
||||
HEADERS += $$PWD/qdevicediscovery_dummy_p.h
|
||||
}
|
25
src/platformsupport/devicediscovery/devicediscovery.pro
Normal file
25
src/platformsupport/devicediscovery/devicediscovery.pro
Normal file
@ -0,0 +1,25 @@
|
||||
TARGET = QtDeviceDiscoverySupport
|
||||
MODULE = devicediscovery_support
|
||||
|
||||
QT = core-private
|
||||
QT_FOR_CONFIG += gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
HEADERS += qdevicediscovery_p.h
|
||||
|
||||
qtConfig(libudev) {
|
||||
SOURCES += qdevicediscovery_udev.cpp
|
||||
HEADERS += qdevicediscovery_udev_p.h
|
||||
QMAKE_USE_PRIVATE += libudev
|
||||
} else: qtConfig(evdev) {
|
||||
SOURCES += qdevicediscovery_static.cpp
|
||||
HEADERS += qdevicediscovery_static_p.h
|
||||
} else {
|
||||
SOURCES += qdevicediscovery_dummy.cpp
|
||||
HEADERS += qdevicediscovery_dummy_p.h
|
||||
}
|
||||
|
||||
load(qt_module)
|
@ -1,32 +0,0 @@
|
||||
qtConfig(egl) {
|
||||
HEADERS += \
|
||||
$$PWD/qeglconvenience_p.h \
|
||||
$$PWD/qeglstreamconvenience_p.h \
|
||||
$$PWD/qt_egl_p.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/qeglconvenience.cpp \
|
||||
$$PWD/qeglstreamconvenience.cpp
|
||||
|
||||
qtConfig(opengl) {
|
||||
HEADERS += $$PWD/qeglplatformcontext_p.h \
|
||||
$$PWD/qeglpbuffer_p.h
|
||||
|
||||
SOURCES += $$PWD/qeglplatformcontext.cpp \
|
||||
$$PWD/qeglpbuffer.cpp
|
||||
}
|
||||
|
||||
# Avoid X11 header collision, use generic EGL native types
|
||||
DEFINES += QT_EGL_NO_X11
|
||||
|
||||
qtConfig(xlib) {
|
||||
HEADERS += \
|
||||
$$PWD/qxlibeglintegration_p.h
|
||||
SOURCES += \
|
||||
$$PWD/qxlibeglintegration.cpp
|
||||
LIBS_PRIVATE += $$QMAKE_LIBS_X11
|
||||
}
|
||||
CONFIG += egl
|
||||
|
||||
LIBS_PRIVATE += $$QMAKE_LIBS_DYNLOAD
|
||||
}
|
43
src/platformsupport/eglconvenience/eglconvenience.pro
Normal file
43
src/platformsupport/eglconvenience/eglconvenience.pro
Normal file
@ -0,0 +1,43 @@
|
||||
TARGET = QtEglSupport
|
||||
MODULE = egl_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
HEADERS += \
|
||||
qeglconvenience_p.h \
|
||||
qeglstreamconvenience_p.h \
|
||||
qt_egl_p.h
|
||||
|
||||
SOURCES += \
|
||||
qeglconvenience.cpp \
|
||||
qeglstreamconvenience.cpp
|
||||
|
||||
qtConfig(opengl) {
|
||||
HEADERS += \
|
||||
qeglplatformcontext_p.h \
|
||||
qeglpbuffer_p.h
|
||||
|
||||
SOURCES += \
|
||||
qeglplatformcontext.cpp \
|
||||
qeglpbuffer.cpp
|
||||
}
|
||||
|
||||
# Avoid X11 header collision, use generic EGL native types
|
||||
DEFINES += QT_EGL_NO_X11
|
||||
|
||||
qtConfig(xlib) {
|
||||
HEADERS += \
|
||||
qxlibeglintegration_p.h
|
||||
SOURCES += \
|
||||
qxlibeglintegration.cpp
|
||||
LIBS_PRIVATE += $$QMAKE_LIBS_X11
|
||||
}
|
||||
CONFIG += egl
|
||||
|
||||
LIBS_PRIVATE += $$QMAKE_LIBS_DYNLOAD
|
||||
|
||||
load(qt_module)
|
@ -54,7 +54,7 @@
|
||||
#include <QtGui/QSurfaceFormat>
|
||||
#include <QtCore/QVector>
|
||||
#include <QtCore/QSizeF>
|
||||
#include <QtPlatformSupport/private/qt_egl_p.h>
|
||||
#include <QtEglSupport/private/qt_egl_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
//
|
||||
|
||||
#include <qpa/qplatformoffscreensurface.h>
|
||||
#include <QtPlatformSupport/private/qeglplatformcontext_p.h>
|
||||
#include <QtEglSupport/private/qeglplatformcontext_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
||||
#include <qpa/qplatformwindow.h>
|
||||
#include <qpa/qplatformopenglcontext.h>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtPlatformSupport/private/qt_egl_p.h>
|
||||
#include <QtEglSupport/private/qt_egl_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
//
|
||||
|
||||
#include <qglobal.h>
|
||||
#include <QtPlatformSupport/private/qt_egl_p.h>
|
||||
#include <QtEglSupport/private/qt_egl_p.h>
|
||||
|
||||
// This provides runtime EGLDevice/Output/Stream support even when eglext.h in
|
||||
// the sysroot is not up-to-date.
|
||||
|
@ -1,21 +0,0 @@
|
||||
unix {
|
||||
SOURCES +=\
|
||||
$$PWD/qunixeventdispatcher.cpp\
|
||||
$$PWD/qgenericunixeventdispatcher.cpp\
|
||||
|
||||
HEADERS +=\
|
||||
$$PWD/qunixeventdispatcher_qpa_p.h\
|
||||
$$PWD/qgenericunixeventdispatcher_p.h\
|
||||
} else: win32 {
|
||||
SOURCES +=\
|
||||
$$PWD/qwindowsguieventdispatcher.cpp
|
||||
|
||||
HEADERS +=\
|
||||
$$PWD/qwindowsguieventdispatcher_p.h
|
||||
}
|
||||
|
||||
qtConfig(glib) {
|
||||
SOURCES +=$$PWD/qeventdispatcher_glib.cpp
|
||||
HEADERS +=$$PWD/qeventdispatcher_glib_p.h
|
||||
QMAKE_USE_PRIVATE += glib
|
||||
}
|
32
src/platformsupport/eventdispatchers/eventdispatchers.pro
Normal file
32
src/platformsupport/eventdispatchers/eventdispatchers.pro
Normal file
@ -0,0 +1,32 @@
|
||||
TARGET = QtEventDispatcherSupport
|
||||
MODULE = eventdispatcher_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
unix {
|
||||
SOURCES += \
|
||||
qunixeventdispatcher.cpp \
|
||||
qgenericunixeventdispatcher.cpp
|
||||
|
||||
HEADERS += \
|
||||
qunixeventdispatcher_qpa_p.h \
|
||||
qgenericunixeventdispatcher_p.h
|
||||
} else {
|
||||
SOURCES += \
|
||||
qwindowsguieventdispatcher.cpp
|
||||
|
||||
HEADERS += \
|
||||
qwindowsguieventdispatcher_p.h
|
||||
}
|
||||
|
||||
qtConfig(glib) {
|
||||
SOURCES += qeventdispatcher_glib.cpp
|
||||
HEADERS += qeventdispatcher_glib_p.h
|
||||
QMAKE_USE_PRIVATE += glib
|
||||
}
|
||||
|
||||
load(qt_module)
|
@ -1,11 +0,0 @@
|
||||
SOURCES += $$PWD/qfbscreen.cpp \
|
||||
$$PWD/qfbbackingstore.cpp \
|
||||
$$PWD/qfbwindow.cpp \
|
||||
$$PWD/qfbcursor.cpp \
|
||||
$$PWD/qfbvthandler.cpp
|
||||
|
||||
HEADERS += $$PWD/qfbscreen_p.h \
|
||||
$$PWD/qfbbackingstore_p.h \
|
||||
$$PWD/qfbwindow_p.h \
|
||||
$$PWD/qfbcursor_p.h \
|
||||
$$PWD/qfbvthandler_p.h
|
24
src/platformsupport/fbconvenience/fbconvenience.pro
Normal file
24
src/platformsupport/fbconvenience/fbconvenience.pro
Normal file
@ -0,0 +1,24 @@
|
||||
TARGET = QtFbSupport
|
||||
MODULE = fb_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
SOURCES += \
|
||||
qfbscreen.cpp \
|
||||
qfbbackingstore.cpp \
|
||||
qfbwindow.cpp \
|
||||
qfbcursor.cpp \
|
||||
qfbvthandler.cpp
|
||||
|
||||
HEADERS += \
|
||||
qfbscreen_p.h \
|
||||
qfbbackingstore_p.h \
|
||||
qfbwindow_p.h \
|
||||
qfbcursor_p.h \
|
||||
qfbvthandler_p.h
|
||||
|
||||
load(qt_module)
|
@ -52,7 +52,7 @@
|
||||
//
|
||||
|
||||
#include <qpa/qplatformfontdatabase.h>
|
||||
#include <QtPlatformSupport/private/qbasicfontdatabase_p.h>
|
||||
#include <QtFontDatabaseSupport/private/qbasicfontdatabase_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
TARGET = QtFontDatabaseSupport
|
||||
MODULE = fontdatabase_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
darwin:!if(watchos:CONFIG(simulator, simulator|device)) {
|
||||
include($$PWD/mac/coretext.pri)
|
||||
} else {
|
||||
@ -13,3 +22,5 @@ darwin:!if(watchos:CONFIG(simulator, simulator|device)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
load(qt_module)
|
@ -54,10 +54,10 @@
|
||||
#include <QtGui/private/qtguiglobal_p.h>
|
||||
|
||||
#if QT_CONFIG(fontconfig)
|
||||
#include <QtPlatformSupport/private/qfontconfigdatabase_p.h>
|
||||
#include <QtFontDatabaseSupport/private/qfontconfigdatabase_p.h>
|
||||
typedef QFontconfigDatabase QGenericUnixFontDatabase;
|
||||
#else
|
||||
#include <QtPlatformSupport/private/qbasicfontdatabase_p.h>
|
||||
#include <QtFontDatabaseSupport/private/qbasicfontdatabase_p.h>
|
||||
typedef QBasicFontDatabase QGenericUnixFontDatabase;
|
||||
#endif //Q_FONTCONFIGDATABASE
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
qtConfig(xlib) {
|
||||
qtConfig(opengl):!qtConfig(opengles2) {
|
||||
qtConfig(xrender): QMAKE_USE_PRIVATE += xrender
|
||||
LIBS_PRIVATE += $$QMAKE_LIBS_X11
|
||||
HEADERS += $$PWD/qglxconvenience_p.h
|
||||
SOURCES += $$PWD/qglxconvenience.cpp
|
||||
}
|
||||
}
|
16
src/platformsupport/glxconvenience/glxconvenience.pro
Normal file
16
src/platformsupport/glxconvenience/glxconvenience.pro
Normal file
@ -0,0 +1,16 @@
|
||||
TARGET = QtGlxSupport
|
||||
MODULE = glx_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
qtConfig(xrender): QMAKE_USE_PRIVATE += xrender
|
||||
LIBS_PRIVATE += $$QMAKE_LIBS_X11
|
||||
|
||||
HEADERS += qglxconvenience_p.h
|
||||
SOURCES += qglxconvenience.cpp
|
||||
|
||||
load(qt_module)
|
@ -1,2 +0,0 @@
|
||||
HEADERS += $$PWD/qrasterbackingstore_p.h
|
||||
SOURCES += $$PWD/qrasterbackingstore.cpp
|
13
src/platformsupport/graphics/graphics.pro
Normal file
13
src/platformsupport/graphics/graphics.pro
Normal file
@ -0,0 +1,13 @@
|
||||
TARGET = QtGraphicsSupport
|
||||
MODULE = graphics_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
HEADERS += $$PWD/qrasterbackingstore_p.h
|
||||
SOURCES += $$PWD/qrasterbackingstore.cpp
|
||||
|
||||
load(qt_module)
|
@ -53,7 +53,7 @@
|
||||
|
||||
#include "qevdevkeyboardhandler_p.h"
|
||||
|
||||
#include <QtPlatformSupport/private/qdevicediscovery_p.h>
|
||||
#include <QtDeviceDiscoverySupport/private/qdevicediscovery_p.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <QHash>
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <QScreen>
|
||||
#include <QLoggingCategory>
|
||||
#include <qpa/qwindowsysteminterface.h>
|
||||
#include <QtPlatformSupport/private/qdevicediscovery_p.h>
|
||||
#include <QtDeviceDiscoverySupport/private/qdevicediscovery_p.h>
|
||||
#include <private/qguiapplication_p.h>
|
||||
#include <private/qinputdevicemanager_p_p.h>
|
||||
#include <private/qhighdpiscaling_p.h>
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include <QStringList>
|
||||
#include <QGuiApplication>
|
||||
#include <QLoggingCategory>
|
||||
#include <QtPlatformSupport/private/qdevicediscovery_p.h>
|
||||
#include <QtDeviceDiscoverySupport/private/qdevicediscovery_p.h>
|
||||
#include <private/qguiapplication_p.h>
|
||||
#include <private/qinputdevicemanager_p_p.h>
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include <QStringList>
|
||||
#include <QGuiApplication>
|
||||
#include <QLoggingCategory>
|
||||
#include <QtPlatformSupport/private/qdevicediscovery_p.h>
|
||||
#include <QtDeviceDiscoverySupport/private/qdevicediscovery_p.h>
|
||||
#include <private/qguiapplication_p.h>
|
||||
#include <private/qinputdevicemanager_p_p.h>
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
TARGET = QtInputSupport
|
||||
MODULE = input_support
|
||||
|
||||
QT = core-private gui-private devicediscovery_support-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
qtConfig(evdev) {
|
||||
include($$PWD/evdevmouse/evdevmouse.pri)
|
||||
include($$PWD/evdevkeyboard/evdevkeyboard.pri)
|
||||
@ -16,3 +25,5 @@ qtConfig(libinput) {
|
||||
qtConfig(evdev)|qtConfig(libinput) {
|
||||
include($$PWD/shared/shared.pri)
|
||||
}
|
||||
|
||||
load(qt_module)
|
48
src/platformsupport/legacy.cpp
Normal file
48
src/platformsupport/legacy.cpp
Normal file
@ -0,0 +1,48 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the plugins of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <qglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
void dummy()
|
||||
{
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
32
src/platformsupport/legacy.pro
Normal file
32
src/platformsupport/legacy.pro
Normal file
@ -0,0 +1,32 @@
|
||||
TARGET = QtPlatformSupport
|
||||
MODULE = platformsupport
|
||||
|
||||
QT_FOR_CONFIG += gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
SOURCES += legacy.cpp
|
||||
|
||||
mods = \
|
||||
accessibility \
|
||||
cgl \
|
||||
clipboard \
|
||||
devicediscovery \
|
||||
egl \
|
||||
eventdispatcher \
|
||||
fb \
|
||||
fontdatabase \
|
||||
glx \
|
||||
graphics \
|
||||
input \
|
||||
linuxaccessibility \
|
||||
platformcompositor \
|
||||
service \
|
||||
theme
|
||||
|
||||
for (mod, mods) {
|
||||
mod = $${mod}_support-private
|
||||
qtHaveModule($$mod): \
|
||||
QT += $$mod
|
||||
}
|
||||
|
||||
load(qt_module)
|
@ -50,7 +50,7 @@
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
#include "socket_interface.h"
|
||||
#include "constant_mappings_p.h"
|
||||
#include "../accessibility/qaccessiblebridgeutils_p.h"
|
||||
#include <QtAccessibilitySupport/private/qaccessiblebridgeutils_p.h>
|
||||
|
||||
#include "application_p.h"
|
||||
/*!
|
||||
|
@ -1,25 +0,0 @@
|
||||
qtConfig(accessibility-atspi-bridge) {
|
||||
|
||||
QT_FOR_PRIVATE += dbus
|
||||
include(../../3rdparty/atspi2/atspi2.pri)
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/application_p.h \
|
||||
$$PWD/bridge_p.h \
|
||||
$$PWD/cache_p.h \
|
||||
$$PWD/struct_marshallers_p.h \
|
||||
$$PWD/constant_mappings_p.h \
|
||||
$$PWD/dbusconnection_p.h \
|
||||
$$PWD/atspiadaptor_p.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/application.cpp \
|
||||
$$PWD/bridge.cpp \
|
||||
$$PWD/cache.cpp \
|
||||
$$PWD/struct_marshallers.cpp \
|
||||
$$PWD/constant_mappings.cpp \
|
||||
$$PWD/dbusconnection.cpp \
|
||||
$$PWD/atspiadaptor.cpp
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
TARGET = QtLinuxAccessibilitySupport
|
||||
MODULE = linuxaccessibility_support
|
||||
|
||||
QT = core-private dbus gui-private accessibility_support-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
include(../../3rdparty/atspi2/atspi2.pri)
|
||||
|
||||
HEADERS += \
|
||||
application_p.h \
|
||||
bridge_p.h \
|
||||
cache_p.h \
|
||||
struct_marshallers_p.h \
|
||||
constant_mappings_p.h \
|
||||
dbusconnection_p.h \
|
||||
atspiadaptor_p.h
|
||||
|
||||
SOURCES += \
|
||||
application.cpp \
|
||||
bridge.cpp \
|
||||
cache.cpp \
|
||||
struct_marshallers.cpp \
|
||||
constant_mappings.cpp \
|
||||
dbusconnection.cpp \
|
||||
atspiadaptor.cpp
|
||||
|
||||
load(qt_module)
|
@ -1,7 +0,0 @@
|
||||
qtConfig(opengl) {
|
||||
SOURCES += $$PWD/qopenglcompositor.cpp \
|
||||
$$PWD/qopenglcompositorbackingstore.cpp
|
||||
|
||||
HEADERS += $$PWD/qopenglcompositor_p.h \
|
||||
$$PWD/qopenglcompositorbackingstore_p.h
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
TARGET = QtPlatformCompositorSupport
|
||||
MODULE = platformcompositor_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
SOURCES += \
|
||||
qopenglcompositor.cpp \
|
||||
qopenglcompositorbackingstore.cpp
|
||||
|
||||
HEADERS += \
|
||||
qopenglcompositor_p.h \
|
||||
qopenglcompositorbackingstore_p.h
|
||||
|
||||
load(qt_module)
|
@ -1,27 +1,47 @@
|
||||
TARGET = QtPlatformSupport
|
||||
QT = core-private gui-private
|
||||
TEMPLATE = subdirs
|
||||
QT_FOR_CONFIG += gui-private
|
||||
|
||||
CONFIG += static internal_module
|
||||
mac:LIBS_PRIVATE += -lz
|
||||
SUBDIRS = \
|
||||
eventdispatchers \
|
||||
devicediscovery \
|
||||
fbconvenience \
|
||||
themes
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../corelib/global/qt_pch.h
|
||||
qtConfig(freetype)|if(darwin:!if(watchos:CONFIG(simulator, simulator|device))): \
|
||||
SUBDIRS += fontdatabases
|
||||
|
||||
include(cglconvenience/cglconvenience.pri)
|
||||
include(eglconvenience/eglconvenience.pri)
|
||||
include(eventdispatchers/eventdispatchers.pri)
|
||||
include(fbconvenience/fbconvenience.pri)
|
||||
include(fontdatabases/fontdatabases.pri)
|
||||
include(glxconvenience/glxconvenience.pri)
|
||||
include(input/input.pri)
|
||||
include(devicediscovery/devicediscovery.pri)
|
||||
include(services/services.pri)
|
||||
include(themes/themes.pri)
|
||||
include(accessibility/accessibility.pri)
|
||||
include(linuxaccessibility/linuxaccessibility.pri)
|
||||
include(clipboard/clipboard.pri)
|
||||
include(platformcompositor/platformcompositor.pri)
|
||||
qtConfig(evdev)|qtConfig(tslib)|qtConfig(libinput) {
|
||||
SUBDIRS += input
|
||||
input.depends += devicediscovery
|
||||
}
|
||||
|
||||
darwin: include(graphics/graphics.pri)
|
||||
unix:!darwin: \
|
||||
SUBDIRS += services
|
||||
|
||||
load(qt_module)
|
||||
qtConfig(opengl): \
|
||||
SUBDIRS += platformcompositor
|
||||
qtConfig(egl): \
|
||||
SUBDIRS += eglconvenience
|
||||
qtConfig(xlib):qtConfig(opengl):!qtConfig(opengles2): \
|
||||
SUBDIRS += glxconvenience
|
||||
|
||||
qtConfig(accessibility) {
|
||||
SUBDIRS += accessibility
|
||||
qtConfig(accessibility-atspi-bridge) {
|
||||
SUBDIRS += linuxaccessibility
|
||||
linuxaccessibility.depends += accessibility
|
||||
}
|
||||
}
|
||||
|
||||
darwin {
|
||||
SUBDIRS += \
|
||||
clipboard \
|
||||
graphics
|
||||
macos: \
|
||||
SUBDIRS += cglconvenience
|
||||
}
|
||||
|
||||
# This aggregates all of them.
|
||||
legacy.file = legacy.pro
|
||||
legacy.depends = $$SUBDIRS
|
||||
SUBDIRS += legacy
|
||||
|
@ -1,3 +0,0 @@
|
||||
unix:!mac {
|
||||
include($$PWD/genericunix/genericunix.pri)
|
||||
}
|
13
src/platformsupport/services/services.pro
Normal file
13
src/platformsupport/services/services.pro
Normal file
@ -0,0 +1,13 @@
|
||||
TARGET = QtServiceSupport
|
||||
MODULE = service_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
unix:!darwin: \
|
||||
include($$PWD/genericunix/genericunix.pri)
|
||||
|
||||
load(qt_module)
|
@ -38,7 +38,6 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qgenericunixthemes_p.h"
|
||||
#include "../../services/genericunix/qgenericunixservices_p.h"
|
||||
|
||||
#include "qpa/qplatformtheme_p.h"
|
||||
|
||||
@ -61,11 +60,11 @@
|
||||
#include <qpa/qplatformservices.h>
|
||||
#include <qpa/qplatformdialoghelper.h>
|
||||
#ifndef QT_NO_DBUS
|
||||
#include "QtPlatformSupport/private/qdbusplatformmenu_p.h"
|
||||
#include "QtPlatformSupport/private/qdbusmenubar_p.h"
|
||||
#include "qdbusplatformmenu_p.h"
|
||||
#include "qdbusmenubar_p.h"
|
||||
#endif
|
||||
#if !defined(QT_NO_DBUS) && !defined(QT_NO_SYSTEMTRAYICON)
|
||||
#include "QtPlatformSupport/private/qdbustrayicon_p.h"
|
||||
#include "qdbustrayicon_p.h"
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -1,9 +0,0 @@
|
||||
unix:!mac {
|
||||
include($$PWD/genericunix/genericunix.pri)
|
||||
}
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/qabstractfileiconengine_p.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/qabstractfileiconengine.cpp
|
19
src/platformsupport/themes/themes.pro
Normal file
19
src/platformsupport/themes/themes.pro
Normal file
@ -0,0 +1,19 @@
|
||||
TARGET = QtThemeSupport
|
||||
MODULE = theme_support
|
||||
|
||||
QT = core-private gui-private
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
PRECOMPILED_HEADER = ../../corelib/global/qt_pch.h
|
||||
|
||||
unix:!darwin: \
|
||||
include($$PWD/genericunix/genericunix.pri)
|
||||
|
||||
HEADERS += \
|
||||
qabstractfileiconengine_p.h
|
||||
|
||||
SOURCES += \
|
||||
qabstractfileiconengine.cpp
|
||||
|
||||
load(qt_module)
|
15
sync.profile
15
sync.profile
@ -10,6 +10,21 @@
|
||||
"QtTest" => "$basedir/src/testlib",
|
||||
"QtDBus" => "$basedir/src/dbus",
|
||||
"QtConcurrent" => "$basedir/src/concurrent",
|
||||
"QtAccessibilitySupport" => "$basedir/src/platformsupport/accessibility",
|
||||
"QtLinuxAccessibilitySupport" => "$basedir/src/platformsupport/linuxaccessibility",
|
||||
"QtClipboardSupport" => "$basedir/src/platformsupport/clipboard",
|
||||
"QtDeviceDiscoverySupport" => "$basedir/src/platformsupport/devicediscovery",
|
||||
"QtEventDispatcherSupport" => "$basedir/src/platformsupport/eventdispatchers",
|
||||
"QtFontDatabaseSupport" => "$basedir/src/platformsupport/fontdatabases",
|
||||
"QtInputSupport" => "$basedir/src/platformsupport/input",
|
||||
"QtPlatformCompositorSupport" => "$basedir/src/platformsupport/platformcompositor",
|
||||
"QtServiceSupport" => "$basedir/src/platformsupport/services",
|
||||
"QtThemeSupport" => "$basedir/src/platformsupport/themes",
|
||||
"QtGraphicsSupport" => "$basedir/src/platformsupport/graphics",
|
||||
"QtCglSupport" => "$basedir/src/platformsupport/cglconvenience",
|
||||
"QtEglSupport" => "$basedir/src/platformsupport/eglconvenience",
|
||||
"QtFbSupport" => "$basedir/src/platformsupport/fbconvenience",
|
||||
"QtGlxSupport" => "$basedir/src/platformsupport/glxconvenience",
|
||||
"QtPlatformSupport" => "$basedir/src/platformsupport",
|
||||
"QtPlatformHeaders" => "$basedir/src/platformheaders",
|
||||
"QtANGLE/KHR" => "!$basedir/src/3rdparty/angle/include/KHR",
|
||||
|
@ -1,12 +1,7 @@
|
||||
CONFIG += testcase
|
||||
|
||||
include($$QT_SOURCE_TREE/src/platformsupport/accessibility/accessibility.pri)
|
||||
include($$QT_SOURCE_TREE/src/platformsupport/linuxaccessibility/linuxaccessibility.pri)
|
||||
|
||||
TARGET = tst_qaccessibilitylinux
|
||||
SOURCES += tst_qaccessibilitylinux.cpp
|
||||
|
||||
CONFIG += gui
|
||||
|
||||
QT += gui-private widgets dbus testlib
|
||||
QT += gui-private widgets dbus testlib accessibility_support-private linuxaccessibility_support-private
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user