trivial: Allow building GCab from a subpackage

This commit is contained in:
Richard Hughes 2019-11-22 09:37:13 +00:00
parent 7d82a09808
commit ec73f86a79
3 changed files with 6 additions and 1 deletions

View File

@ -207,7 +207,7 @@ if get_option('gpg')
conf.set('ENABLE_GPG', '1')
endif
libm = cc.find_library('m', required: false)
libgcab = dependency('libgcab-1.0')
libgcab = dependency('libgcab-1.0', fallback : ['gcab', 'gcab_dep'])
if libgcab.version().version_compare('>= 0.8')
conf.set('HAVE_GCAB_0_8', '1')
endif

View File

@ -1,3 +1,4 @@
gusb
gcab
flashrom
libxmlb

4
subprojects/gcab.wrap Normal file
View File

@ -0,0 +1,4 @@
[wrap-git]
directory = gcab
url = https://gitlab.gnome.org/GNOME/gcab.git
revision = b55268ac1020cd6c033acb52f2e6ae984bf5c9fd