From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Thu, 1 Mar 2018 11:50:03 +0100 Subject: [Buildroot] [PATCH] package/qt5/qt5scxml: install missing QML module In-Reply-To: <20180301074610.18946-1-b.bilas@grinn-global.com> References: <20180301074610.18946-1-b.bilas@grinn-global.com> Message-ID: <20180301115003.6cc39376@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Bartosz, first thanks for the suggested patch. On Thu, 1 Mar 2018 08:46:10 +0100, Bartosz Bilas wrote: > 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 > Patch subject: 'qt5scxml: install missing QML module' and Fixes: qrc:/MainUI.qml:2 module "QtScxml" is not installed would be enough (I think the patched lines are self-explanatory)... > > Signed-off-by: Bartosz Bilas > --- > 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 > + The dependency on BR2_PACKAGE_QT5DECLARATIVE_QUICK is not needed, the QtScxml module is build/installed even without enabled BR2_PACKAGE_QT5DECLARATIVE_QUICK... With this changes you can add my Reviewed-by: Peter Seiderer Regards, Peter > 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 >