build/meson: fix gir dependency with building without fake-typelibs

This commit is contained in:
Thomas Haller 2018-01-10 09:06:52 +01:00
parent 2ad6976cd4
commit 32e989b5a7

View file

@ -2,13 +2,7 @@ libnm_inc = include_directories('.')
sources = files('nm-libnm-utils.c')
if have_fake_typelibs
subdir('fake-typelib')
endif
deps = [
# FIXME: this makes GIR mandatory?
gir_dep,
libnmdbus_dep,
shared_dep
]
@ -19,6 +13,11 @@ cflags = [
'-DNMRUNDIR="@0@"'.format(nm_pkgrundir)
]
if have_fake_typelibs
deps += [ gir_dep ]
subdir('fake-typelib')
endif
libnm_utils = static_library(
'nm-utils',
sources: sources,