qt5multimedia: install examples
authorWolfgang Grandegger <wg@grandegger.com>
Fri, 20 Jan 2017 16:46:22 +0000 (17:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 20 Jan 2017 20:23:17 +0000 (21:23 +0100)
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/qt5/qt5multimedia/qt5multimedia.mk

index 67e79686cbac579e539f729083cbdb5ccf1ff220..3075ffc9190c15fc9c8dd740a27c6d611820d2bc 100644 (file)
@@ -59,9 +59,16 @@ define QT5MULTIMEDIA_INSTALL_TARGET_QMLS
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
+define QT5MULTIMEDIA_INSTALL_TARGET_EXAMPLES
+       cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/multimedia* $(TARGET_DIR)/usr/lib/qt/examples/
+endef
+endif
+
 define QT5MULTIMEDIA_INSTALL_TARGET_CMDS
        $(QT5MULTIMEDIA_INSTALL_TARGET_LIBS)
        $(QT5MULTIMEDIA_INSTALL_TARGET_QMLS)
+       $(QT5MULTIMEDIA_INSTALL_TARGET_EXAMPLES)
 endef
 
 $(eval $(generic-package))