summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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