All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/qt5/qt5scxml: install missing QML module
@ 2018-03-01  7:46 Bartosz Bilas
  2018-03-01 10:50 ` Peter Seiderer
  0 siblings, 1 reply; 7+ messages in thread
From: Bartosz Bilas @ 2018-03-01  7:46 UTC (permalink / raw)
  To: buildroot

This patch add support for scxml module in QML projects.
When would you like to use state machines in qml files,
you get an error like this:

qrc:/MainUI.qml:2 module "QtScxml" is not installed


Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
---
 package/qt5/qt5scxml/qt5scxml.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/qt5/qt5scxml/qt5scxml.mk b/package/qt5/qt5scxml/qt5scxml.mk
index 2d197a2bca..3f0f1a9054 100644
--- a/package/qt5/qt5scxml/qt5scxml.mk
+++ b/package/qt5/qt5scxml/qt5scxml.mk
@@ -35,6 +35,12 @@ define QT5SCXML_INSTALL_TARGET_LIBS
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
+define QT5SCXML_INSTALL_TARGET_QMLS
+	cp -dpfr $(STAGING_DIR)/usr/qml/QtScxml/ $(TARGET_DIR)/usr/qml/
+endef
+endif
+
 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
 define QT5SCXML_INSTALL_TARGET_EXAMPLES
 	cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/scxml $(TARGET_DIR)/usr/lib/qt/examples/
@@ -43,6 +49,7 @@ endif
 
 define QT5SCXML_INSTALL_TARGET_CMDS
 	$(QT5SCXML_INSTALL_TARGET_LIBS)
+	$(QT5SCXML_INSTALL_TARGET_QMLS)
 	$(QT5SCXML_INSTALL_TARGET_EXAMPLES)
 endef
 
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-03-07 14:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01  7:46 [Buildroot] [PATCH] package/qt5/qt5scxml: install missing QML module Bartosz Bilas
2018-03-01 10:50 ` Peter Seiderer
2018-03-01 12:26   ` Bartosz Biłas
2018-03-01 13:52     ` Peter Seiderer
2018-03-02 21:24   ` Thomas Petazzoni
2018-03-03 19:51     ` Peter Seiderer
2018-03-07 14:08     ` Bartosz Biłas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.