Add a variable XORGBUILDCLASS to control which builder class is used.

Defaults to autotools for no change, but this lets recipes switch to
Meson if they can.

Signed-off-by: Ross Burton <[email protected]>
---
 meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc 
b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
index 25697e8471b..a32e47f63b4 100644
--- a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
+++ b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
@@ -12,10 +12,12 @@ SRC_URI = 
"${XORG_MIRROR}/individual/lib/${XORG_PN}-${PV}.${XORG_EXT}"
 
 S = "${UNPACKDIR}/${XORG_PN}-${PV}"
 
-inherit autotools features_check pkgconfig
+XORGBUILDCLASS ??= "autotools"
+inherit_defer ${XORGBUILDCLASS}
+
+inherit features_check pkgconfig
 
 EXTRA_OECONF = "--disable-docs --disable-specs"
-
 UNKNOWN_CONFIGURE_OPT_IGNORE += "--disable-docs --disable-specs"
 
 REQUIRED_DISTRO_FEATURES ?= "x11"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#241702): 
https://lists.openembedded.org/g/openembedded-core/message/241702
Mute This Topic: https://lists.openembedded.org/mt/120396150/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to