mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
Added support for building with Wayland.
See NO_X11 define in BUILDING.
This commit is contained in:
parent
02b22acde0
commit
1d5d480c85
6
BUILDING
6
BUILDING
@ -127,6 +127,12 @@ Available Defines
|
||||
|
||||
Linux / Unix specific defines:
|
||||
|
||||
NO_X11 Disable all direct X11 calls.
|
||||
Enable when building for Wayland.
|
||||
|
||||
example:
|
||||
$ export NO_X11="true"
|
||||
|
||||
KDE For now, it just use better oxygen icons in Preferences.
|
||||
Nepomuk integration is planned, and it will be enabled with
|
||||
this define also.
|
||||
|
@ -62,6 +62,7 @@ d_no_system_datapath = $$(NO_SYSTEM_DATAPATH)
|
||||
d_use_webgl = $$(USE_WEBGL)
|
||||
d_w7api = $$(W7API)
|
||||
d_kde = $$(KDE)
|
||||
d_nox11 = $$(NO_X11)
|
||||
d_portable = $$(PORTABLE_BUILD)
|
||||
d_nonblock_dialogs = $$(NONBLOCK_JS_DIALOGS)
|
||||
d_use_qtwebkit_2_2 = $$(USE_QTWEBKIT_2_2)
|
||||
@ -74,6 +75,7 @@ win32-msvc* {
|
||||
equals(d_w7api, "true") { DEFINES *= W7API }
|
||||
}
|
||||
equals(d_kde, "true") { DEFINES *= KDE }
|
||||
equals(d_nox11, "true") { DEFINES *= NO_X11 }
|
||||
equals(d_portable, "true") { DEFINES *= PORTABLE_BUILD }
|
||||
equals(d_nonblock_dialogs, "true") { DEFINES *= NONBLOCK_JS_DIALOGS }
|
||||
equals(d_use_qtwebkit_2_2, "true") { DEFINES *= USE_QTWEBKIT_2_2 }
|
||||
|
@ -89,7 +89,7 @@
|
||||
#include "qwebkitversion.h"
|
||||
#endif
|
||||
|
||||
#ifdef QZ_WS_X11
|
||||
#if defined(QZ_WS_X11) && !defined(NO_X11)
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xatom.h>
|
||||
#endif
|
||||
@ -2295,7 +2295,7 @@ void QupZilla::setMenuBookmarksAction(QAction* action)
|
||||
|
||||
QByteArray QupZilla::saveState(int version) const
|
||||
{
|
||||
#ifdef QZ_WS_X11
|
||||
#if defined(QZ_WS_X11) && !defined(NO_X11)
|
||||
QByteArray data;
|
||||
QDataStream stream(&data, QIODevice::WriteOnly);
|
||||
|
||||
@ -2310,7 +2310,7 @@ QByteArray QupZilla::saveState(int version) const
|
||||
|
||||
bool QupZilla::restoreState(const QByteArray &state, int version)
|
||||
{
|
||||
#ifdef QZ_WS_X11
|
||||
#if defined(QZ_WS_X11) && !defined(NO_X11)
|
||||
QByteArray windowState;
|
||||
int desktopId = -1;
|
||||
|
||||
@ -2326,7 +2326,7 @@ bool QupZilla::restoreState(const QByteArray &state, int version)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef QZ_WS_X11
|
||||
#if defined(QZ_WS_X11) && !defined(NO_X11)
|
||||
int QupZilla::getCurrentVirtualDesktop() const
|
||||
{
|
||||
Display* display = static_cast<Display*>(QzTools::X11Display(this));
|
||||
|
@ -245,7 +245,7 @@ private:
|
||||
bool eventFilter(QObject* object, QEvent* event);
|
||||
#endif
|
||||
|
||||
#ifdef QZ_WS_X11
|
||||
#if defined(QZ_WS_X11) && !defined(NO_X11)
|
||||
int getCurrentVirtualDesktop() const;
|
||||
void moveToVirtualDesktop(int desktopId);
|
||||
#endif
|
||||
|
@ -452,7 +452,7 @@ isEqual(QT_MAJOR_VERSION, 5) {
|
||||
|
||||
INSTALLS += target
|
||||
|
||||
LIBS += -lX11
|
||||
!contains(DEFINES, NO_X11):LIBS += -lX11
|
||||
|
||||
RESOURCES -= data/certs.qrc
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
#if QT_VERSION >= 0x050000
|
||||
#include <QUrlQuery>
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
#else
|
||||
#elif !defined(NO_X11)
|
||||
#include <QX11Info>
|
||||
#endif
|
||||
|
||||
@ -616,7 +616,7 @@ QString QzTools::escape(const QString &string)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef QZ_WS_X11
|
||||
#if defined(QZ_WS_X11) && !defined(NO_X11)
|
||||
void* QzTools::X11Display(const QWidget* widget)
|
||||
{
|
||||
Q_UNUSED(widget)
|
||||
|
@ -71,7 +71,7 @@ QString QT_QUPZILLA_EXPORT operatingSystem();
|
||||
bool QT_QUPZILLA_EXPORT isCertificateValid(const QSslCertificate &cert);
|
||||
QString QT_QUPZILLA_EXPORT escape(const QString &string);
|
||||
|
||||
#ifdef QZ_WS_X11
|
||||
#if defined(QZ_WS_X11) && !defined(NO_X11)
|
||||
void QT_QUPZILLA_EXPORT* X11Display(const QWidget* widget);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user