summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/client.pro (renamed from src/plugins/platforms/wayland_common/wayland_common.pro)61
-rw-r--r--src/client/qwaylandbuffer.h (renamed from src/plugins/platforms/wayland_common/qwaylandbuffer.h)4
-rw-r--r--src/client/qwaylandclientexport.h60
-rw-r--r--src/client/qwaylandclipboard.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandclipboard.cpp)0
-rw-r--r--src/client/qwaylandclipboard.h (renamed from src/plugins/platforms/wayland_common/qwaylandclipboard.h)4
-rw-r--r--src/client/qwaylandcursor.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandcursor.cpp)0
-rw-r--r--src/client/qwaylandcursor.h (renamed from src/plugins/platforms/wayland_common/qwaylandcursor.h)5
-rw-r--r--src/client/qwaylanddatadevice.cpp (renamed from src/plugins/platforms/wayland_common/qwaylanddatadevice.cpp)0
-rw-r--r--src/client/qwaylanddatadevice.h (renamed from src/plugins/platforms/wayland_common/qwaylanddatadevice.h)0
-rw-r--r--src/client/qwaylanddatadevicemanager.cpp (renamed from src/plugins/platforms/wayland_common/qwaylanddatadevicemanager.cpp)0
-rw-r--r--src/client/qwaylanddatadevicemanager.h (renamed from src/plugins/platforms/wayland_common/qwaylanddatadevicemanager.h)2
-rw-r--r--src/client/qwaylanddataoffer.cpp (renamed from src/plugins/platforms/wayland_common/qwaylanddataoffer.cpp)0
-rw-r--r--src/client/qwaylanddataoffer.h (renamed from src/plugins/platforms/wayland_common/qwaylanddataoffer.h)2
-rw-r--r--src/client/qwaylanddatasource.cpp (renamed from src/plugins/platforms/wayland_common/qwaylanddatasource.cpp)0
-rw-r--r--src/client/qwaylanddatasource.h (renamed from src/plugins/platforms/wayland_common/qwaylanddatasource.h)2
-rw-r--r--src/client/qwaylanddecoration.cpp (renamed from src/plugins/platforms/wayland_common/qwaylanddecoration.cpp)0
-rw-r--r--src/client/qwaylanddecoration.h (renamed from src/plugins/platforms/wayland_common/qwaylanddecoration.h)3
-rw-r--r--src/client/qwaylanddisplay.cpp (renamed from src/plugins/platforms/wayland_common/qwaylanddisplay.cpp)4
-rw-r--r--src/client/qwaylanddisplay.h (renamed from src/plugins/platforms/wayland_common/qwaylanddisplay.h)6
-rw-r--r--src/client/qwaylanddnd.cpp (renamed from src/plugins/platforms/wayland_common/qwaylanddnd.cpp)0
-rw-r--r--src/client/qwaylanddnd.h (renamed from src/plugins/platforms/wayland_common/qwaylanddnd.h)2
-rw-r--r--src/client/qwaylandeventthread.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandeventthread.cpp)0
-rw-r--r--src/client/qwaylandeventthread.h (renamed from src/plugins/platforms/wayland_common/qwaylandeventthread.h)4
-rw-r--r--src/client/qwaylandextendedoutput.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandextendedoutput.cpp)0
-rw-r--r--src/client/qwaylandextendedoutput.h (renamed from src/plugins/platforms/wayland_common/qwaylandextendedoutput.h)4
-rw-r--r--src/client/qwaylandextendedsurface.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp)0
-rw-r--r--src/client/qwaylandextendedsurface.h (renamed from src/plugins/platforms/wayland_common/qwaylandextendedsurface.h)6
-rw-r--r--src/client/qwaylandglintegration.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandglintegration.cpp)0
-rw-r--r--src/client/qwaylandglintegration.h (renamed from src/plugins/platforms/wayland_common/qwaylandglintegration.h)3
-rw-r--r--src/client/qwaylandinputcontext.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandinputcontext.cpp)0
-rw-r--r--src/client/qwaylandinputcontext.h (renamed from src/plugins/platforms/wayland_common/qwaylandinputcontext.h)2
-rw-r--r--src/client/qwaylandinputdevice.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandinputdevice.cpp)0
-rw-r--r--src/client/qwaylandinputdevice.h (renamed from src/plugins/platforms/wayland_common/qwaylandinputdevice.h)9
-rw-r--r--src/client/qwaylandintegration.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandintegration.cpp)0
-rw-r--r--src/client/qwaylandintegration.h (renamed from src/plugins/platforms/wayland_common/qwaylandintegration.h)3
-rw-r--r--src/client/qwaylandnativeinterface.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandnativeinterface.cpp)0
-rw-r--r--src/client/qwaylandnativeinterface.h (renamed from src/plugins/platforms/wayland_common/qwaylandnativeinterface.h)2
-rw-r--r--src/client/qwaylandqtkey.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandqtkey.cpp)0
-rw-r--r--src/client/qwaylandqtkey.h (renamed from src/plugins/platforms/wayland_common/qwaylandqtkey.h)4
-rw-r--r--src/client/qwaylandscreen.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandscreen.cpp)0
-rw-r--r--src/client/qwaylandscreen.h (renamed from src/plugins/platforms/wayland_common/qwaylandscreen.h)5
-rw-r--r--src/client/qwaylandshellsurface.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandshellsurface.cpp)0
-rw-r--r--src/client/qwaylandshellsurface.h (renamed from src/plugins/platforms/wayland_common/qwaylandshellsurface.h)5
-rw-r--r--src/client/qwaylandshmbackingstore.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp)0
-rw-r--r--src/client/qwaylandshmbackingstore.h (renamed from src/plugins/platforms/wayland_common/qwaylandshmbackingstore.h)4
-rw-r--r--src/client/qwaylandshmwindow.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandshmwindow.cpp)0
-rw-r--r--src/client/qwaylandshmwindow.h (renamed from src/plugins/platforms/wayland_common/qwaylandshmwindow.h)2
-rw-r--r--src/client/qwaylandsubsurface.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandsubsurface.cpp)0
-rw-r--r--src/client/qwaylandsubsurface.h (renamed from src/plugins/platforms/wayland_common/qwaylandsubsurface.h)6
-rw-r--r--src/client/qwaylandtouch.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandtouch.cpp)0
-rw-r--r--src/client/qwaylandtouch.h (renamed from src/plugins/platforms/wayland_common/qwaylandtouch.h)4
-rw-r--r--src/client/qwaylandwindow.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandwindow.cpp)0
-rw-r--r--src/client/qwaylandwindow.h (renamed from src/plugins/platforms/wayland_common/qwaylandwindow.h)6
-rw-r--r--src/client/qwaylandwindowmanagerintegration.cpp (renamed from src/plugins/platforms/wayland_common/qwaylandwindowmanagerintegration.cpp)0
-rw-r--r--src/client/qwaylandwindowmanagerintegration.h (renamed from src/plugins/platforms/wayland_common/qwaylandwindowmanagerintegration.h)5
-rw-r--r--src/compositor/compositor.pro1
-rw-r--r--src/compositor/wayland_wrapper/qwldatadevice_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwldatadevicemanager_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwldataoffer_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwldatasource_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwldisplay.cpp2
-rw-r--r--src/compositor/wayland_wrapper/qwlextendedoutput_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlextendedsurface_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlinputdevice_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlinputmethod_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlinputmethodcontext_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlinputpanel_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlinputpanelsurface_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlkeyboard_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwloutput_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlpointer_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlqtkey_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlqttouch_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlregion_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlshellsurface_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlsubsurface_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwlsurface_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwltextinput_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwltextinputmanager_p.h2
-rw-r--r--src/compositor/wayland_wrapper/qwltouch_p.h2
-rw-r--r--src/compositor/windowmanagerprotocol/waylandwindowmanagerintegration.h2
-rw-r--r--src/plugins/platforms/platforms.pro14
-rw-r--r--src/plugins/platforms/qwayland-egl/qwayland-egl.pro3
-rw-r--r--src/plugins/platforms/qwayland-egl/qwaylandeglintegration.cpp2
-rw-r--r--src/plugins/platforms/qwayland-egl/qwaylandeglintegration.h2
-rw-r--r--src/plugins/platforms/qwayland-egl/qwaylandeglwindow.h2
-rw-r--r--src/plugins/platforms/qwayland-egl/qwaylandglcontext.h2
-rw-r--r--src/plugins/platforms/wayland_common/wayland_common.pri10
-rw-r--r--src/plugins/platforms/wayland_common/wayland_common_share.pri28
-rw-r--r--src/plugins/plugins.pro1
-rw-r--r--src/src.pro2
-rw-r--r--sync.profile1
92 files changed, 202 insertions, 145 deletions
diff --git a/src/plugins/platforms/wayland_common/wayland_common.pro b/src/client/client.pro
index cd40a182..66dc1a47 100644
--- a/src/plugins/platforms/wayland_common/wayland_common.pro
+++ b/src/client/client.pro
@@ -1,7 +1,45 @@
-TEMPLATE = lib
-CONFIG += staticlib
+TARGET = QtWaylandClient
+QT += core-private gui-private
+QT_FOR_PRIVATE += platformsupport-private
+
+MODULE=waylandclient
+load(qt_module)
+
+CONFIG += link_pkgconfig qpa/genericunixfontdatabase wayland-scanner
+
+!equals(QT_WAYLAND_GL_CONFIG, nogl) {
+ DEFINES += QT_WAYLAND_GL_SUPPORT
+}
+
+config_xkbcommon {
+ !contains(QT_CONFIG, no-pkg-config) {
+ PKGCONFIG += xkbcommon
+ } else {
+ LIBS += -lxkbcommon
+ }
+} else {
+ DEFINES += QT_NO_WAYLAND_XKB
+}
+
+!contains(QT_CONFIG, no-pkg-config) {
+ PKGCONFIG += wayland-client wayland-cursor
+ contains(QT_CONFIG, glib): PKGCONFIG_PRIVATE += glib-2.0
+} else {
+ LIBS += -lwayland-client -lwayland-cursor $$QT_LIBS_GLIB
+}
+
+INCLUDEPATH += $$PWD/../shared
+
+WAYLANDCLIENTSOURCES += \
+ ../3rdparty/protocol/wayland.xml \
+ ../extensions/surface-extension.xml \
+ ../extensions/sub-surface-extension.xml \
+ ../extensions/output-extension.xml \
+ ../extensions/touch-extension.xml \
+ ../extensions/qtkey-extension.xml \
+ ../extensions/windowmanager.xml \
+ ../3rdparty/protocol/text.xml \
-include ($$PWD/wayland_common_share.pri)
SOURCES += qwaylandintegration.cpp \
qwaylandnativeinterface.cpp \
@@ -23,7 +61,7 @@ SOURCES += qwaylandintegration.cpp \
qwaylandsubsurface.cpp \
qwaylandtouch.cpp \
qwaylandqtkey.cpp \
- ../../../shared/qwaylandmimehelper.cpp \
+ ../shared/qwaylandmimehelper.cpp \
qwaylanddecoration.cpp \
qwaylandeventthread.cpp\
qwaylandwindowmanagerintegration.cpp \
@@ -51,7 +89,7 @@ HEADERS += qwaylandintegration.h \
qwaylandsubsurface.h \
qwaylandtouch.h \
qwaylandqtkey.h \
- ../../../shared/qwaylandmimehelper.h \
+ ../shared/qwaylandmimehelper.h \
qwaylanddecoration.h \
qwaylandeventthread.h \
qwaylandwindowmanagerintegration.h \
@@ -63,16 +101,3 @@ contains(DEFINES, QT_WAYLAND_GL_SUPPORT) {
HEADERS += qwaylandglintegration.h
}
-CONFIG += wayland-scanner
-WAYLANDCLIENTSOURCES += \
- ../../../extensions/surface-extension.xml \
- ../../../extensions/sub-surface-extension.xml \
- ../../../extensions/output-extension.xml \
- ../../../extensions/touch-extension.xml \
- ../../../extensions/qtkey-extension.xml \
- ../../../extensions/windowmanager.xml \
- ../../../3rdparty/protocol/text.xml \
-
-PLUGIN_TYPE = platforms
-
-load(qt_common)
diff --git a/src/plugins/platforms/wayland_common/qwaylandbuffer.h b/src/client/qwaylandbuffer.h
index eee64856..8d9ceaa8 100644
--- a/src/plugins/platforms/wayland_common/qwaylandbuffer.h
+++ b/src/client/qwaylandbuffer.h
@@ -42,6 +42,8 @@
#ifndef QWAYLANDBUFFER_H
#define QWAYLANDBUFFER_H
+#include "qwaylandclientexport.h"
+
#include <QtCore/QSize>
#include <QtCore/QRect>
@@ -50,7 +52,7 @@
QT_BEGIN_NAMESPACE
-class QWaylandBuffer {
+class Q_WAYLAND_CLIENT_EXPORT QWaylandBuffer {
public:
QWaylandBuffer() { }
virtual ~QWaylandBuffer() { }
diff --git a/src/client/qwaylandclientexport.h b/src/client/qwaylandclientexport.h
new file mode 100644
index 00000000..d9d6d7f7
--- /dev/null
+++ b/src/client/qwaylandclientexport.h
@@ -0,0 +1,60 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** 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 Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/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 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QWAYLANDCLIENTEXPORT_H
+#define QWAYLANDCLIENTEXPORT_H
+
+#include <QtCore/qglobal.h>
+
+QT_BEGIN_NAMESPACE
+
+#if !defined(Q_WAYLAND_CLIENT_EXPORT)
+# if defined(QT_SHARED)
+# define Q_WAYLAND_CLIENT_EXPORT Q_DECL_EXPORT
+# else
+# define Q_WAYLAND_CLIENT_EXPORT
+# endif
+#endif
+
+QT_END_NAMESPACE
+
+#endif //QWAYLANDCLIENTEXPORT_H
+
diff --git a/src/plugins/platforms/wayland_common/qwaylandclipboard.cpp b/src/client/qwaylandclipboard.cpp
index 838f6d23..838f6d23 100644
--- a/src/plugins/platforms/wayland_common/qwaylandclipboard.cpp
+++ b/src/client/qwaylandclipboard.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandclipboard.h b/src/client/qwaylandclipboard.h
index f1b1800e..692a3125 100644
--- a/src/plugins/platforms/wayland_common/qwaylandclipboard.h
+++ b/src/client/qwaylandclipboard.h
@@ -45,11 +45,13 @@
#include <qpa/qplatformclipboard.h>
#include <QtCore/QVariant>
+#include <QtWaylandClient/qwaylandclientexport.h>
+
QT_BEGIN_NAMESPACE
class QWaylandDisplay;
-class QWaylandClipboard : public QPlatformClipboard
+class Q_WAYLAND_CLIENT_EXPORT QWaylandClipboard : public QPlatformClipboard
{
public:
QWaylandClipboard(QWaylandDisplay *display);
diff --git a/src/plugins/platforms/wayland_common/qwaylandcursor.cpp b/src/client/qwaylandcursor.cpp
index 05ab6d49..05ab6d49 100644
--- a/src/plugins/platforms/wayland_common/qwaylandcursor.cpp
+++ b/src/client/qwaylandcursor.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandcursor.h b/src/client/qwaylandcursor.h
index ceb6d748..894d322a 100644
--- a/src/plugins/platforms/wayland_common/qwaylandcursor.h
+++ b/src/client/qwaylandcursor.h
@@ -43,7 +43,8 @@
#define QWAYLANDCURSOR_H
#include <qpa/qplatformcursor.h>
-#include <QMap>
+#include <QtCore/QMap>
+#include <QtWaylandClient/qwaylandclientexport.h>
struct wl_cursor;
struct wl_cursor_image;
@@ -54,7 +55,7 @@ QT_BEGIN_NAMESPACE
class QWaylandDisplay;
class QWaylandScreen;
-class QWaylandCursor : public QPlatformCursor
+class Q_WAYLAND_CLIENT_EXPORT QWaylandCursor : public QPlatformCursor
{
public:
QWaylandCursor(QWaylandScreen *screen);
diff --git a/src/plugins/platforms/wayland_common/qwaylanddatadevice.cpp b/src/client/qwaylanddatadevice.cpp
index 2a70a338..2a70a338 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddatadevice.cpp
+++ b/src/client/qwaylanddatadevice.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylanddatadevice.h b/src/client/qwaylanddatadevice.h
index e258d877..e258d877 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddatadevice.h
+++ b/src/client/qwaylanddatadevice.h
diff --git a/src/plugins/platforms/wayland_common/qwaylanddatadevicemanager.cpp b/src/client/qwaylanddatadevicemanager.cpp
index 4a96dbce..4a96dbce 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddatadevicemanager.cpp
+++ b/src/client/qwaylanddatadevicemanager.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylanddatadevicemanager.h b/src/client/qwaylanddatadevicemanager.h
index b13e7332..6b3ad177 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddatadevicemanager.h
+++ b/src/client/qwaylanddatadevicemanager.h
@@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE
class QWaylandDataDevice;
class QWaylandDataSource;
-class QWaylandDataDeviceManager : public QtWayland::wl_data_device_manager
+class Q_WAYLAND_CLIENT_EXPORT QWaylandDataDeviceManager : public QtWayland::wl_data_device_manager
{
public:
QWaylandDataDeviceManager(QWaylandDisplay *display, uint32_t id);
diff --git a/src/plugins/platforms/wayland_common/qwaylanddataoffer.cpp b/src/client/qwaylanddataoffer.cpp
index e237d0b9..e237d0b9 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddataoffer.cpp
+++ b/src/client/qwaylanddataoffer.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylanddataoffer.h b/src/client/qwaylanddataoffer.h
index 4b2b832f..7dc3baa3 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddataoffer.h
+++ b/src/client/qwaylanddataoffer.h
@@ -51,7 +51,7 @@ QT_BEGIN_NAMESPACE
class QWaylandDisplay;
class QWaylandMimeData;
-class QWaylandDataOffer : public QtWayland::wl_data_offer
+class Q_WAYLAND_CLIENT_EXPORT QWaylandDataOffer : public QtWayland::wl_data_offer
{
public:
explicit QWaylandDataOffer(QWaylandDisplay *display, struct ::wl_data_offer *offer);
diff --git a/src/plugins/platforms/wayland_common/qwaylanddatasource.cpp b/src/client/qwaylanddatasource.cpp
index ba4b6811..ba4b6811 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddatasource.cpp
+++ b/src/client/qwaylanddatasource.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylanddatasource.h b/src/client/qwaylanddatasource.h
index 48c445be..670a8872 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddatasource.h
+++ b/src/client/qwaylanddatasource.h
@@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE
class QMimeData;
class QWaylandDataDeviceManager;
-class QWaylandDataSource : public QObject, public QtWayland::wl_data_source
+class Q_WAYLAND_CLIENT_EXPORT QWaylandDataSource : public QObject, public QtWayland::wl_data_source
{
Q_OBJECT
public:
diff --git a/src/plugins/platforms/wayland_common/qwaylanddecoration.cpp b/src/client/qwaylanddecoration.cpp
index 74c01f93..74c01f93 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddecoration.cpp
+++ b/src/client/qwaylanddecoration.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylanddecoration.h b/src/client/qwaylanddecoration.h
index 5efeab22..f9972358 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddecoration.h
+++ b/src/client/qwaylanddecoration.h
@@ -49,6 +49,7 @@
#include <QtGui/QColor>
#include <QtGui/QStaticText>
#include <QtGui/QImage>
+#include <QtWaylandClient/qwaylandclientexport.h>
#include <wayland-client.h>
@@ -64,7 +65,7 @@ class QWaylandScreen;
class QWaylandWindow;
class QWaylandInputDevice;
-class QWaylandDecoration
+class Q_WAYLAND_CLIENT_EXPORT QWaylandDecoration
{
public:
QWaylandDecoration(QWaylandWindow *window);
diff --git a/src/plugins/platforms/wayland_common/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp
index 3d83e594..d9a8b452 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddisplay.cpp
+++ b/src/client/qwaylanddisplay.cpp
@@ -61,7 +61,7 @@
#include "qwaylandtouch.h"
#include "qwaylandqtkey.h"
-#include "qwayland-text.h"
+#include <QtWaylandClient/private/qwayland-text.h>
#include <QtCore/QAbstractEventDispatcher>
#include <QtGui/private/qguiapplication_p.h>
@@ -135,7 +135,7 @@ QWaylandDisplay::QWaylandDisplay()
connect(mEventThreadObject, SIGNAL(newEventsRead()), this, SLOT(flushRequests()));
#ifdef QT_WAYLAND_GL_SUPPORT
- mEglIntegration = QWaylandGLIntegration::createGLIntegration(this);
+ //mEglIntegration = QWaylandGLIntegration::createGLIntegration(this);
#endif
mWindowManagerIntegration = new QWaylandWindowManagerIntegration(this);
diff --git a/src/plugins/platforms/wayland_common/qwaylanddisplay.h b/src/client/qwaylanddisplay.h
index be509dfd..45104350 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddisplay.h
+++ b/src/client/qwaylanddisplay.h
@@ -48,7 +48,9 @@
#include <QtCore/QWaitCondition>
#include <wayland-client.h>
-#include <qwayland-wayland.h>
+#include <QtWaylandClient/private/qwayland-wayland.h>
+
+#include <QtWaylandClient/qwaylandclientexport.h>
struct wl_cursor_image;
@@ -82,7 +84,7 @@ typedef void (*RegistryListener)(void *data,
const QString &interface,
uint32_t version);
-class QWaylandDisplay : public QObject, public QtWayland::wl_registry {
+class Q_WAYLAND_CLIENT_EXPORT QWaylandDisplay : public QObject, public QtWayland::wl_registry {
Q_OBJECT
public:
diff --git a/src/plugins/platforms/wayland_common/qwaylanddnd.cpp b/src/client/qwaylanddnd.cpp
index 635fd967..635fd967 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddnd.cpp
+++ b/src/client/qwaylanddnd.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylanddnd.h b/src/client/qwaylanddnd.h
index 409b3d54..f125dd2b 100644
--- a/src/plugins/platforms/wayland_common/qwaylanddnd.h
+++ b/src/client/qwaylanddnd.h
@@ -51,7 +51,7 @@
QT_BEGIN_NAMESPACE
-class QWaylandDrag : public QBasicDrag
+class Q_WAYLAND_CLIENT_EXPORT QWaylandDrag : public QBasicDrag
{
public:
QWaylandDrag(QWaylandDisplay *display);
diff --git a/src/plugins/platforms/wayland_common/qwaylandeventthread.cpp b/src/client/qwaylandeventthread.cpp
index 3392d36c..3392d36c 100644
--- a/src/plugins/platforms/wayland_common/qwaylandeventthread.cpp
+++ b/src/client/qwaylandeventthread.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandeventthread.h b/src/client/qwaylandeventthread.h
index f4aec744..ba7e33e0 100644
--- a/src/plugins/platforms/wayland_common/qwaylandeventthread.h
+++ b/src/client/qwaylandeventthread.h
@@ -5,11 +5,13 @@
#include <QMutex>
#include <wayland-client.h>
+#include <QtWaylandClient/qwaylandclientexport.h>
+
QT_BEGIN_NAMESPACE
class QSocketNotifier;
-class QWaylandEventThread : public QObject
+class Q_WAYLAND_CLIENT_EXPORT QWaylandEventThread : public QObject
{
Q_OBJECT
public:
diff --git a/src/plugins/platforms/wayland_common/qwaylandextendedoutput.cpp b/src/client/qwaylandextendedoutput.cpp
index d7c684be..d7c684be 100644
--- a/src/plugins/platforms/wayland_common/qwaylandextendedoutput.cpp
+++ b/src/client/qwaylandextendedoutput.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandextendedoutput.h b/src/client/qwaylandextendedoutput.h
index dd9ce6a8..e311a9b4 100644
--- a/src/plugins/platforms/wayland_common/qwaylandextendedoutput.h
+++ b/src/client/qwaylandextendedoutput.h
@@ -43,13 +43,13 @@
#define QWAYLANDEXTENDEDOUTPUT_H
#include "qwaylanddisplay.h"
-#include "qwayland-output-extension.h"
+#include <QtWaylandClient/private/qwayland-output-extension.h>
QT_BEGIN_NAMESPACE
class QWaylandExtendedOutput;
-class QWaylandExtendedOutput : public QtWayland::qt_extended_output
+class Q_WAYLAND_CLIENT_EXPORT QWaylandExtendedOutput : public QtWayland::qt_extended_output
{
public:
QWaylandExtendedOutput(QWaylandScreen *screen, struct ::qt_extended_output *extended_output);
diff --git a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp b/src/client/qwaylandextendedsurface.cpp
index bfd2a1d0..bfd2a1d0 100644
--- a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.cpp
+++ b/src/client/qwaylandextendedsurface.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.h b/src/client/qwaylandextendedsurface.h
index 4bef5e07..8c054647 100644
--- a/src/plugins/platforms/wayland_common/qwaylandextendedsurface.h
+++ b/src/client/qwaylandextendedsurface.h
@@ -45,15 +45,17 @@
#include <QtCore/QString>
#include <QtCore/QVariant>
+#include <QtWaylandClient/qwaylandclientexport.h>
+
#include <wayland-client.h>
-#include <qwayland-surface-extension.h>
+#include <QtWaylandClient/private/qwayland-surface-extension.h>
QT_BEGIN_NAMESPACE
class QWaylandDisplay;
class QWaylandWindow;
-class QWaylandExtendedSurface : public QtWayland::qt_extended_surface
+class Q_WAYLAND_CLIENT_EXPORT QWaylandExtendedSurface : public QtWayland::qt_extended_surface
{
public:
QWaylandExtendedSurface(QWaylandWindow *window, struct ::qt_extended_surface *extended_surface);
diff --git a/src/plugins/platforms/wayland_common/qwaylandglintegration.cpp b/src/client/qwaylandglintegration.cpp
index bafb9944..bafb9944 100644
--- a/src/plugins/platforms/wayland_common/qwaylandglintegration.cpp
+++ b/src/client/qwaylandglintegration.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandglintegration.h b/src/client/qwaylandglintegration.h
index 4055790b..7697d310 100644
--- a/src/plugins/platforms/wayland_common/qwaylandglintegration.h
+++ b/src/client/qwaylandglintegration.h
@@ -43,6 +43,7 @@
#define QWAYLANDGLINTEGRATION_H
#include <QtCore/qglobal.h>
+#include <QtWaylandClient/qwaylandclientexport.h>
QT_BEGIN_NAMESPACE
@@ -53,7 +54,7 @@ class QWindow;
class QPlatformOpenGLContext;
class QSurfaceFormat;
-class QWaylandGLIntegration
+class Q_WAYLAND_CLIENT_EXPORT QWaylandGLIntegration
{
public:
QWaylandGLIntegration();
diff --git a/src/plugins/platforms/wayland_common/qwaylandinputcontext.cpp b/src/client/qwaylandinputcontext.cpp
index f50581b3..f50581b3 100644
--- a/src/plugins/platforms/wayland_common/qwaylandinputcontext.cpp
+++ b/src/client/qwaylandinputcontext.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandinputcontext.h b/src/client/qwaylandinputcontext.h
index 43284eb9..1f7e4e36 100644
--- a/src/plugins/platforms/wayland_common/qwaylandinputcontext.h
+++ b/src/client/qwaylandinputcontext.h
@@ -43,7 +43,7 @@
#include <qpa/qplatforminputcontext.h>
-#include <qwayland-text.h>
+#include <QtWaylandClient/private/qwayland-text.h>
QT_BEGIN_NAMESPACE
diff --git a/src/plugins/platforms/wayland_common/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp
index b9338b4c..b9338b4c 100644
--- a/src/plugins/platforms/wayland_common/qwaylandinputdevice.cpp
+++ b/src/client/qwaylandinputdevice.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandinputdevice.h b/src/client/qwaylandinputdevice.h
index 15b0571d..625d773d 100644
--- a/src/plugins/platforms/wayland_common/qwaylandinputdevice.h
+++ b/src/client/qwaylandinputdevice.h
@@ -53,7 +53,7 @@
#include <wayland-client.h>
-#include "qwayland-wayland.h"
+#include <QtWaylandClient/private/qwayland-wayland.h>
#ifndef QT_NO_WAYLAND_XKB
struct xkb_context;
@@ -67,7 +67,12 @@ class QWaylandWindow;
class QWaylandDisplay;
class QWaylandDataDevice;
-class QWaylandInputDevice : public QObject, public QtWayland::wl_pointer, public QtWayland::wl_keyboard, public QtWayland::wl_touch, public QtWayland::wl_seat
+class Q_WAYLAND_CLIENT_EXPORT QWaylandInputDevice
+ : public QObject
+ , public QtWayland::wl_pointer
+ , public QtWayland::wl_keyboard
+ , public QtWayland::wl_touch
+ , public QtWayland::wl_seat
{
Q_OBJECT
public:
diff --git a/src/plugins/platforms/wayland_common/qwaylandintegration.cpp b/src/client/qwaylandintegration.cpp
index 9c02419b..9c02419b 100644
--- a/src/plugins/platforms/wayland_common/qwaylandintegration.cpp
+++ b/src/client/qwaylandintegration.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandintegration.h b/src/client/qwaylandintegration.h
index 9a6b7cd2..8886c28d 100644
--- a/src/plugins/platforms/wayland_common/qwaylandintegration.h
+++ b/src/client/qwaylandintegration.h
@@ -44,12 +44,13 @@
#include <qpa/qplatformintegration.h>
+#include <QtWaylandClient/qwaylandclientexport.h>
QT_BEGIN_NAMESPACE
class QWaylandBuffer;
class QWaylandDisplay;
-class QWaylandIntegration : public QPlatformIntegration
+class Q_WAYLAND_CLIENT_EXPORT QWaylandIntegration : public QPlatformIntegration
{
public:
QWaylandIntegration();
diff --git a/src/plugins/platforms/wayland_common/qwaylandnativeinterface.cpp b/src/client/qwaylandnativeinterface.cpp
index 354e8dba..354e8dba 100644
--- a/src/plugins/platforms/wayland_common/qwaylandnativeinterface.cpp
+++ b/src/client/qwaylandnativeinterface.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandnativeinterface.h b/src/client/qwaylandnativeinterface.h
index 5c1fe601..c5f0fda7 100644
--- a/src/plugins/platforms/wayland_common/qwaylandnativeinterface.h
+++ b/src/client/qwaylandnativeinterface.h
@@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE
class QWaylandIntegration;
-class QWaylandNativeInterface : public QPlatformNativeInterface
+class Q_WAYLAND_CLIENT_EXPORT QWaylandNativeInterface : public QPlatformNativeInterface
{
public:
QWaylandNativeInterface(QWaylandIntegration *integration);
diff --git a/src/plugins/platforms/wayland_common/qwaylandqtkey.cpp b/src/client/qwaylandqtkey.cpp
index 6cc4597d..6cc4597d 100644
--- a/src/plugins/platforms/wayland_common/qwaylandqtkey.cpp
+++ b/src/client/qwaylandqtkey.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandqtkey.h b/src/client/qwaylandqtkey.h
index c0283130..0acc9e8a 100644
--- a/src/plugins/platforms/wayland_common/qwaylandqtkey.h
+++ b/src/client/qwaylandqtkey.h
@@ -45,11 +45,11 @@
#include "qwaylanddisplay.h"
#include <qpa/qwindowsysteminterface.h>
-#include "qwayland-qtkey-extension.h"
+#include <QtWaylandClient/private/qwayland-qtkey-extension.h>
QT_BEGIN_NAMESPACE
-class QWaylandQtKeyExtension : public QtWayland::qt_key_extension
+class Q_WAYLAND_CLIENT_EXPORT QWaylandQtKeyExtension : public QtWayland::qt_key_extension
{
public:
QWaylandQtKeyExtension(QWaylandDisplay *display, uint32_t id);
diff --git a/src/plugins/platforms/wayland_common/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp
index cda94a7e..cda94a7e 100644
--- a/src/plugins/platforms/wayland_common/qwaylandscreen.cpp
+++ b/src/client/qwaylandscreen.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandscreen.h b/src/client/qwaylandscreen.h
index 039d3f50..15ae5189 100644
--- a/src/plugins/platforms/wayland_common/qwaylandscreen.h
+++ b/src/client/qwaylandscreen.h
@@ -43,8 +43,9 @@
#define QWAYLANDSCREEN_H
#include <qpa/qplatformscreen.h>
+#include <QtWaylandClient/qwaylandclientexport.h>
-#include <qwayland-wayland.h>
+#include <QtWaylandClient/private/qwayland-wayland.h>
QT_BEGIN_NAMESPACE
@@ -52,7 +53,7 @@ class QWaylandDisplay;
class QWaylandCursor;
class QWaylandExtendedOutput;
-class QWaylandScreen : public QPlatformScreen, QtWayland::wl_output
+class Q_WAYLAND_CLIENT_EXPORT QWaylandScreen : public QPlatformScreen, QtWayland::wl_output
{
public:
QWaylandScreen(QWaylandDisplay *waylandDisplay, uint32_t id);
diff --git a/src/plugins/platforms/wayland_common/qwaylandshellsurface.cpp b/src/client/qwaylandshellsurface.cpp
index 4c8ff1bc..4c8ff1bc 100644
--- a/src/plugins/platforms/wayland_common/qwaylandshellsurface.cpp
+++ b/src/client/qwaylandshellsurface.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandshellsurface.h b/src/client/qwaylandshellsurface.h
index 172a0f96..25f70333 100644
--- a/src/plugins/platforms/wayland_common/qwaylandshellsurface.h
+++ b/src/client/qwaylandshellsurface.h
@@ -46,7 +46,8 @@
#include <wayland-client.h>
-#include "qwayland-wayland.h"
+#include <QtWaylandClient/private/qwayland-wayland.h>
+#include <QtWaylandClient/qwaylandclientexport.h>
QT_BEGIN_NAMESPACE
@@ -54,7 +55,7 @@ class QWaylandWindow;
class QWaylandInputDevice;
class QWindow;
-class QWaylandShellSurface : public QtWayland::wl_shell_surface
+class Q_WAYLAND_CLIENT_EXPORT QWaylandShellSurface : public QtWayland::wl_shell_surface
{
public:
QWaylandShellSurface(struct ::wl_shell_surface *shell_surface, QWaylandWindow *window);
diff --git a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp b/src/client/qwaylandshmbackingstore.cpp
index 00a4b13a..00a4b13a 100644
--- a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp
+++ b/src/client/qwaylandshmbackingstore.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.h b/src/client/qwaylandshmbackingstore.h
index 60117342..c7875f52 100644
--- a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.h
+++ b/src/client/qwaylandshmbackingstore.h
@@ -55,7 +55,7 @@ QT_BEGIN_NAMESPACE
class QWaylandDisplay;
-class QWaylandShmBuffer : public QWaylandBuffer {
+class Q_WAYLAND_CLIENT_EXPORT QWaylandShmBuffer : public QWaylandBuffer {
public:
QWaylandShmBuffer(QWaylandDisplay *display,
const QSize &size, QImage::Format format);
@@ -71,7 +71,7 @@ private:
QImage *mMarginsImage;
};
-class QWaylandShmBackingStore : public QPlatformBackingStore
+class Q_WAYLAND_CLIENT_EXPORT QWaylandShmBackingStore : public QPlatformBackingStore
{
public:
QWaylandShmBackingStore(QWindow *window);
diff --git a/src/plugins/platforms/wayland_common/qwaylandshmwindow.cpp b/src/client/qwaylandshmwindow.cpp
index 48a1bfd5..48a1bfd5 100644
--- a/src/plugins/platforms/wayland_common/qwaylandshmwindow.cpp
+++ b/src/client/qwaylandshmwindow.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandshmwindow.h b/src/client/qwaylandshmwindow.h
index ffd11c94..e443bb18 100644
--- a/src/plugins/platforms/wayland_common/qwaylandshmwindow.h
+++ b/src/client/qwaylandshmwindow.h
@@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE
class QWaylandShmBackingStore;
-class QWaylandShmWindow : public QWaylandWindow
+class Q_WAYLAND_CLIENT_EXPORT QWaylandShmWindow : public QWaylandWindow
{
public:
QWaylandShmWindow(QWindow *window);
diff --git a/src/plugins/platforms/wayland_common/qwaylandsubsurface.cpp b/src/client/qwaylandsubsurface.cpp
index 0e9d575a..0e9d575a 100644
--- a/src/plugins/platforms/wayland_common/qwaylandsubsurface.cpp
+++ b/src/client/qwaylandsubsurface.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandsubsurface.h b/src/client/qwaylandsubsurface.h
index 10290d8c..97158b6a 100644
--- a/src/plugins/platforms/wayland_common/qwaylandsubsurface.h
+++ b/src/client/qwaylandsubsurface.h
@@ -46,7 +46,9 @@
#include <QtCore/qglobal.h>
-#include <qwayland-sub-surface-extension.h>
+#include <QtWaylandClient/qwaylandclientexport.h>
+
+#include <QtWaylandClient/private/qwayland-sub-surface-extension.h>
QT_BEGIN_NAMESPACE
@@ -54,7 +56,7 @@ class QWaylandDisplay;
class QWaylandWindow;
class QWaylandSubSurface;
-class QWaylandSubSurface : public QtWayland::qt_sub_surface
+class Q_WAYLAND_CLIENT_EXPORT QWaylandSubSurface : public QtWayland::qt_sub_surface
{
public:
QWaylandSubSurface(QWaylandWindow *window, struct ::qt_sub_surface *sub_surface);
diff --git a/src/plugins/platforms/wayland_common/qwaylandtouch.cpp b/src/client/qwaylandtouch.cpp
index 5835d9d3..5835d9d3 100644
--- a/src/plugins/platforms/wayland_common/qwaylandtouch.cpp
+++ b/src/client/qwaylandtouch.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandtouch.h b/src/client/qwaylandtouch.h
index 3762209d..0d14330e 100644
--- a/src/plugins/platforms/wayland_common/qwaylandtouch.h
+++ b/src/client/qwaylandtouch.h
@@ -45,11 +45,11 @@
#include "qwaylanddisplay.h"
#include <qpa/qwindowsysteminterface.h>
-#include <qwayland-touch-extension.h>
+#include <QtWaylandClient/private/qwayland-touch-extension.h>
QT_BEGIN_NAMESPACE
-class QWaylandTouchExtension : public QtWayland::qt_touch_extension
+class Q_WAYLAND_CLIENT_EXPORT QWaylandTouchExtension : public QtWayland::qt_touch_extension
{
public:
QWaylandTouchExtension(QWaylandDisplay *display, uint32_t id);
diff --git a/src/plugins/platforms/wayland_common/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index b64d3e6a..b64d3e6a 100644
--- a/src/plugins/platforms/wayland_common/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandwindow.h b/src/client/qwaylandwindow.h
index e6d15c6c..c4d39180 100644
--- a/src/plugins/platforms/wayland_common/qwaylandwindow.h
+++ b/src/client/qwaylandwindow.h
@@ -50,7 +50,7 @@
#include "qwaylanddisplay.h"
-#include "qwayland-wayland.h"
+#include <QtWaylandClient/private/qwayland-wayland.h>
struct wl_egl_window;
@@ -63,7 +63,7 @@ class QWaylandExtendedSurface;
class QWaylandSubSurface;
class QWaylandDecoration;
-class QWaylandWindowConfigure
+class Q_WAYLAND_CLIENT_EXPORT QWaylandWindowConfigure
{
public:
QWaylandWindowConfigure()
@@ -83,7 +83,7 @@ public:
uint32_t edges;
};
-class QWaylandWindow : public QObject, public QPlatformWindow, public QtWayland::wl_surface
+class Q_WAYLAND_CLIENT_EXPORT QWaylandWindow : public QObject, public QPlatformWindow, public QtWayland::wl_surface
{
Q_OBJECT
public:
diff --git a/src/plugins/platforms/wayland_common/qwaylandwindowmanagerintegration.cpp b/src/client/qwaylandwindowmanagerintegration.cpp
index 7543ba13..7543ba13 100644
--- a/src/plugins/platforms/wayland_common/qwaylandwindowmanagerintegration.cpp
+++ b/src/client/qwaylandwindowmanagerintegration.cpp
diff --git a/src/plugins/platforms/wayland_common/qwaylandwindowmanagerintegration.h b/src/client/qwaylandwindowmanagerintegration.h
index 4524ce12..4506f06a 100644
--- a/src/plugins/platforms/wayland_common/qwaylandwindowmanagerintegration.h
+++ b/src/client/qwaylandwindowmanagerintegration.h
@@ -49,15 +49,14 @@
#include "qwaylanddisplay.h"
#include <qpa/qplatformservices.h>
-#include "qwayland-windowmanager.h"
+#include "QtWaylandClient/private/qwayland-windowmanager.h"
QT_BEGIN_NAMESPACE
class QWaylandWindow;
-
class QWaylandWindowManagerIntegrationPrivate;
-class QWaylandWindowManagerIntegration : public QObject, public QPlatformServices, public QtWayland::qt_windowmanager
+class Q_WAYLAND_CLIENT_EXPORT QWaylandWindowManagerIntegration : public QObject, public QPlatformServices, public QtWayland::qt_windowmanager
{
Q_OBJECT
Q_DECLARE_PRIVATE(QWaylandWindowManagerIntegration)
diff --git a/src/compositor/compositor.pro b/src/compositor/compositor.pro
index 67f34c89..74c955dd 100644
--- a/src/compositor/compositor.pro
+++ b/src/compositor/compositor.pro
@@ -18,7 +18,6 @@ DEFINES += QT_WAYLAND_WINDOWMANAGER_SUPPORT
INCLUDEPATH += ../shared
HEADERS += ../shared/qwaylandmimehelper.h
SOURCES += ../shared/qwaylandmimehelper.cpp
-HEADERS += qwayland-server-wayland.h
include ($$PWD/global/global.pri)
include ($$PWD/wayland_wrapper/wayland_wrapper.pri)
diff --git a/src/compositor/wayland_wrapper/qwldatadevice_p.h b/src/compositor/wayland_wrapper/qwldatadevice_p.h
index cb0b1721..fb4bbcdb 100644
--- a/src/compositor/wayland_wrapper/qwldatadevice_p.h
+++ b/src/compositor/wayland_wrapper/qwldatadevice_p.h
@@ -41,7 +41,7 @@
#ifndef WLDATADEVICE_H
#define WLDATADEVICE_H
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
#include <qwlpointer_p.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwldatadevicemanager_p.h b/src/compositor/wayland_wrapper/qwldatadevicemanager_p.h
index dcb51e16..e21a9567 100644
--- a/src/compositor/wayland_wrapper/qwldatadevicemanager_p.h
+++ b/src/compositor/wayland_wrapper/qwldatadevicemanager_p.h
@@ -48,7 +48,7 @@
#include <QtGui/QClipboard>
#include <QtCore/QMimeData>
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwldataoffer_p.h b/src/compositor/wayland_wrapper/qwldataoffer_p.h
index d2965857..5911819d 100644
--- a/src/compositor/wayland_wrapper/qwldataoffer_p.h
+++ b/src/compositor/wayland_wrapper/qwldataoffer_p.h
@@ -41,7 +41,7 @@
#ifndef WLDATAOFFER_H
#define WLDATAOFFER_H
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwldatasource_p.h b/src/compositor/wayland_wrapper/qwldatasource_p.h
index 35eda8cf..01ac4cbd 100644
--- a/src/compositor/wayland_wrapper/qwldatasource_p.h
+++ b/src/compositor/wayland_wrapper/qwldatasource_p.h
@@ -41,7 +41,7 @@
#ifndef WLDATASOURCE_H
#define WLDATASOURCE_H
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
#include <QtCore/QList>
diff --git a/src/compositor/wayland_wrapper/qwldisplay.cpp b/src/compositor/wayland_wrapper/qwldisplay.cpp
index 5dd6e382..affb0d17 100644
--- a/src/compositor/wayland_wrapper/qwldisplay.cpp
+++ b/src/compositor/wayland_wrapper/qwldisplay.cpp
@@ -42,7 +42,7 @@
#include <QtCore/QDebug>
-#include <wayland-wayland-server-protocol.h>
+#include <QtCompositor/private/wayland-wayland-server-protocol.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlextendedoutput_p.h b/src/compositor/wayland_wrapper/qwlextendedoutput_p.h
index d1704b8c..f3625ed4 100644
--- a/src/compositor/wayland_wrapper/qwlextendedoutput_p.h
+++ b/src/compositor/wayland_wrapper/qwlextendedoutput_p.h
@@ -47,7 +47,7 @@
#include <QtCore/qnamespace.h>
-#include <qwayland-server-output-extension.h>
+#include <QtCompositor/private/qwayland-server-output-extension.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlextendedsurface_p.h b/src/compositor/wayland_wrapper/qwlextendedsurface_p.h
index ecf2f49d..3b572108 100644
--- a/src/compositor/wayland_wrapper/qwlextendedsurface_p.h
+++ b/src/compositor/wayland_wrapper/qwlextendedsurface_p.h
@@ -43,7 +43,7 @@
#include <wayland-server.h>
-#include "qwayland-server-surface-extension.h"
+#include <QtCompositor/private/qwayland-server-surface-extension.h>
#include <private/qwlsurface_p.h>
#include <QtCompositor/qwaylandsurface.h>
diff --git a/src/compositor/wayland_wrapper/qwlinputdevice_p.h b/src/compositor/wayland_wrapper/qwlinputdevice_p.h
index 8c5b411a..01f68c3f 100644
--- a/src/compositor/wayland_wrapper/qwlinputdevice_p.h
+++ b/src/compositor/wayland_wrapper/qwlinputdevice_p.h
@@ -53,7 +53,7 @@
#include <xkbcommon/xkbcommon.h>
#endif
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlinputmethod_p.h b/src/compositor/wayland_wrapper/qwlinputmethod_p.h
index 58830d1c..2cfa14b9 100644
--- a/src/compositor/wayland_wrapper/qwlinputmethod_p.h
+++ b/src/compositor/wayland_wrapper/qwlinputmethod_p.h
@@ -41,7 +41,7 @@
#ifndef QTWAYLAND_QWLINPUTMETHOD_H
#define QTWAYLAND_QWLINPUTMETHOD_H
-#include <qwayland-server-input-method.h>
+#include <QtCompositor/private/qwayland-server-input-method.h>
#include <QObject>
#include <QScopedPointer>
diff --git a/src/compositor/wayland_wrapper/qwlinputmethodcontext_p.h b/src/compositor/wayland_wrapper/qwlinputmethodcontext_p.h
index 9ceb8bf8..5060d4d6 100644
--- a/src/compositor/wayland_wrapper/qwlinputmethodcontext_p.h
+++ b/src/compositor/wayland_wrapper/qwlinputmethodcontext_p.h
@@ -41,7 +41,7 @@
#ifndef QTWAYLAND_QWLINPUTMETHODCONTEXT_P_H
#define QTWAYLAND_QWLINPUTMETHODCONTEXT_P_H
-#include <qwayland-server-input-method.h>
+#include <QtCompositor/private/qwayland-server-input-method.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlinputpanel_p.h b/src/compositor/wayland_wrapper/qwlinputpanel_p.h
index 87a8c6a5..75d795e4 100644
--- a/src/compositor/wayland_wrapper/qwlinputpanel_p.h
+++ b/src/compositor/wayland_wrapper/qwlinputpanel_p.h
@@ -43,7 +43,7 @@
#include <QtCompositor/qwaylandexport.h>
-#include <qwayland-server-input-method.h>
+#include <QtCompositor/private/qwayland-server-input-method.h>
#include <QRect>
#include <QScopedPointer>
diff --git a/src/compositor/wayland_wrapper/qwlinputpanelsurface_p.h b/src/compositor/wayland_wrapper/qwlinputpanelsurface_p.h
index f9d4dfee..89c85895 100644
--- a/src/compositor/wayland_wrapper/qwlinputpanelsurface_p.h
+++ b/src/compositor/wayland_wrapper/qwlinputpanelsurface_p.h
@@ -41,7 +41,7 @@
#ifndef QTWAYLAND_QWLINPUTPANELSURFACE_P_H
#define QTWAYLAND_QWLINPUTPANELSURFACE_P_H
-#include <qwayland-server-input-method.h>
+#include <QtCompositor/private/qwayland-server-input-method.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlkeyboard_p.h b/src/compositor/wayland_wrapper/qwlkeyboard_p.h
index a350a746..4d783f77 100644
--- a/src/compositor/wayland_wrapper/qwlkeyboard_p.h
+++ b/src/compositor/wayland_wrapper/qwlkeyboard_p.h
@@ -45,7 +45,7 @@
#include <QtCompositor/qwaylandexport.h>
#include <QObject>
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
#include <QtCore/QByteArray>
diff --git a/src/compositor/wayland_wrapper/qwloutput_p.h b/src/compositor/wayland_wrapper/qwloutput_p.h
index 514d3e9f..738a73fc 100644
--- a/src/compositor/wayland_wrapper/qwloutput_p.h
+++ b/src/compositor/wayland_wrapper/qwloutput_p.h
@@ -44,7 +44,7 @@
#include <QtCore/QRect>
#include <QtCore/QList>
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlpointer_p.h b/src/compositor/wayland_wrapper/qwlpointer_p.h
index 3200e102..ed53b048 100644
--- a/src/compositor/wayland_wrapper/qwlpointer_p.h
+++ b/src/compositor/wayland_wrapper/qwlpointer_p.h
@@ -47,7 +47,7 @@
#include <QtCore/QList>
#include <QtCore/QPoint>
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
#include <stdint.h>
diff --git a/src/compositor/wayland_wrapper/qwlqtkey_p.h b/src/compositor/wayland_wrapper/qwlqtkey_p.h
index 012ef388..6257e0a9 100644
--- a/src/compositor/wayland_wrapper/qwlqtkey_p.h
+++ b/src/compositor/wayland_wrapper/qwlqtkey_p.h
@@ -45,7 +45,7 @@
#include "wayland-util.h"
-#include "qwayland-server-qtkey-extension.h"
+#include <QtCompositor/private/qwayland-server-qtkey-extension.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlqttouch_p.h b/src/compositor/wayland_wrapper/qwlqttouch_p.h
index 2610936a..f2729c99 100644
--- a/src/compositor/wayland_wrapper/qwlqttouch_p.h
+++ b/src/compositor/wayland_wrapper/qwlqttouch_p.h
@@ -42,7 +42,7 @@
#define WLTOUCH_H
#include <private/qwlcompositor_p.h>
-#include "qwayland-server-touch-extension.h"
+#include <QtCompositor/private/qwayland-server-touch-extension.h>
#include "wayland-util.h"
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlregion_p.h b/src/compositor/wayland_wrapper/qwlregion_p.h
index f905d96b..06d21ff3 100644
--- a/src/compositor/wayland_wrapper/qwlregion_p.h
+++ b/src/compositor/wayland_wrapper/qwlregion_p.h
@@ -46,7 +46,7 @@
#include <QRegion>
#include <wayland-util.h>
-#include "qwayland-server-wayland.h"
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlshellsurface_p.h b/src/compositor/wayland_wrapper/qwlshellsurface_p.h
index 91042934..18ecdabb 100644
--- a/src/compositor/wayland_wrapper/qwlshellsurface_p.h
+++ b/src/compositor/wayland_wrapper/qwlshellsurface_p.h
@@ -50,7 +50,7 @@
#include <QSet>
#include <private/qwlpointer_p.h>
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwlsubsurface_p.h b/src/compositor/wayland_wrapper/qwlsubsurface_p.h
index 6f6ad120..938c2be3 100644
--- a/src/compositor/wayland_wrapper/qwlsubsurface_p.h
+++ b/src/compositor/wayland_wrapper/qwlsubsurface_p.h
@@ -43,7 +43,7 @@
#include <private/qwlsurface_p.h>
-#include "wayland-sub-surface-extension-server-protocol.h"
+#include <QtCompositor/private/wayland-sub-surface-extension-server-protocol.h>
#include <QtCore/QLinkedList>
diff --git a/src/compositor/wayland_wrapper/qwlsurface_p.h b/src/compositor/wayland_wrapper/qwlsurface_p.h
index 9741a216..101d8938 100644
--- a/src/compositor/wayland_wrapper/qwlsurface_p.h
+++ b/src/compositor/wayland_wrapper/qwlsurface_p.h
@@ -59,7 +59,7 @@
#include <wayland-util.h>
-#include "qwayland-server-wayland.h"
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwltextinput_p.h b/src/compositor/wayland_wrapper/qwltextinput_p.h
index c624387a..7bfe6b88 100644
--- a/src/compositor/wayland_wrapper/qwltextinput_p.h
+++ b/src/compositor/wayland_wrapper/qwltextinput_p.h
@@ -41,7 +41,7 @@
#ifndef QTWAYLAND_QWLTEXTINPUT_P_H
#define QTWAYLAND_QWLTEXTINPUT_P_H
-#include <qwayland-server-text.h>
+#include <QtCompositor/private/qwayland-server-text.h>
#include <QRect>
diff --git a/src/compositor/wayland_wrapper/qwltextinputmanager_p.h b/src/compositor/wayland_wrapper/qwltextinputmanager_p.h
index 081fdfa9..2d9be14d 100644
--- a/src/compositor/wayland_wrapper/qwltextinputmanager_p.h
+++ b/src/compositor/wayland_wrapper/qwltextinputmanager_p.h
@@ -41,7 +41,7 @@
#ifndef QTWAYLAND_QWLTEXTINPUTMANAGER_P_H
#define QTWAYLAND_QWLTEXTINPUTMANAGER_P_H
-#include <qwayland-server-text.h>
+#include <QtCompositor/private/qwayland-server-text.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/wayland_wrapper/qwltouch_p.h b/src/compositor/wayland_wrapper/qwltouch_p.h
index d967b714..69560980 100644
--- a/src/compositor/wayland_wrapper/qwltouch_p.h
+++ b/src/compositor/wayland_wrapper/qwltouch_p.h
@@ -46,7 +46,7 @@
#include <QtCore/QPoint>
-#include <qwayland-server-wayland.h>
+#include <QtCompositor/private/qwayland-server-wayland.h>
QT_BEGIN_NAMESPACE
diff --git a/src/compositor/windowmanagerprotocol/waylandwindowmanagerintegration.h b/src/compositor/windowmanagerprotocol/waylandwindowmanagerintegration.h
index ccf5d4e8..4b2a753e 100644
--- a/src/compositor/windowmanagerprotocol/waylandwindowmanagerintegration.h
+++ b/src/compositor/windowmanagerprotocol/waylandwindowmanagerintegration.h
@@ -42,7 +42,7 @@
#define WAYLANDWINDOWMANAGERINTEGRATION_H
#include <QtCompositor/qwaylandexport.h>
-#include "qwayland-server-windowmanager.h"
+#include <QtCompositor/private/qwayland-server-windowmanager.h>
#include <QObject>
#include <QMap>
diff --git a/src/plugins/platforms/platforms.pro b/src/plugins/platforms/platforms.pro
index 16760290..ab8c9347 100644
--- a/src/plugins/platforms/platforms.pro
+++ b/src/plugins/platforms/platforms.pro
@@ -1,6 +1,5 @@
TEMPLATE=subdirs
CONFIG+=ordered
-SUBDIRS += wayland_common
equals(QT_WAYLAND_GL_CONFIG, nogl) {
SUBDIRS += qwayland-nogl
@@ -9,17 +8,4 @@ equals(QT_WAYLAND_GL_CONFIG, nogl) {
SUBDIRS += qwayland-egl
}
- #The following integrations are only useful with QtCompositor
- contains(CONFIG, wayland-compositor) {
- config_brcm_egl {
- SUBDIRS += qwayland-brcm-egl
- }
- config_xcomposite {
- config_egl {
- SUBDIRS += qwayland-xcomposite-egl
- } else:config_glx {
- SUBDIRS += qwayland-xcomposite-glx
- }
- }
- }
}
diff --git a/src/plugins/platforms/qwayland-egl/qwayland-egl.pro b/src/plugins/platforms/qwayland-egl/qwayland-egl.pro
index 339f9461..7f8c7f3a 100644
--- a/src/plugins/platforms/qwayland-egl/qwayland-egl.pro
+++ b/src/plugins/platforms/qwayland-egl/qwayland-egl.pro
@@ -1,11 +1,12 @@
PLUGIN_TYPE = platforms
load(qt_plugin)
-include(../wayland_common/wayland_common.pri)
+QT += waylandclient-private
OTHER_FILES += \
qwayland-egl.json
+DEFINES += QT_WAYLAND_GL_SUPPORT
!contains(QT_CONFIG, no-pkg-config) {
CONFIG += link_pkgconfig
PKGCONFIG += wayland-egl egl
diff --git a/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.cpp b/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.cpp
index 5a44779e..fd9c5585 100644
--- a/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.cpp
+++ b/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.cpp
@@ -41,7 +41,7 @@
#include "qwaylandeglintegration.h"
-#include "qwaylandglintegration.h"
+#include <QtWaylandClient/qwaylandglintegration.h>
#include "qwaylandeglwindow.h"
#include "qwaylandglcontext.h"
diff --git a/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.h b/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.h
index a280493b..b26c43fe 100644
--- a/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.h
+++ b/src/plugins/platforms/qwayland-egl/qwaylandeglintegration.h
@@ -42,7 +42,7 @@
#ifndef QWAYLANDEGLINTEGRATION_H
#define QWAYLANDEGLINTEGRATION_H
-#include "qwaylandglintegration.h"
+#include <QtWaylandClient/qwaylandglintegration.h>
#include "qwaylandeglinclude.h"
diff --git a/src/plugins/platforms/qwayland-egl/qwaylandeglwindow.h b/src/plugins/platforms/qwayland-egl/qwaylandeglwindow.h
index f973547a..b20e2ad0 100644
--- a/src/plugins/platforms/qwayland-egl/qwaylandeglwindow.h
+++ b/src/plugins/platforms/qwayland-egl/qwaylandeglwindow.h
@@ -42,7 +42,7 @@
#ifndef QWAYLANDEGLWINDOW_H
#define QWAYLANDEGLWINDOW_H
-#include "qwaylandwindow.h"
+#include <QtWaylandClient/qwaylandwindow.h>
#include "qwaylandeglinclude.h"
#include "qwaylandeglintegration.h"
diff --git a/src/plugins/platforms/qwayland-egl/qwaylandglcontext.h b/src/plugins/platforms/qwayland-egl/qwaylandglcontext.h
index a0750bd8..1da84955 100644
--- a/src/plugins/platforms/qwayland-egl/qwaylandglcontext.h
+++ b/src/plugins/platforms/qwayland-egl/qwaylandglcontext.h
@@ -42,7 +42,7 @@
#ifndef QWAYLANDGLCONTEXT_H
#define QWAYLANDGLCONTEXT_H
-#include "qwaylanddisplay.h"
+#include <QtWaylandClient/qwaylanddisplay.h>
#include <qpa/qplatformopenglcontext.h>
#include <QtGui/QOpenGLFunctions>
diff --git a/src/plugins/platforms/wayland_common/wayland_common.pri b/src/plugins/platforms/wayland_common/wayland_common.pri
deleted file mode 100644
index cc956a72..00000000
--- a/src/plugins/platforms/wayland_common/wayland_common.pri
+++ /dev/null
@@ -1,10 +0,0 @@
-#This file(wayland_common.pri) is included from .pro files of GL integrations.
-
-include ($$PWD/wayland_common_share.pri)
-
-INCLUDEPATH += $$PWD
-
-staticlib = $$shadowed($$PWD)/$${QMAKE_PREFIX_STATICLIB}wayland_common.$${QMAKE_EXTENSION_STATICLIB}
-LIBS += $$staticlib
-PRE_TARGETDEPS += $$staticlib
-
diff --git a/src/plugins/platforms/wayland_common/wayland_common_share.pri b/src/plugins/platforms/wayland_common/wayland_common_share.pri
deleted file mode 100644
index a2e72715..00000000
--- a/src/plugins/platforms/wayland_common/wayland_common_share.pri
+++ /dev/null
@@ -1,28 +0,0 @@
-QT += core-private gui-private platformsupport-private
-CONFIG += link_pkgconfig qpa/genericunixfontdatabase
-
-!equals(QT_WAYLAND_GL_CONFIG, nogl) {
- DEFINES += QT_WAYLAND_GL_SUPPORT
-}
-
-config_xkbcommon {
- !contains(QT_CONFIG, no-pkg-config) {
- PKGCONFIG += xkbcommon
- } else {
- LIBS += -lxkbcommon
- }
-} else {
- DEFINES += QT_NO_WAYLAND_XKB
-}
-
-!contains(QT_CONFIG, no-pkg-config) {
- PKGCONFIG += wayland-client wayland-cursor
- contains(QT_CONFIG, glib): PKGCONFIG_PRIVATE += glib-2.0
-} else {
- LIBS += -lwayland-client -lwayland-cursor $$QT_LIBS_GLIB
-}
-
-INCLUDEPATH += $$PWD/../../../shared
-
-CONFIG += wayland-scanner
-WAYLANDCLIENTSOURCES += ../../../3rdparty/protocol/wayland.xml
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index 9613979b..7325e57f 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -1,6 +1,7 @@
TEMPLATE=subdirs
SUBDIRS += platforms
+
#The compositor plugins are only useful with QtCompositor
contains(CONFIG, wayland-compositor) {
SUBDIRS += waylandcompositors
diff --git a/src/src.pro b/src/src.pro
index ac4e62aa..274cc01c 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -8,4 +8,4 @@ contains(CONFIG, wayland-compositor) {
SUBDIRS += compositor
}
-SUBDIRS += plugins
+SUBDIRS += client plugins
diff --git a/sync.profile b/sync.profile
index e8c62c4d..5bff7535 100644
--- a/sync.profile
+++ b/sync.profile
@@ -1,5 +1,6 @@
%modules = ( # path to module name map
"QtCompositor" => "$basedir/src/compositor",
+ "QtWaylandClient" => "$basedir/src/client",
);
%moduleheaders = ( # restrict the module headers to those found in relative path
);