Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: "Eric Bénard" <eric@eukrea.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] qt: package examples
Date: Fri, 24 May 2013 13:36:52 +0200	[thread overview]
Message-ID: <20130524113652.GU32431@jama> (raw)
In-Reply-To: <1369388734-15750-1-git-send-email-eric@eukrea.com>

[-- Attachment #1: Type: text/plain, Size: 3060 bytes --]

On Fri, May 24, 2013 at 11:45:34AM +0200, Eric Bénard wrote:
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> ---
>  recipes-qt/qt5/qt5.inc          |    9 ++++++++-
>  recipes-qt/qt5/qtbase.inc       |    1 +
>  recipes-qt/qt5/qtmultimedia.inc |    4 ++++
>  3 files changed, 13 insertions(+), 1 deletion(-)
> 
> diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc
> index d370844..018c9ad 100644
> --- a/recipes-qt/qt5/qt5.inc
> +++ b/recipes-qt/qt5/qt5.inc
> @@ -20,7 +20,7 @@ OE_QMAKE_PATH_SETTINGS = "${OE_QMAKE_PATH_QT_SETTINGS}"
>  OE_QMAKE_PATH_EXAMPLES = "${OE_QMAKE_PATH_QT_EXAMPLES}"
>  OE_QMAKE_PATH_TESTS = "${OE_QMAKE_PATH_QT_TESTS}"
>  
> -PACKAGES =. "${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs "
> +PACKAGES =. "${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs ${PN}-examples-staticdev ${PN}-examples-dbg ${PN}-examples "
>  
>  # extra -dbg packages
>  FILES_${PN}-qmlplugins-dbg = " \
> @@ -98,3 +98,10 @@ FILES_${PN}-dbg += " \
>  FILES_${PN}-staticdev += " \
>      ${OE_QMAKE_PATH_LIBS}/*.a \
>  "
> +
> +FILES_${PN}-examples             = "${datadir}/${QT_DIR_NAME}/examples/*"
> +
> +FILES_${PN}-examples-dbg         = "${datadir}/${QT_DIR_NAME}/examples/.debug ${datadir}/${QT_DIR_NAME}/examples/*/.debug ${datadir}/${QT_DIR_NAME}/examples/*/*/.debug ${datadir}/${QT_DIR_NAME}/examples/*/*/*/.debug ${datadir}/${QT_DIR_NAME}/examples/*/*/*/*/.debug ${datadir}/${QT_DIR_NAME}/examples/*/*/*/*/*/.debug"

Please wrap it to multiple lines so it's easier to see that it's just
multiple levels of .debug directories.

> +ALLOW_EMPTY_${PN}-examples = "1"
> +ALLOW_EMPTY_${PN}-examples-staticdev = "1"
> +ALLOW_EMPTY_${PN}-examples-dbg = "1"

Do we need to always create them?

> diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc
> index 5d4334a..be6f10a 100644
> --- a/recipes-qt/qt5/qtbase.inc
> +++ b/recipes-qt/qt5/qtbase.inc
> @@ -167,3 +167,4 @@ do_install_append() {
>  
>  PACKAGES =. "${PN}-fonts "
>  FILES_${PN}-fonts = "${libdir}/${QT_DIR_NAME}/fonts ${libdir}/fonts"
> +FILES_${PN}-examples-staticdev   = "${datadir}/${QT_DIR_NAME}/examples/tools/plugandpaint/plugins/libpnp_basictools.a"

Shouldn't this go to qt5.inc (with * and *.a)

> diff --git a/recipes-qt/qt5/qtmultimedia.inc b/recipes-qt/qt5/qtmultimedia.inc
> index d9fdf79..e773ad1 100644
> --- a/recipes-qt/qt5/qtmultimedia.inc
> +++ b/recipes-qt/qt5/qtmultimedia.inc
> @@ -3,3 +3,7 @@ require qt5.inc
>  DEPENDS += "qtdeclarative gstreamer alsa-lib "
>  
>  INC_PR = "r0"
> +
> +do_install_append() {
> +    rm -f ${D}/${datadir}/${QT_DIR_NAME}/examples/multimedia/spectrum/*.so
> +}
> \ No newline at end of file
> -- 
> 1.7.10.4
> 

Please use OE_QMAKE_PATH_EXAMPLES variable everywhere and add some comment explaining
why examples/multimedia/spectrum needs to be removed.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

      reply	other threads:[~2013-05-24 11:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24  9:45 [PATCH] qt: package examples Eric Bénard
2013-05-24 11:36 ` Martin Jansa [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=20130524113652.GU32431@jama \
    --to=martin.jansa@gmail.com \
    --cc=eric@eukrea.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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