From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Cc: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/9] meson: add a recipe and class from meta-oe
Date: Thu, 7 Dec 2017 15:06:08 +0000 [thread overview]
Message-ID: <b3867bfb39444851865a5d7db3046e55@XBOX02.axis.com> (raw)
In-Reply-To: <9f035d6ed0e27ff91e41b67dab0ae852e96c8232.1510920094.git.alexander.kanavin@linux.intel.com>
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Alexander Kanavin
> Sent: den 17 november 2017 13:03
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH 1/9] meson: add a recipe and class from meta-oe
>
> The original recipe has been provided and improved by:
>
> Ross Burton <ross.burton@intel.com>
> Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
> Adam C. Foltzer <acfoltzer@galois.com>
> Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Linus Svensson <linussn@axis.com>
>
> I have added patches to fix up gtk-doc and
> gobject-introspection in cross-compilation environments,
> and also change the order of linker arguments to replicate
> autotools more closely (and fix linking errors in some corner
> cases).
>
> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
> ---
> meta/classes/meson.bbclass | 107 +++++++++++++++++++
> ...s-move-cross_args-in-front-of-output_args.patch | 30 ++++++
> ...ix-issues-that-arise-when-cross-compiling.patch | 113 +++++++++++++++++++++
> ...rospection-determine-g-ir-scanner-and-g-i.patch | 41 ++++++++
> meta/recipes-devtools/meson/meson_0.43.0.bb | 20 ++++
> 5 files changed, 311 insertions(+)
> create mode 100644 meta/classes/meson.bbclass
> create mode 100644 meta/recipes-devtools/meson/meson/0001-Linker-rules-move-cross_args-in-front-of-output_args.patch
> create mode 100644 meta/recipes-devtools/meson/meson/0001-gtkdoc-fix-issues-that-arise-when-cross-compiling.patch
> create mode 100644 meta/recipes-devtools/meson/meson/0002-gobject-introspection-determine-g-ir-scanner-and-g-i.patch
> create mode 100644 meta/recipes-devtools/meson/meson_0.43.0.bb
>
> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
> new file mode 100644
> index 00000000000..64553cd8f3d
> --- /dev/null
> +++ b/meta/classes/meson.bbclass
> @@ -0,0 +1,107 @@
> +inherit python3native
> +
> +DEPENDS_append = " meson-native ninja-native"
> +
> +# As Meson enforces out-of-tree builds we can just use cleandirs
> +B = "${WORKDIR}/build"
> +do_configure[cleandirs] = "${B}"
> +
> +# Where the meson.build build configuration is
> +MESON_SOURCEPATH = "${S}"
> +
> +# These variables in the environment override meson's *native* tools settings.
> +# We have to unset them, so that meson doesn't pick up the cross tools and
> +# use them for native builds.
> +unset CC
> +unset CXX
> +unset AR
> +
> +def noprefix(var, d):
> + return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)
Remove the True argument to d.getVar().
> +
> +MESONOPTS = " --prefix ${prefix} \
> + --bindir ${@noprefix('bindir', d)} \
> + --sbindir ${@noprefix('sbindir', d)} \
> + --datadir ${@noprefix('datadir', d)} \
> + --libdir ${@noprefix('libdir', d)} \
> + --libexecdir ${@noprefix('libexecdir', d)} \
> + --includedir ${@noprefix('includedir', d)} \
> + --mandir ${@noprefix('mandir', d)} \
> + --infodir ${@noprefix('infodir', d)} \
> + --sysconfdir ${sysconfdir} \
> + --localstatedir ${localstatedir} \
> + --sharedstatedir ${sharedstatedir}"
> +
> +MESON_C_ARGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS}"
> +MESON_LINK_ARGS = "${MESON_C_ARGS} ${LDFLAGS}"
> +
> +MESON_HOST_ENDIAN = "${@bb.utils.contains('SITEINFO_ENDIANNESS', 'be','big', 'little', d)}"
> +MESON_TARGET_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'big', 'little', d)}"
> +
> +EXTRA_OEMESON += "${PACKAGECONFIG_CONFARGS}"
> +
> +MESON_CROSS_FILE = ""
> +MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross"
> +
> +def meson_array(var, d):
> + return "', '".join(d.getVar(var, True).split()).join(("'", "'"))
Remove True here as well.
//Peter
next prev parent reply other threads:[~2017-12-07 15:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-17 12:02 [PATCH 0/9] Introduce meson build system Alexander Kanavin
2017-11-17 12:02 ` [PATCH 1/9] meson: add a recipe and class from meta-oe Alexander Kanavin
2017-12-07 15:06 ` Peter Kjellerstedt [this message]
2017-12-15 14:57 ` Alexander Kanavin
2017-12-07 19:27 ` Andre McCurdy
2017-12-15 15:04 ` Alexander Kanavin
2017-12-15 15:29 ` André Draszik
2017-12-15 16:01 ` Linus Svensson
2017-12-15 16:13 ` Alexander Kanavin
2017-11-17 12:02 ` [PATCH 2/9] gnomebase.bbclass: split into autotools and meson versions Alexander Kanavin
2017-11-17 12:02 ` [PATCH 3/9] json-glib: convert to meson build Alexander Kanavin
2017-11-17 12:02 ` [PATCH 4/9] libepoxy: " Alexander Kanavin
2017-11-17 12:02 ` [PATCH 5/9] libinput: " Alexander Kanavin
2017-11-17 12:02 ` [PATCH 6/9] sysprof: " Alexander Kanavin
2017-11-17 12:02 ` [PATCH 7/9] gst-player: Upgrade, rename to gst-examples Alexander Kanavin
2017-11-17 12:02 ` [PATCH 8/9] meson: Port pkgconfig-native patch to 0.43.0 Alexander Kanavin
2017-11-17 12:02 ` [PATCH 9/9] meson: export native env only for native build Alexander Kanavin
-- strict thread matches above, loose matches on Subject: below --
2017-12-21 13:04 [PATCH 1/9] meson: add a recipe and class from meta-oe Alexander Kanavin
2018-01-04 13:12 Alexander Kanavin
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=b3867bfb39444851865a5d7db3046e55@XBOX02.axis.com \
--to=peter.kjellerstedt@axis.com \
--cc=alexander.kanavin@linux.intel.com \
--cc=openembedded-core@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