Update flake
This commit is contained in:
parent
a1271d04c0
commit
ee91d74867
3 changed files with 21 additions and 25 deletions
|
|
@ -1,12 +1,12 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e1298ba..1c9ddec 100644
|
||||
index e1298ba..1af7d0a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -9,6 +9,7 @@ set(KF_MIN_VERSION "5.68.0")
|
||||
project("WallpaperEngineKde")
|
||||
|
||||
|
||||
+add_definitions(-DQML2_CMAKE_PATH="${QML2_CMAKE_PATH}")
|
||||
+add_definitions(-DQML_LIB="${QML_LIB}")
|
||||
set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY true)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
if(NOT OpenGL_GL_PREFERENCE)
|
||||
|
|
@ -28,7 +28,7 @@ index 1a48f5e..7db2480 100644
|
|||
return sh;
|
||||
}
|
||||
diff --git a/src/plugin.cpp b/src/plugin.cpp
|
||||
index 4bc817e..2fa88a3 100644
|
||||
index 4bc817e..a98cb4a 100644
|
||||
--- a/src/plugin.cpp
|
||||
+++ b/src/plugin.cpp
|
||||
@@ -14,6 +14,18 @@ class Port : public QQmlExtensionPlugin {
|
||||
|
|
@ -39,7 +39,7 @@ index 4bc817e..2fa88a3 100644
|
|||
+ if (strcmp(uri, "com.github.catsout.wallpaperEngineKde") != 0) return;
|
||||
+ if (!engine) return;
|
||||
+
|
||||
+ QString pathList = QML2_CMAKE_PATH;
|
||||
+ QString pathList = QML_LIB;
|
||||
+ QStringList paths = pathList.split(':', Qt::SkipEmptyParts);
|
||||
+ for (const QString &path : paths) {
|
||||
+ engine->addImportPath(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue