* [Buildroot] [PATCH] qt5declarative: build and install examples
@ 2017-03-16 22:54 Gaël PORTAY
2017-03-18 14:04 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Gaël PORTAY @ 2017-03-16 22:54 UTC (permalink / raw)
To: buildroot
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>
---
package/qt5/qt5declarative/qt5declarative.mk | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/package/qt5/qt5declarative/qt5declarative.mk b/package/qt5/qt5declarative/qt5declarative.mk
index fb546bd..d5b298c 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
--
2.10.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] qt5declarative: build and install examples
2017-03-16 22:54 [Buildroot] [PATCH] qt5declarative: build and install examples Gaël PORTAY
@ 2017-03-18 14:04 ` Thomas Petazzoni
2017-03-18 19:54 ` Gaël PORTAY
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-03-18 14:04 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 16 Mar 2017 18:54:25 -0400, Ga?l PORTAY wrote:
> 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>
> ---
> package/qt5/qt5declarative/qt5declarative.mk | 18 +++++++++++++-----
> 1 file changed, 13 insertions(+), 5 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] qt5declarative: build and install examples
2017-03-18 14:04 ` Thomas Petazzoni
@ 2017-03-18 19:54 ` Gaël PORTAY
0 siblings, 0 replies; 3+ messages in thread
From: Gaël PORTAY @ 2017-03-18 19:54 UTC (permalink / raw)
To: buildroot
Thanks Thomas.
----- Original Message -----
From: "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>
To: "Ga?l PORTAY" <gael.portay@savoirfairelinux.com>
Cc: buildroot at buildroot.org
Sent: Saturday, March 18, 2017 10:04:18 AM
Subject: Re: [Buildroot] [PATCH] qt5declarative: build and install examples
Hello,
On Thu, 16 Mar 2017 18:54:25 -0400, Ga?l PORTAY wrote:
> 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>
> ---
> package/qt5/qt5declarative/qt5declarative.mk | 18 +++++++++++++-----
> 1 file changed, 13 insertions(+), 5 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-18 19:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 22:54 [Buildroot] [PATCH] qt5declarative: build and install examples Gaël PORTAY
2017-03-18 14:04 ` Thomas Petazzoni
2017-03-18 19:54 ` Gaël PORTAY
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.