Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-qt5][PATCH 07/11] qttools: use one recipe for all compilations
Date: Mon, 24 Aug 2015 14:46:28 +0200	[thread overview]
Message-ID: <20150824124628.GF2446@jama> (raw)
In-Reply-To: <805439ad0b3909810c1eb60a9d9b568062e160d4.1440407387.git.samuli.piippo@theqtcompany.com>

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

On Mon, Aug 24, 2015 at 12:13:53PM +0300, Samuli Piippo wrote:
> Instead of separate recipes for target, native and nativesdk, use
> one recipe with BBCLASSEXTEND in place.
> 
> Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
> ---
>  recipes-qt/qt5/nativesdk-qttools_git.bb | 45 ---------------------------------
>  recipes-qt/qt5/qttools-native_git.bb    | 26 -------------------
>  recipes-qt/qt5/qttools_git.bb           |  9 ++++++-
>  3 files changed, 8 insertions(+), 72 deletions(-)
>  delete mode 100644 recipes-qt/qt5/nativesdk-qttools_git.bb
>  delete mode 100644 recipes-qt/qt5/qttools-native_git.bb
> 
> diff --git a/recipes-qt/qt5/nativesdk-qttools_git.bb b/recipes-qt/qt5/nativesdk-qttools_git.bb
> deleted file mode 100644
> index 73e5d22..0000000
> --- a/recipes-qt/qt5/nativesdk-qttools_git.bb
> +++ /dev/null
> @@ -1,45 +0,0 @@
> -LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
> -LIC_FILES_CHKSUM = " \
> -    file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \
> -    file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \
> -    file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
> -    file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
> -"
> -
> -QT_MODULE = "qttools"
> -
> -DEPENDS = "nativesdk-qtbase qtbase-native"
> -
> -require nativesdk-qt5.inc
> -require qt5-git.inc
> -
> -# it's already included with newer oe-core, but include it here for dylan
> -FILESEXTRAPATHS =. "${FILE_DIRNAME}/qttools:"
> -
> -SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch"
> -
> -PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
> -
> -FILES_${PN}-dbg = " \
> -    ${OE_QMAKE_PATH_BINS}/.debug \
> -"
> -
> -FILES_${PN} = " \
> -    ${OE_QMAKE_PATH_BINS}/* \
> -"
> -
> -do_configure() {
> -    ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly
> -}
> -
> -do_install() {
> -    # Fix install paths for all
> -    find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g"
> -
> -    oe_runmake install INSTALL_ROOT=${D}
> -
> -    # remove things unused in nativesdk
> -    rm -rf ${D}${libdir}
> -}
> -
> -SRCREV = "a6ed9b418d1b4464f088b378e5bdb96ec420db6c"
> diff --git a/recipes-qt/qt5/qttools-native_git.bb b/recipes-qt/qt5/qttools-native_git.bb
> deleted file mode 100644
> index 13e1b79..0000000
> --- a/recipes-qt/qt5/qttools-native_git.bb
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -DEPENDS = "qtbase-native"
> -
> -LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
> -LIC_FILES_CHKSUM = " \
> -    file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \
> -    file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \
> -    file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
> -    file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
> -"
> -
> -QT_MODULE = "qttools"
> -
> -require qt5-native.inc
> -require qt5-git.inc
> -
> -SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch"
> -
> -do_configure() {
> -    ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly
> -}
> -
> -do_install() {
> -    oe_runmake install INSTALL_ROOT=${D}
> -}
> -
> -SRCREV = "a6ed9b418d1b4464f088b378e5bdb96ec420db6c"
> diff --git a/recipes-qt/qt5/qttools_git.bb b/recipes-qt/qt5/qttools_git.bb
> index e27d6ef..51690ac 100644
> --- a/recipes-qt/qt5/qttools_git.bb
> +++ b/recipes-qt/qt5/qttools_git.bb
> @@ -9,9 +9,11 @@ LIC_FILES_CHKSUM = " \
>      file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
>  "
>  
> -DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
> +DEPENDS += "qtbase"
> +DEPENDS_class-target = "qtdeclarative qtxmlpatterns"
>  
>  SRC_URI += " \
> +    file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch \
>      file://0002-assistant-help-fix-linking-of-dependent-libraries.patch \
>      file://0003-add-noqtwebkit-configuration.patch \
>  "
> @@ -24,4 +26,9 @@ PACKAGECONFIG[qtwebkit] = ",,qtwebkit"
>  
>  EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)}"
>  
> +EXTRA_QMAKEVARS_PRE_class-native += "CONFIG+=linguistonly"
> +EXTRA_QMAKEVARS_PRE_class-nativesdk += "CONFIG+=linguistonly"

Use PACKAGECONFIG to restrict native and nativesdk builds to
linguistonly.

> +
>  SRCREV = "a6ed9b418d1b4464f088b378e5bdb96ec420db6c"
> +
> +BBCLASSEXTEND = "native nativesdk"
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

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

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

  reply	other threads:[~2015-08-24 12:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24  9:13 [meta-qt5][PATCH 00/11] upstreaming Qt for Device Creation changes Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 01/11] qt5: make populate_sdk_qt5 reusable Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 02/11] qt5: improve Qt module package handling Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 03/11] qt5: improve support for native and nativesdk modules Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 04/11] qt5: add host paths to qt.conf Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 05/11] qt5: disable debian auto renaming Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 06/11] qt5: make qt5.inc reusable qt5-module.bbclass Samuli Piippo
2015-08-24 12:45   ` Martin Jansa
2015-08-25  7:20     ` Samuli Piippo
2015-10-14 12:47       ` Samuli Piippo
2015-10-14 12:50       ` Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 07/11] qttools: use one recipe for all compilations Samuli Piippo
2015-08-24 12:46   ` Martin Jansa [this message]
2015-08-24  9:13 ` [meta-qt5][PATCH 08/11] qtbase: remove dependency to sqlite Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 09/11] qtbase: PACKAGECONFIGs for libproxy and libinput Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 10/11] qtlocation: use correct dependencies Samuli Piippo
2015-08-24  9:13 ` [meta-qt5][PATCH 11/11] qtwebengine: fix problem with recursive qmake call Samuli Piippo
2015-08-24 12:42 ` [meta-qt5][PATCH 00/11] upstreaming Qt for Device Creation changes Martin Jansa

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=20150824124628.GF2446@jama \
    --to=martin.jansa@gmail.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