Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC PATCH] qt5tools: Install QDesignerExportWidget include
@ 2017-08-30  6:03 Alan Yaniger
  2017-09-04 21:44 ` Peter Seiderer
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Yaniger @ 2017-08-30  6:03 UTC (permalink / raw)
  To: buildroot

To build a custom widget exposed to QtDesigner, the widget should 
include the file QtUiPlugin/QDesignerExportWidget. Without this patch,
the include file is not installed in ${STAGING_DIR}/usr/include/qt5. 

The file QDesignerExportWidget in the qt5tools tarball is just an 
include of the file qdesignerexportwidget.h, which itself includes the
file qdesignerexportwidget.h, identified by a relative path 
"../../src/designer/src/uiplugin/qdesignerexportwidget.h". That 
relative path will not work in the staging dir, so just copy 
qdesignerexportwidget.h into staging, and give it the name 
QtUiPlugin/QDesignerExportWidget.

If anyone has a better way to install this file, using the Qt build 
system instead of "cp", I would be happy to revise the patch.

Signed-off-by: Alan Yaniger <alan@tkos.co.il>
---
 package/qt5/qt5tools/qt5tools.mk | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/package/qt5/qt5tools/qt5tools.mk b/package/qt5/qt5tools/qt5tools.mk
index 3638b74..96a3c65 100644
--- a/package/qt5/qt5tools/qt5tools.mk
+++ b/package/qt5/qt5tools/qt5tools.mk
@@ -31,7 +31,7 @@ QT5TOOLS_BUILD_DIRS_$(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS) += \
 	linguist/lconvert linguist/lrelease linguist/lupdate
 ifeq ($(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS),y)
 # use install target to copy cmake module files
-define QT5TOOLS_INSTALL_STAGING_CMDS
+define QT5TOOLS_LINGUIST_TOOLS_INSTALL_STAGING_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src/linguist install
 endef
 endif
@@ -58,6 +58,19 @@ define QT5TOOLS_BUILD_CMDS
 		$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src/$(p)$(sep))
 endef
 
+ifeq ($(BR2_PACKAGE_QT5TOOLS_QTPLUGININFO),y)
+define QT5TOOLS_QTPLUGININFO_INSTALL_STAGING_CMDS
+	$(INSTALL) -D -m0644 \
+		$(@D)/src/designer/src/uiplugin/qdesignerexportwidget.h \
+		$(STAGING_DIR)/usr/include/qt5/QtUiPlugin/QDesignerExportWidget
+endef
+endif
+
+define QT5TOOLS_INSTALL_STAGING_CMDS
+	$(QT5TOOLS_LINGUIST_TOOLS_INSTALL_STAGING_CMDS)
+	$(QT5TOOLS_QTPLUGININFO_INSTALL_STAGING_CMDS)
+endef
+
 define QT5TOOLS_INSTALL_TARGET_CMDS
 	$(foreach p,$(QT5TOOLS_INSTALL_TARGET_y), \
 		$(INSTALL) -D -m0755 $(@D)/bin/$(p) $(TARGET_DIR)/usr/bin/$(p)$(sep))
-- 
2.7.4

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

end of thread, other threads:[~2017-09-04 21:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-30  6:03 [Buildroot] [RFC PATCH] qt5tools: Install QDesignerExportWidget include Alan Yaniger
2017-09-04 21:44 ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox