@@ -28,8 +28,7 @@ MESON_INSTALL_TAGS ?= ""
def noprefix(var, d):
return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
-MESON_BUILDTYPE ?= "${@oe.utils.vartrue('DEBUG_BUILD', 'debug', 'plain', d)}"
-MESON_BUILDTYPE[vardeps] += "DEBUG_BUILD"
+MESON_BUILDTYPE ??= "plain"
MESONOPTS = " --prefix ${prefix} \
--buildtype ${MESON_BUILDTYPE} \
--bindir ${@noprefix('bindir', d)} \
@@ -35,6 +35,9 @@ BUILD_OPTIMIZATION:append:mipsel:pn-python3-lxml = " -O"
INHIBIT_SYSROOT_STRIP:class-cross ?= "1"
INHIBIT_SYSROOT_STRIP:class-native ?= "1"
+# For meson.bbclass
+MESON_BUILDTYPE ?= "debug"
+
CPPFLAGS:append:arm::pn-lttng-ust = " -DUATOMIC_NO_LINK_ERROR"
EXTRA_OECMAKE:remove:pn-webkitgtk = "-DWEBKIT_NO_INLINE_HINTS=OFF"
The debug_build_tune.inc is used to collect debug tuning configuration, override MESON_BUILDTYPE for meson.bbclass when DEBUG_BUILD is enabled Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> --- meta/classes-recipe/meson.bbclass | 3 +-- meta/conf/distro/include/debug_build_tune.inc | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-)