aboutsummaryrefslogtreecommitdiff
path: root/package/qt5/qt5declarative
diff options
context:
space:
mode:
authorGravatar Gaël PORTAY <gael.portay@savoirfairelinux.com>2017-03-16 18:54:25 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-18 15:04:06 +0100
commit7c997282bd55dab162a45a372ed203f97707fae7 (patch)
tree2f1f5ccbeda80b5bff29c77d69f0bf5c5963bdff /package/qt5/qt5declarative
parentb223a426d95a96d21f233f55f499a91f153359fa (diff)
downloadbuildroot-7c997282bd55dab162a45a372ed203f97707fae7.tar.gz
buildroot-7c997282bd55dab162a45a372ed203f97707fae7.tar.bz2
qt5declarative: build and install examples
This patch builds and installs Qt examples for declarative module. It proceeds the same way as others Qt5 modules. Samples are installed under /usr/lib/qt/examples/qml directory (/usr/lib/qt/examples/quick for quick). Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/qt5/qt5declarative')
-rw-r--r--package/qt5/qt5declarative/qt5declarative.mk18
1 files changed, 13 insertions, 5 deletions
diff --git a/package/qt5/qt5declarative/qt5declarative.mk b/package/qt5/qt5declarative/qt5declarative.mk
index fb546bd73b..d5b298ca27 100644
--- a/package/qt5/qt5declarative/qt5declarative.mk
+++ b/package/qt5/qt5declarative/qt5declarative.mk
@@ -28,14 +28,11 @@ define QT5DECLARATIVE_CONFIGURE_CMDS
endef
define QT5DECLARATIVE_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
- sub-src-all sub-tools-all
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef
define QT5DECLARATIVE_INSTALL_STAGING_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
- sub-src-install_subtargets \
- sub-tools-install_subtargets
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
$(QT5_LA_PRL_FILES_FIXUP)
endef
@@ -45,6 +42,9 @@ ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
define QT5DECLARATIVE_INSTALL_TARGET_QUICK_LIBS
cp -dpf $(STAGING_DIR)/usr/lib/libQt5Quick*.so.* $(TARGET_DIR)/usr/lib
endef
+define QT5DECLARATIVE_INSTALL_TARGET_QUICK_EXAMPLES
+ cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/quick/ $(TARGET_DIR)/usr/lib/qt/examples/
+endef
endif
define QT5DECLARATIVE_INSTALL_TARGET_LIBS
@@ -55,9 +55,17 @@ endef
endif
+ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
+define QT5DECLARATIVE_INSTALL_TARGET_EXAMPLES
+ cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/qml* $(TARGET_DIR)/usr/lib/qt/examples/
+ $(QT5DECLARATIVE_INSTALL_TARGET_QUICK_EXAMPLES)
+endef
+endif
+
define QT5DECLARATIVE_INSTALL_TARGET_CMDS
cp -dpf $(STAGING_DIR)/usr/bin/qml* $(TARGET_DIR)/usr/bin
cp -dpfr $(STAGING_DIR)/usr/qml $(TARGET_DIR)/usr
+ $(QT5DECLARATIVE_INSTALL_TARGET_EXAMPLES)
$(QT5DECLARATIVE_INSTALL_TARGET_LIBS)
endef