Commit 753b88e4 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Only link against kirigami if we are using the local kirigami clone

Summary: Only use the local kirigami clone if building from qmake.

Reviewers: camiloh

Reviewed By: camiloh

Differential Revision: https://phabricator.kde.org/D12382
parent 40df719d
......@@ -10,8 +10,11 @@
#include <QStyleHints>
#include "services/local/linking.h"
#ifdef Q_OS_ANDROID
#ifdef STATIC_KIRIGAMI
#include "./3rdparty/kirigami/src/kirigamiplugin.h"
#endif
#ifdef Q_OS_ANDROID
#include <QtWebView/QtWebView>
#else
#include <QtWebEngine>
......@@ -83,9 +86,11 @@ int main(int argc, char *argv[])
"LINK", // name in QML (does not have to match C++ name)
"Error: only enums" // error in case someone tries to create a MyNamespace object
);
#ifdef Q_OS_ANDROID
#ifdef STATIC_KIRIGAMI
KirigamiPlugin::getInstance().registerTypes();
#endif
#ifdef Q_OS_ANDROID
QtWebView::initialize();
#else
// if(QQuickStyle::availableStyles().contains("nomad"))
......
......@@ -29,6 +29,7 @@ linux:unix:!android {
include(3rdparty/kirigami/kirigami.pri)
RESOURCES += kirigami-icons.qrc
DEFINES += STATIC_KIRIGAMI
} else {
message("Unknown configuration")
......
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