diff options
| author | Vyacheslav Yurkov <uvv.mail@gmail.com> | 2025-02-04 11:53:14 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-11 11:44:19 +0000 |
| commit | c30f3ec853d064454895f1b8cf599d54457927ca (patch) | |
| tree | e6c2d15aecba3e26739aa3a280aee18340b8c0d8 | |
| parent | c0329693b16073b2195bb0493c788b2069cc0396 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/classes-recipe/meson.bbclass | 8 |
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. |
| 23 | MESON_TARGET ?= "" | 23 | MESON_TARGET ?= "" |
| 24 | 24 | ||
| 25 | # Since 0.60.0 you can specify custom tags to install | ||
| 26 | MESON_INSTALL_TAGS ?= "" | ||
| 27 | |||
| 25 | def noprefix(var, d): | 28 | def 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 | ||
| 184 | meson_do_install() { | 187 | meson_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 | ||
| 188 | EXPORT_FUNCTIONS do_configure do_compile do_install | 194 | EXPORT_FUNCTIONS do_configure do_compile do_install |
