[PATCH 1/2] meson.bbclass: add exe_wrapper helper

Jose Quaresma

commit 40349dc51f097f75b486d81924753dee06baf017
meson: configure and use generic exe_wrapper
add a generic exe_wrapper that can be used to run
the existing tests in some meson projects using
the native meson test.

The tests will run on the qemu usermode and because of that
it has some limitations.
The ideia of this help script is to handle such cases before
the qemu usermode was launched.

Signed-off-by: Jose Quaresma <quaresma.jose@...>
meta/classes/meson.bbclass | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 0bfe945811..8c732e6174 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -114,6 +114,8 @@ cpp_link_args = ${@meson_array('BUILD_LDFLAGS', d)}

do_write_config:append:class-target() {
# Write out a qemu wrapper that will be used as exe_wrapper so that meson
# can run target helper binaries through that.
@@ -127,6 +129,9 @@ export GIO_MODULE_DIR=${STAGING_LIBDIR}/gio/modules-dummy
# meson sets this wrongly (only to libs in build-dir), qemu_wrapper_cmdline() and GIR_EXTRA_LIBS_PATH take care of it properly

+# import any customization provided in the helper
$qemu_binary "\$@"
chmod +x ${WORKDIR}/meson-qemuwrapper

Join {openembedded-core@lists.openembedded.org to automatically receive all group messages.