mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 04:23:21 +00:00
trivial: Do not show a warning when building the libfwupdplugin introspection
If new enough add Xmlb into the libfwupdplugin GIR includes.
This commit is contained in:
parent
b5a1d65448
commit
d1bf0f439b
@ -176,10 +176,16 @@ fwupdplugin_pkgg.generate(
|
|||||||
|
|
||||||
if get_option('introspection') and get_option('gusb')
|
if get_option('introspection') and get_option('gusb')
|
||||||
gir_dep = declare_dependency(sources: fwupd_gir)
|
gir_dep = declare_dependency(sources: fwupd_gir)
|
||||||
|
girtargets = []
|
||||||
if gusb.type_name() == 'internal'
|
if gusb.type_name() == 'internal'
|
||||||
libgusb_girtarget = subproject('gusb').get_variable('libgusb_girtarget')[0]
|
girtargets += subproject('gusb').get_variable('libgusb_girtarget')[0]
|
||||||
else
|
else
|
||||||
libgusb_girtarget = 'GUsb-1.0'
|
girtargets += 'GUsb-1.0'
|
||||||
|
endif
|
||||||
|
if libxmlb.type_name() == 'internal'
|
||||||
|
girtargets += subproject('libxmlb').get_variable('gir')[0]
|
||||||
|
elif libxmlb.version().version_compare ('>= 0.3.2')
|
||||||
|
girtargets += 'Xmlb-2.0'
|
||||||
endif
|
endif
|
||||||
fwupdplugin_gir = gnome.generate_gir(fwupd,
|
fwupdplugin_gir = gnome.generate_gir(fwupd,
|
||||||
sources : [
|
sources : [
|
||||||
@ -206,7 +212,7 @@ if get_option('introspection') and get_option('gusb')
|
|||||||
includes : [
|
includes : [
|
||||||
'Gio-2.0',
|
'Gio-2.0',
|
||||||
'GObject-2.0',
|
'GObject-2.0',
|
||||||
libgusb_girtarget,
|
girtargets,
|
||||||
fwupd_gir[0],
|
fwupd_gir[0],
|
||||||
],
|
],
|
||||||
install : true
|
install : true
|
||||||
|
Loading…
Reference in New Issue
Block a user