Don't import Purpose on Android

This prevents the app from launching on Android (and probably Windows
too) because our module declares a dependency on a non-existent Purpose.
This commit is contained in:
Joshua Goins
2025-09-08 16:10:12 +02:00
parent 1e78209cd7
commit 1b8adcc91a

View File

@@ -48,6 +48,8 @@ if(ANDROID OR WIN32)
set_source_files_properties(qml/GlobalMenuStub.qml PROPERTIES
QT_QML_SOURCE_TYPENAME GlobalMenu
)
else()
set(EXTRA_IMPORTS org.kde.purpose)
endif()
ecm_add_qml_module(neochat URI org.kde.neochat GENERATE_PLUGIN_SOURCE
@@ -117,8 +119,8 @@ ecm_add_qml_module(neochat URI org.kde.neochat GENERATE_PLUGIN_SOURCE
org.kde.neochat.login
org.kde.neochat.chatbar
org.kde.config
org.kde.purpose
org.kde.syntaxhighlighting
${EXTRA_IMPORTS}
)
if(NOT ANDROID AND NOT WIN32)