From 4a81496168e5310af4bf9226d19738e834d6a0bf Mon Sep 17 00:00:00 2001 From: Christian Hitz Date: Wed, 11 Sep 2024 15:20:20 +0200 Subject: [PATCH] package/qt6/qt6tools: enable QML support in linguist When BR2_PACKAGE_QT6DECLARATIVE_QUICK is enabled the qt linuguist tool lupdate should support QML/JS files. Signed-off-by: Christian Hitz Signed-off-by: Thomas Petazzoni --- package/qt6/qt6tools/qt6tools.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/qt6/qt6tools/qt6tools.mk b/package/qt6/qt6tools/qt6tools.mk index e5e74f117e..b063f08887 100644 --- a/package/qt6/qt6tools/qt6tools.mk +++ b/package/qt6/qt6tools/qt6tools.mk @@ -49,6 +49,12 @@ HOST_QT6TOOLS_DEPENDENCIES = host-qt6base ifeq ($(BR2_PACKAGE_HOST_QT6TOOLS_LINGUIST_TOOLS),y) HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=ON +# When we have qt6declarative for the target, we need to build the +# linguist tool with host-qt6declarative support so that it handles +# QML/JS files +ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y) +HOST_QT6TOOLS_DEPENDENCIES += host-qt6declarative +endif else HOST_QT6TOOLS_CONF_OPTS += -DFEATURE_linguist=OFF endif