From: Jack Mitchell Date: Thu, 9 Jun 2022 14:17:32 +0000 (+0100) Subject: meson.bbclass: add cython binary to cross/native toolchain config X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3886 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1dcb1eb69032c30f5a8faf4d7120fc6c4ecd051;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git meson.bbclass: add cython binary to cross/native toolchain config This allows building Cython based Python modules with the native meson support which has been present since meson version 0.59. https://mesonbuild.com/Cython.html Signed-off-by: Jack Mitchell Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass index b265e6659fe..546cd0476f3 100644 --- a/meta/classes/meson.bbclass +++ b/meta/classes/meson.bbclass @@ -59,6 +59,7 @@ do_write_config() { [binaries] c = ${@meson_array('CC', d)} cpp = ${@meson_array('CXX', d)} +cython = 'cython3' ar = ${@meson_array('AR', d)} nm = ${@meson_array('NM', d)} strip = ${@meson_array('STRIP', d)} @@ -98,6 +99,7 @@ EOF [binaries] c = ${@meson_array('BUILD_CC', d)} cpp = ${@meson_array('BUILD_CXX', d)} +cython = 'cython3' ar = ${@meson_array('BUILD_AR', d)} nm = ${@meson_array('BUILD_NM', d)} strip = ${@meson_array('BUILD_STRIP', d)}