qt5xmlpatterns: install examples
authorMatt Kraai <kraai@ftbfs.org>
Thu, 8 Dec 2016 14:38:50 +0000 (06:38 -0800)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 8 Dec 2016 21:28:02 +0000 (22:28 +0100)
Signed-off-by: Matt Kraai <kraai@ftbfs.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk

index 31477a7c0b395770f468c4dd5b1239f2a40413d4..0b518b05295ed778d092cb8d422ac51ef16c4295 100644 (file)
@@ -32,9 +32,20 @@ define QT5XMLPATTERNS_INSTALL_STAGING_CMDS
 endef
 
 ifeq ($(BR2_STATIC_LIBS),)
-define QT5XMLPATTERNS_INSTALL_TARGET_CMDS
+define QT5XMLPATTERNS_INSTALL_TARGET_LIBS
        cp -dpf $(STAGING_DIR)/usr/lib/libQt5XmlPatterns*.so.* $(TARGET_DIR)/usr/lib
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
+define QT5XMLPATTERNS_INSTALL_TARGET_EXAMPLES
+       cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/xmlpatterns $(TARGET_DIR)/usr/lib/qt/examples/
+endef
+endif
+
+define QT5XMLPATTERNS_INSTALL_TARGET_CMDS
+       $(QT5XMLPATTERNS_INSTALL_TARGET_LIBS)
+       $(QT5XMLPATTERNS_INSTALL_TARGET_EXAMPLES)
+endef
+
 $(eval $(generic-package))