Commit 14510ffa authored by Florent Revest's avatar Florent Revest

Update lipstick, qtbase and qtwayland to Qt5.5

parent cc6970e0
From e9700fddec7f2697042d94b71cf4c7a919ab0217 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Tue, 14 Jul 2015 17:31:11 +0200
Subject: [PATCH] Disables tests and doc and fixes build
---
lipstick.pro | 4 ++--
src/lipstickglobal.h | 2 ++
src/src.pro | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/lipstick.pro b/lipstick.pro
index 78ee362..ca79711 100644
--- a/lipstick.pro
+++ b/lipstick.pro
@@ -1,9 +1,9 @@
TEMPLATE = subdirs
-SUBDIRS += src plugin tools tests doc
+SUBDIRS += src plugin
plugin.depends = src
tools.depends = src
-tests.depends = src
+
QMAKE_CLEAN += \
build-stamp \
diff --git a/src/lipstickglobal.h b/src/lipstickglobal.h
index 01ffed0..be236bf 100644
--- a/src/lipstickglobal.h
+++ b/src/lipstickglobal.h
@@ -18,6 +18,8 @@
#define LIPSTICKGLOBAL_H
#include <QtGlobal>
+#include <QDebug>
+#include <QGuiApplication>
#if defined(LIPSTICK_BUILD_LIBRARY)
#define LIPSTICK_EXPORT Q_DECL_EXPORT
diff --git a/src/src.pro b/src/src.pro
index f3affe8..9f95a75 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -115,7 +115,7 @@ SOURCES += \
CONFIG += link_pkgconfig mobility qt warn_on depend_includepath qmake_cache target_qt
CONFIG -= link_prl
-PKGCONFIG += mlite5 mce dbus-1 dbus-glib-1 libresourceqt5 ngf-qt5 qmsystem2-qt5 Qt5SystemInfo libsystemd-daemon
+PKGCONFIG += mlite5 mce dbus-1 dbus-glib-1 libresourceqt5 ngf-qt5 qmsystem2-qt5 Qt5SystemInfo libsystemd
LIBS += -lrt
--
2.1.4
From 18eaa2b8d842da04a62aff779dd4ff44cd3601dc Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Sat, 16 Jan 2016 17:06:23 +0100
Subject: [PATCH] Disables tests, tools and doc and fixes build
---
lipstick.pro | 2 +-
src/compositor/hwcrenderstage.h | 3 ++-
src/compositor/lipstickcompositor.cpp | 10 +++++-----
src/compositor/lipstickcompositor.h | 3 ++-
src/compositor/lipstickcompositorwindow.cpp | 2 +-
src/compositor/windowmodel.cpp | 2 +-
src/notifications/lipsticknotification.cpp | 1 +
src/src.pro | 2 +-
8 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/lipstick.pro b/lipstick.pro
index 78ee362..28f0721 100644
--- a/lipstick.pro
+++ b/lipstick.pro
@@ -1,5 +1,5 @@
TEMPLATE = subdirs
-SUBDIRS += src plugin tools tests doc
+SUBDIRS += src plugin
plugin.depends = src
tools.depends = src
diff --git a/src/compositor/hwcrenderstage.h b/src/compositor/hwcrenderstage.h
index e535f81..cbd1f09 100644
--- a/src/compositor/hwcrenderstage.h
+++ b/src/compositor/hwcrenderstage.h
@@ -17,6 +17,7 @@
#define HWCRENDERSTAGE
#include <private/qquickwindow_p.h>
+#include <private/qsgrenderer_p.h>
Q_DECLARE_LOGGING_CATEGORY(LIPSTICK_LOG_HWC)
@@ -130,4 +131,4 @@ private:
static bool m_hwcEnabled;
};
-#endif // HWCRENDERSTAGE
\ No newline at end of file
+#endif // HWCRENDERSTAGE
diff --git a/src/compositor/lipstickcompositor.cpp b/src/compositor/lipstickcompositor.cpp
index bf2f0e9..d750e6e 100644
--- a/src/compositor/lipstickcompositor.cpp
+++ b/src/compositor/lipstickcompositor.cpp
@@ -41,8 +41,7 @@
LipstickCompositor *LipstickCompositor::m_instance = 0;
LipstickCompositor::LipstickCompositor()
- : QWaylandQuickCompositor(this, 0, (QWaylandCompositor::ExtensionFlags)QWaylandCompositor::DefaultExtensions & ~QWaylandCompositor::QtKeyExtension)
- , m_totalWindowCount(0)
+ : m_totalWindowCount(0)
, m_nextWindowId(1)
, m_homeActive(true)
, m_shaderEffect(0)
@@ -64,6 +63,7 @@ LipstickCompositor::LipstickCompositor()
{
setColor(Qt::black);
setRetainedSelectionEnabled(true);
+ createOutput(this, "", "");
addDefaultShell();
if (m_instance) qFatal("LipstickCompositor: Only one compositor instance per process is supported");
@@ -183,7 +183,7 @@ void LipstickCompositor::surfaceCreated(QWaylandSurface *surface)
connect(surface, &QWaylandSurface::redraw, this, &LipstickCompositor::surfaceCommitted);
}
-bool LipstickCompositor::openUrl(WaylandClient *client, const QUrl &url)
+bool LipstickCompositor::openUrl(QWaylandClient *client, const QUrl &url)
{
Q_UNUSED(client)
return openUrl(url);
@@ -286,7 +286,7 @@ int LipstickCompositor::windowIdForLink(QWaylandSurface *s, uint link) const
QWaylandSurface *windowSurface = iter.value()->surface();
if (windowSurface && windowSurface->client() && s->client() &&
- windowSurface->processId() == s->processId() &&
+ windowSurface->client()->processId() == s->client()->processId() &&
windowSurface->windowProperties().value("WINID", uint(0)).toUInt() == link)
return iter.value()->windowId();
}
@@ -357,7 +357,7 @@ void LipstickCompositor::setTopmostWindowId(int id)
QWaylandSurface *surface = surfaceForId(m_topmostWindowId);
if (surface)
- pid = surface->processId();
+ pid = surface->client()->processId();
if (m_topmostWindowProcessId != pid) {
m_topmostWindowProcessId = pid;
diff --git a/src/compositor/lipstickcompositor.h b/src/compositor/lipstickcompositor.h
index e3db6b1..33be214 100644
--- a/src/compositor/lipstickcompositor.h
+++ b/src/compositor/lipstickcompositor.h
@@ -21,6 +21,7 @@
#include <QQmlParserStatus>
#include <QWaylandQuickCompositor>
#include <QWaylandSurfaceItem>
+#include <QWaylandClient>
#include <QPointer>
#include <QTimer>
#include <MGConfItem>
@@ -64,7 +65,7 @@ public:
void classBegin() Q_DECL_OVERRIDE;
void componentComplete() Q_DECL_OVERRIDE;
void surfaceCreated(QWaylandSurface *surface) Q_DECL_OVERRIDE;
- bool openUrl(WaylandClient *client, const QUrl &url) Q_DECL_OVERRIDE;
+ bool openUrl(QWaylandClient *client, const QUrl &url) Q_DECL_OVERRIDE;
void retainedSelectionReceived(QMimeData *mimeData) Q_DECL_OVERRIDE;
int windowCount() const;
diff --git a/src/compositor/lipstickcompositorwindow.cpp b/src/compositor/lipstickcompositorwindow.cpp
index bab4c42..a9c21ca 100644
--- a/src/compositor/lipstickcompositorwindow.cpp
+++ b/src/compositor/lipstickcompositorwindow.cpp
@@ -77,7 +77,7 @@ int LipstickCompositorWindow::windowId() const
qint64 LipstickCompositorWindow::processId() const
{
if (surface())
- return surface()->processId();
+ return surface()->client()->processId();
else return 0;
}
diff --git a/src/compositor/windowmodel.cpp b/src/compositor/windowmodel.cpp
index 7ecd4d4..03c5b82 100644
--- a/src/compositor/windowmodel.cpp
+++ b/src/compositor/windowmodel.cpp
@@ -68,7 +68,7 @@ QVariant WindowModel::data(const QModelIndex &index, int role) const
return m_items.at(idx);
} else if (role == Qt::UserRole + 2) {
QWaylandSurface *s = c->surfaceForId(m_items.at(idx));
- return s?s->processId():0;
+ return s?s->client()->processId():0;
} else if (role == Qt::UserRole + 3) {
LipstickCompositorWindow *w = static_cast<LipstickCompositorWindow *>(c->windowForId(m_items.at(idx)));
return w->title();
diff --git a/src/notifications/lipsticknotification.cpp b/src/notifications/lipsticknotification.cpp
index 3b18a13..af6d607 100644
--- a/src/notifications/lipsticknotification.cpp
+++ b/src/notifications/lipsticknotification.cpp
@@ -18,6 +18,7 @@
#include <QDBusArgument>
#include <QtDebug>
+#include <QDataStream>
LipstickNotification::LipstickNotification(const QString &appName, uint replacesId, const QString &appIcon, const QString &summary, const QString &body, const QStringList &actions, const QVariantHash &hints, int expireTimeout, QObject *parent) :
QObject(parent),
diff --git a/src/src.pro b/src/src.pro
index 5e66ecb..f8d4ff1 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -139,7 +139,7 @@ SOURCES += \
CONFIG += link_pkgconfig mobility qt warn_on depend_includepath qmake_cache target_qt
CONFIG -= link_prl
-PKGCONFIG += mlite5 mce keepalive dbus-1 dbus-glib-1 libresourceqt5 ngf-qt5 Qt5SystemInfo libsystemd-daemon contextkit-statefs dsme_dbus_if thermalmanager_dbus_if usb-moded-qt5
+PKGCONFIG += mlite5 mce keepalive dbus-1 dbus-glib-1 libresourceqt5 ngf-qt5 Qt5SystemInfo libsystemd contextkit-statefs dsme_dbus_if thermalmanager_dbus_if usb-moded-qt5 egl
LIBS += -lrt
--
2.7.0.rc3
...@@ -4,15 +4,13 @@ LICENSE = "LGPL-2.1+" ...@@ -4,15 +4,13 @@ LICENSE = "LGPL-2.1+"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24" LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24"
SRC_URI = "git://git.merproject.org/mer-core/lipstick.git;protocol=https \ SRC_URI = "git://git.merproject.org/mer-core/lipstick.git;protocol=https \
file://0001-Disables-tests-and-doc-and-fixes-build.patch" file://0001-Disables-tests-tools-and-doc-and-fixes-build.patch"
SRC_URI[md5sum] = "d1b7dc2ee09b51192b14083292135c69" SRCREV = "d393a948d2d7d179dbe5dedf3ae68543e655507a"
SRC_URI[sha256sum] = "aa8049c9d49bb035f526d19a2bfb7d8e5b78c810946b10dcbd1d02c7a88520e4"
SRCREV = "d62073e39be884350d81977da1beaceaafb46164"
PR = "r1" PR = "r1"
PV = "+git${SRCREV}" PV = "+git${SRCREV}"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
DEPENDS += "qtbase qtsensors qtdeclarative qtwayland mlite dbus dbus-glib libresourceqt qtsystems libngf-qt statefs-qt mce usb-moded-qt5 systemd wayland qt5-qpa-hwcomposer-plugin qmsystem qttools-native" DEPENDS += "qtbase qtsensors qtdeclarative qtwayland mlite dbus dbus-glib libresourceqt qtsystems libngf-qt statefs-qt mce usb-moded-qt5 systemd wayland qt5-qpa-hwcomposer-plugin qmsystem nemo-keepalive qttools-native"
RDEPENDS_${PN} += "qt5-qpa-hwcomposer-plugin" RDEPENDS_${PN} += "qt5-qpa-hwcomposer-plugin"
# qt5-qpa-hwcomposer-plugin isn't detected to be needed at runtime by OpenEmbedded # qt5-qpa-hwcomposer-plugin isn't detected to be needed at runtime by OpenEmbedded
......
From d742716a87b867900b26e4be4508f0045345406c Mon Sep 17 00:00:00 2001 From 8231557cb3d2ee01382ceae0e76d74358a40afc0 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com> From: Florent Revest <revestflo@gmail.com>
Date: Thu, 20 Aug 2015 20:22:21 +0200 Date: Sat, 12 Dec 2015 18:50:02 +0100
Subject: [PATCH] Forces GLES2 the dirty way Subject: [PATCH] Forces GLES2 the dirty way
--- ---
...@@ -8,18 +8,17 @@ Subject: [PATCH] Forces GLES2 the dirty way ...@@ -8,18 +8,17 @@ Subject: [PATCH] Forces GLES2 the dirty way
1 file changed, 2 insertions(+) 1 file changed, 2 insertions(+)
diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
index 7cc3300..0beda2c 100644 index bffb0eb..cdd482b 100644
--- a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp --- a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
+++ b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp +++ b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
@@ -273,6 +273,8 @@ void QEGLPlatformContext::updateFormatFromGL() @@ -306,6 +306,8 @@ void QEGLPlatformContext::updateFormatFromGL()
QByteArray version = QByteArray(reinterpret_cast<const char *>(s)); minor = 0;
int major, minor; }
if (QPlatformOpenGLContext::parseOpenGLVersion(version, major, minor)) { #endif
+ major = 2; + major = 2;
+ minor = 0; + minor = 0;
m_format.setMajorVersion(major); m_format.setMajorVersion(major);
m_format.setMinorVersion(minor); m_format.setMinorVersion(minor);
} }
-- --
2.5.0 2.6.2
FILESEXTRAPATHS_prepend := "${THISDIR}/qtbase:" FILESEXTRAPATHS_prepend := "${THISDIR}/qtbase:"
SRC_URI += " file://0001-Forces-GLES2-the-dirty-way.patch " SRC_URI += " file://0001-Forces-GLES2-the-dirty-way.patch"
# Remove dependencies to mesa # Remove dependencies to mesa
PACKAGECONFIG_remove = "kms" PACKAGECONFIG_remove = "kms"
......
From 834f0884120a40e67954059c5d1916d1e7a9ed4a Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Sat, 16 Jan 2016 17:11:35 +0100
Subject: [PATCH] QWlExtendedOutput: specify resource's version when creating
an extendedOutput
---
src/compositor/wayland_wrapper/qwlextendedoutput.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compositor/wayland_wrapper/qwlextendedoutput.cpp b/src/compositor/wayland_wrapper/qwlextendedoutput.cpp
index dbcbb57..046933c 100644
--- a/src/compositor/wayland_wrapper/qwlextendedoutput.cpp
+++ b/src/compositor/wayland_wrapper/qwlextendedoutput.cpp
@@ -59,7 +59,7 @@ void OutputExtensionGlobal::output_extension_get_extended_output(qt_output_exten
OutputResource *output = static_cast<OutputResource *>(Output::Resource::fromResource(output_resource));
Q_ASSERT(output->extendedOutput == 0);
- ExtendedOutput *extendedOutput = static_cast<ExtendedOutput *>(qt_extended_output::add(resource->client(), id));
+ ExtendedOutput *extendedOutput = static_cast<ExtendedOutput *>(qt_extended_output::add(resource->client(), id, resource->version()));
Q_ASSERT(!output->extendedOutput);
output->extendedOutput = extendedOutput;
--
2.7.0.rc3
FILESEXTRAPATHS_prepend := "${THISDIR}/qtwayland:" FILESEXTRAPATHS_prepend := "${THISDIR}/qtwayland:"
SRC_URI += " file://0001-Forces-GLES2-the-dirty-way.patch " SRC_URI += " file://0001-Forces-GLES2-the-dirty-way.patch \
file://0002-Add-a-mechanism-to-delay-unmapping-of-surfaces.patch \
file://0003-QWlExtendedOutput-specify-resource-s-version-when-cr.patch "
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment