summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorVyacheslav Yurkov <uvv.mail@gmail.com>2025-02-04 11:53:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-11 11:44:19 +0000
commitc30f3ec853d064454895f1b8cf599d54457927ca (patch)
treee6c2d15aecba3e26739aa3a280aee18340b8c0d8 /meta
parentc0329693b16073b2195bb0493c788b2069cc0396 (diff)
downloadpoky-c30f3ec853d064454895f1b8cf599d54457927ca.tar.gz
meson.bbclass: Add an option to specify install tags
The feature is available since meson 0.60.0. You can specify comma-separated list of install tags (not targets). (From OE-Core rev: a61ec67cb6f240c7593c9dd1b9a1ef5fff87c855) Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-recipe/meson.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index b343480f9a..cbfc45b94b 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -22,6 +22,9 @@ MESON_SOURCEPATH = "${S}"
22# The target to build in do_compile. If unset the default targets are built. 22# The target to build in do_compile. If unset the default targets are built.
23MESON_TARGET ?= "" 23MESON_TARGET ?= ""
24 24
25# Since 0.60.0 you can specify custom tags to install
26MESON_INSTALL_TAGS ?= ""
27
25def noprefix(var, d): 28def noprefix(var, d):
26 return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1) 29 return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
27 30
@@ -182,7 +185,10 @@ meson_do_compile() {
182} 185}
183 186
184meson_do_install() { 187meson_do_install() {
185 meson install --destdir ${D} --no-rebuild 188 if [ "x${MESON_INSTALL_TAGS}" != "x" ] ; then
189 meson_install_tags="--tags ${MESON_INSTALL_TAGS}"
190 fi
191 meson install --destdir ${D} --no-rebuild $meson_install_tags
186} 192}
187 193
188EXPORT_FUNCTIONS do_configure do_compile do_install 194EXPORT_FUNCTIONS do_configure do_compile do_install