qt5quickcontrols2: install examples
authorPeter Seiderer <ps.report@gmx.net>
Mon, 23 Jan 2017 20:29:18 +0000 (21:29 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 23 Jan 2017 21:55:19 +0000 (22:55 +0100)
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/qt5/qt5quickcontrols2/qt5quickcontrols2.mk

index a5ad3f6d4f2c2ce692a7237756192cd5ee2ed97e..8de7932f40e22fcf49c597134c848967e953336e 100644 (file)
@@ -30,11 +30,18 @@ define QT5QUICKCONTROLS2_INSTALL_STAGING_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
 endef
 
+ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
+define QT5QUICKCONTROLS2_INSTALL_TARGET_EXAMPLES
+       cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/quickcontrols2 $(TARGET_DIR)/usr/lib/qt/examples/
+endef
+endif
+
 define QT5QUICKCONTROLS2_INSTALL_TARGET_CMDS
        cp -dpf $(STAGING_DIR)/usr/lib/libQt5LabsTemplates.so.* $(TARGET_DIR)/usr/lib
        cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/controls $(TARGET_DIR)/usr/qml/Qt/labs
        cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/calendar $(TARGET_DIR)/usr/qml/Qt/labs
        cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/templates $(TARGET_DIR)/usr/qml/Qt/labs
+       $(QT5QUICKCONTROLS2_INSTALL_TARGET_EXAMPLES)
 endef
 
 $(eval $(generic-package))