summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Mitchell <ml@embed.me.uk>2022-06-09 15:17:32 +0100
committerSteve Sakoman <steve@sakoman.com>2022-06-15 04:33:06 -1000
commit3beb0f1d44b52e27adf9687d0240883bd9066db5 (patch)
tree2ea988052b7dd895c47fca2444640c1c3e2a7562
parent5e6f4d0d3d314897b8ab2f45b3a78b0da9df99ab (diff)
downloadopenembedded-core-3beb0f1d44b52e27adf9687d0240883bd9066db5.tar.gz
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 <ml@embed.me.uk> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b1dcb1eb69032c30f5a8faf4d7120fc6c4ecd051) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/meson.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 0bfe945811..19b54e0fdc 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)}