From 8e1e4e3c9c023bf0f00e82ee2f7b199727127cbf Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Wed, 27 Mar 2024 12:05:36 +0100 Subject: komodo: add Qaterial as dependency: compilation error --- packages/komodo/Qaterial.patch | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 packages/komodo/Qaterial.patch (limited to 'packages/komodo/Qaterial.patch') diff --git a/packages/komodo/Qaterial.patch b/packages/komodo/Qaterial.patch new file mode 100644 index 0000000..4298206 --- /dev/null +++ b/packages/komodo/Qaterial.patch @@ -0,0 +1,56 @@ +From 1c6b82f51a29f184727256da40c649bc46d81e57 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marek=20Pa=C5=9Bnikowski?= +Date: Wed, 27 Mar 2024 10:50:08 +0100 +Subject: [PATCH] Bug Fix + +--- + cmake/QaterialGenerateIcons.cmake | 27 ++++++++++++++++++++++++--- + 1 file changed, 24 insertions(+), 3 deletions(-) + +diff --git a/cmake/QaterialGenerateIcons.cmake b/cmake/QaterialGenerateIcons.cmake +index d28d45d..3b54ae9 100644 +--- a/cmake/QaterialGenerateIcons.cmake ++++ b/cmake/QaterialGenerateIcons.cmake +@@ -200,8 +200,8 @@ function(qaterial_generate_icons_class OUTPUT_FILE_HPP OUTPUT_FILE_CPP) + else() + + # Generate fake Qaterial.Impl.Icons.Icons.qml +- message(STATUS "Generate Fake ${OUTPUT_FILE}") +- file(WRITE ${OUTPUT_FILE} ++ message(STATUS "Generate Fake ${OUTPUT_FILE_HPP}") ++ file(WRITE ${OUTPUT_FILE_HPP} + "// Dummy file generated with CMake to mock the absence of Mdi icons.\n" + "// Everything written here will be lost.\n\n" + "#ifndef __QATERIAL_ICONS_HPP__\n" +@@ -221,6 +221,27 @@ function(qaterial_generate_icons_class OUTPUT_FILE_HPP OUTPUT_FILE_CPP) + "#endif" + ) + +- endif() ++ # Generate fake Qaterial.Impl.Icons.Icons.qml ++ message(STATUS "Generate Fake ${OUTPUT_FILE_CPP}") ++ file(WRITE ${OUTPUT_FILE_CPP} ++ "// Dummy file generated with CMake to mock the absence of Mdi icons.\n" ++ "// Everything written here will be lost.\n\n" ++ "#ifndef __QATERIAL_ICONS_HPP__\n" ++ "#define __QATERIAL_ICONS_HPP__\n\n" ++ "#include \n" ++ "#include \n\n" ++ "#include \n\n" ++ "namespace qaterial {\n\n" ++ "class QATERIAL_API_ Icons : public QObject\n" ++ "{\n" ++ " QATERIAL_SINGLETON_IMPL(Icons, icons, Icons);\n\n" ++ "public:\n" ++ " Icons(QObject* parent = nullptr) : QObject(parent) {}\n\n" ++ "};\n\n" ++ "}\n\n" ++ "#endif" ++ ) ++ ++endif() + + endfunction() +-- +2.41.0 + -- cgit v1.2.3