summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-01-10 09:06:52 +0100
committerThomas Haller <thaller@redhat.com>2018-01-10 12:30:48 +0100
commit32e989b5a77ebb7c4529bca1a71dd6e322a6ccf3 (patch)
treeca5ac1c7d66f1e793c8c60b387a5ced07fda885f
parent2ad6976cd48497a9fdbf3cd7c22f0ca6c5310995 (diff)
downloadNetworkManager-32e989b5a77ebb7c4529bca1a71dd6e322a6ccf3.tar.gz
build/meson: fix gir dependency with building without fake-typelibs
-rw-r--r--libnm/meson.build11
1 files changed, 5 insertions, 6 deletions
diff --git a/libnm/meson.build b/libnm/meson.build
index ea1445f906..d40ef91173 100644
--- a/libnm/meson.build
+++ b/libnm/meson.build
@@ -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,