diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-11-11 17:03:23 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-11-11 08:31:56 -0800 |
commit | 8e816f6fd17ae4142e67b2224ef88dae97435a1c (patch) | |
tree | 0164cc8ee3c398429b9ca48cca3ca6f816bac1d9 /meta-oe/recipes-support | |
parent | 799dc735f830a656b0a04308d878cb8a147ef0be (diff) | |
download | meta-openembedded-contrib-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>
Diffstat (limited to 'meta-oe/recipes-support')
-rw-r--r-- | meta-oe/recipes-support/libgusb/libgusb_0.3.8.bb | 3 |
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 7020ced72c9..51e7349043d 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" |