mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
c0329693b1
commit
c30f3ec853
|
@ -22,6 +22,9 @@ MESON_SOURCEPATH = "${S}"
|
|||
# The target to build in do_compile. If unset the default targets are built.
|
||||
MESON_TARGET ?= ""
|
||||
|
||||
# Since 0.60.0 you can specify custom tags to install
|
||||
MESON_INSTALL_TAGS ?= ""
|
||||
|
||||
def noprefix(var, d):
|
||||
return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
|
||||
|
||||
|
@ -182,7 +185,10 @@ meson_do_compile() {
|
|||
}
|
||||
|
||||
meson_do_install() {
|
||||
meson install --destdir ${D} --no-rebuild
|
||||
if [ "x${MESON_INSTALL_TAGS}" != "x" ] ; then
|
||||
meson_install_tags="--tags ${MESON_INSTALL_TAGS}"
|
||||
fi
|
||||
meson install --destdir ${D} --no-rebuild $meson_install_tags
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS do_configure do_compile do_install
|
||||
|
|
Loading…
Reference in New Issue
Block a user