Make the webview optional
This commit is contained in:
parent
65c39c3c92
commit
eda1e02075
@ -6,7 +6,11 @@ TARGET=$${APPLICATION_NAME}
|
|||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
|
|
||||||
QT += network qml quick quickcontrols2 svg websockets bluetooth charts gui-private nfc
|
QT += network qml quick quickcontrols2 svg websockets bluetooth charts gui-private nfc
|
||||||
!ubports: QT += webview
|
|
||||||
|
qtHaveModule(webview) {
|
||||||
|
QT += webview
|
||||||
|
DEFINES += HAVE_WEBVIEW
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDEPATH += $$top_srcdir/libnymea-app
|
INCLUDEPATH += $$top_srcdir/libnymea-app
|
||||||
LIBS += -L$$top_builddir/libnymea-app/ -lnymea-app
|
LIBS += -L$$top_builddir/libnymea-app/ -lnymea-app
|
||||||
|
|||||||
@ -36,11 +36,15 @@
|
|||||||
Q_DECLARE_LOGGING_CATEGORY(dcPlatformIntegration)
|
Q_DECLARE_LOGGING_CATEGORY(dcPlatformIntegration)
|
||||||
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
#ifdef HAVE_WEBVIEW
|
||||||
#include <QtWebView>
|
#include <QtWebView>
|
||||||
|
#endif
|
||||||
|
|
||||||
PlatformHelperGeneric::PlatformHelperGeneric(QObject *parent) : PlatformHelper(parent)
|
PlatformHelperGeneric::PlatformHelperGeneric(QObject *parent) : PlatformHelper(parent)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_WEBVIEW
|
||||||
QtWebView::initialize();
|
QtWebView::initialize();
|
||||||
|
#endif
|
||||||
m_screenHelper = new ScreenHelper(this);
|
m_screenHelper = new ScreenHelper(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ Build-Depends: debhelper (>= 9.0.0),
|
|||||||
libqt5charts5-dev,
|
libqt5charts5-dev,
|
||||||
libqt5svg5-dev,
|
libqt5svg5-dev,
|
||||||
libqt5websockets5-dev,
|
libqt5websockets5-dev,
|
||||||
libqt5webview5-dev,
|
libqt5webview5-dev [!riscv64],
|
||||||
qtbase5-dev,
|
qtbase5-dev,
|
||||||
qttools5-dev-tools,
|
qttools5-dev-tools,
|
||||||
qtconnectivity5-dev,
|
qtconnectivity5-dev,
|
||||||
|
|||||||
Reference in New Issue
Block a user