mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 21:23:04 +01:00
meson.bbclass: allow buildtype to be changed
Some upstream projects are employing the buildtype parameter so users can create, say, "production" versus "debug" builds. Therefore create a configurable parameter so recipes/users can tweak it. (From OE-Core rev: 5b12211ef7856bedafd356f6b7a03add46eca6c7) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
580e45c763
commit
dd18244afa
@@ -12,8 +12,9 @@ MESON_SOURCEPATH = "${S}"
|
||||
def noprefix(var, d):
|
||||
return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
|
||||
|
||||
MESON_BUILDTYPE ?= "plain"
|
||||
MESONOPTS = " --prefix ${prefix} \
|
||||
--buildtype plain \
|
||||
--buildtype ${MESON_BUILDTYPE} \
|
||||
--bindir ${@noprefix('bindir', d)} \
|
||||
--sbindir ${@noprefix('sbindir', d)} \
|
||||
--datadir ${@noprefix('datadir', d)} \
|
||||
|
||||
Reference in New Issue
Block a user