aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2021-11-11 17:03:23 +0100
committerKhem Raj <raj.khem@gmail.com>2021-11-11 08:31:56 -0800
commit8e816f6fd17ae4142e67b2224ef88dae97435a1c (patch)
tree0164cc8ee3c398429b9ca48cca3ca6f816bac1d9
parent799dc735f830a656b0a04308d878cb8a147ef0be (diff)
downloadmeta-openembedded-8e816f6fd17ae4142e67b2224ef88dae97435a1c.tar.gz
libgusb: add PACKAGECONFIG for vapi and keep it enabled only when introspection is
* vapi depends on introspection being enabled and libgusb build was failing without introspection with: | ../git/gusb/meson.build:182:6: ERROR: Unknown variable "libgusb_girtarget". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/libgusb/libgusb_0.3.8.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libgusb/libgusb_0.3.8.bb b/meta-oe/recipes-support/libgusb/libgusb_0.3.8.bb
index 7020ced72..51e734904 100644
--- a/meta-oe/recipes-support/libgusb/libgusb_0.3.8.bb
+++ b/meta-oe/recipes-support/libgusb/libgusb_0.3.8.bb
@@ -6,6 +6,9 @@ DEPENDS = "glib-2.0 libusb"
inherit meson gobject-introspection gtk-doc gettext vala
+PACKAGECONFIG ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)}"
+PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false"
+
SRC_URI = "git://github.com/hughsie/libgusb.git;branch=main;protocol=https"
SRCREV = "db9edbd8b45662d551194a0985173732f8f557a5"
S = "${WORKDIR}/git"