Skip to content

Commit

Permalink
libgusb: add PACKAGECONFIG for vapi and keep it enabled only when int…
Browse files Browse the repository at this point in the history
…rospection 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>
  • Loading branch information
shr-project authored and kraj committed Nov 11, 2021
1 parent 799dc73 commit 8e816f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta-oe/recipes-support/libgusb/libgusb_0.3.8.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8e816f6

Please sign in to comment.