Commit 068e7e92 authored by Kevin Funk's avatar Kevin Funk

appimage: Patch grantlee to avoid recompilation

parent 0e1cacb4
diff --git a/templates/lib/CMakeLists.txt b/templates/lib/CMakeLists.txt
index dad2ef8..685d4d6 100644
--- a/templates/lib/CMakeLists.txt
+++ b/templates/lib/CMakeLists.txt
@@ -118,10 +118,6 @@ endif()
configure_file(grantlee_test_export.h.in "${CMAKE_CURRENT_BINARY_DIR}/grantlee_test_export.h")
-file(READ "${CMAKE_CURRENT_BINARY_DIR}/grantlee_test_export.h" _content)
-
-file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/grantlee_templates_export.h" "${_content}")
-
target_link_libraries(Grantlee_Templates
LINK_PUBLIC Qt5::Core
)
diff --git a/templates/lib/grantlee_test_export.h.in b/templates/lib/grantlee_test_export.h.in
index 681574c..bc07d2b 100644
--- a/templates/lib/grantlee_test_export.h.in
+++ b/templates/lib/grantlee_test_export.h.in
@@ -1,2 +1,8 @@
+#ifndef GRANTLEE_TEST_EXPORT_H
+#define GRANTLEE_TEST_EXPORT_H
+
+#include "grantlee_templates_export.h"
#define GRANTLEE_TESTS_EXPORT @GRANTLEE_TESTS_EXPORT@
+
+#endif
diff --git a/templates/lib/nulllocalizer_p.h b/templates/lib/nulllocalizer_p.h
index a584f79..ab57b79 100644
--- a/templates/lib/nulllocalizer_p.h
+++ b/templates/lib/nulllocalizer_p.h
@@ -21,6 +21,8 @@
#ifndef GRANTLEE_NULLLOCALIZER_P_H
#define GRANTLEE_NULLLOCALIZER_P_H
+#include "grantlee_test_export.h"
+
#include "abstractlocalizer.h"
namespace Grantlee
......@@ -206,7 +206,7 @@ build_project kate $KDE_APPLICATION_VERSION # for snippet plugin, see T3826
build_project konsole $KDE_APPLICATION_VERSION
# Extra
(CUSTOM_GIT_URL=https://github.com/steveire/grantlee.git build_project grantlee $GRANTLEE_VERSION)
(CUSTOM_GIT_URL=https://github.com/steveire/grantlee.git PATCH_FILE=grantlee_avoid_recompilation.patch build_project grantlee $GRANTLEE_VERSION)
# KDevelop
build_project kdevelop-pg-qt $KDEV_PG_QT_VERSION
......
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