Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Fatih Aşıcı" <fatih.asici@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] Qt5Declarative examples
Date: Fri, 13 Jun 2014 11:54:48 +0300	[thread overview]
Message-ID: <201406131154.48198.fatih.asici@gmail.com> (raw)
In-Reply-To: <5395E7B5.1050604@carallon.com>

On Monday 09 June 2014 19:58:29 Will Wagner wrote:
> Hello,

Hi,

> Just started taking a look at Qt5Declarative and noticed that examples
> aren't being built/installed.
> 
> Having looked at the .mk files it is easy to conditionally build the
> examples depending on qt5base config option about examples, but I'm
> unsure how best to do the install target step.
> 
> In Qt5Base it just does:
> cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/*
> $(TARGET_DIR)/usr/lib/qt/examples
> to install examples from staging.
> 
> This would also work for Qt5Declarative but it seems like a poor
> solution to just copy and paste the same code.
> 
> Can anyone think of a better way of doing this? Perhaps define something
> in qt5.mk and use that in both qt5base and qt5declarative?

You can have a look at qt5enginio and qt5websockets packages. They are
installing their examples if BR2_PACKAGE_QT5BASE_EXAMPLES.

There are 3 directories you need to copy for qt5declarative. Following lines will be enough
to copy all of them:

cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/qml* $(TARGET_DIR)/usr/lib/qt/examples/
cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/quick $(TARGET_DIR)/usr/lib/qt/examples/

Regards,
Fatih

      reply	other threads:[~2014-06-13  8:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 16:58 [Buildroot] Qt5Declarative examples Will Wagner
2014-06-13  8:54 ` Fatih Aşıcı [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201406131154.48198.fatih.asici@gmail.com \
    --to=fatih.asici@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox