summaryrefslogtreecommitdiff
path: root/libnm-core/meson.build
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-01-07 15:39:42 +0100
committerThomas Haller <thaller@redhat.com>2018-01-10 12:20:17 +0100
commit5e16bcf268b0a88764c06ecdb0d694cff560d201 (patch)
tree53adb3607e52fc64e0fbaa821c145f00ad6a8dbd /libnm-core/meson.build
parent96658d2fd11410b01d11ace62a89899dd7958ee4 (diff)
meson: Improve dependency system
Some targets are missing dependencies on some generated sources in the meson port. These makes the build to fail due to missing source files on a highly parallelized build. These dependencies have been resolved by taking advantage of meson's internal dependencies which can be used to pass source files, include directories, libraries and compiler flags. One of such internal dependencies called `core_dep` was already in use. However, in order to avoid any confusion with another new internal dependency called `nm_core_dep`, which is used to include directories and source files from the `libnm-core` directory, the `core_dep` dependency has been renamed to `nm_dep`. These changes have allowed minimizing the build details which are inherited by using those dependencies. The parallelized build has also been improved.
Diffstat (limited to 'libnm-core/meson.build')
-rw-r--r--libnm-core/meson.build14
1 files changed, 7 insertions, 7 deletions
diff --git a/libnm-core/meson.build b/libnm-core/meson.build
index 4772df557..946ffb18f 100644
--- a/libnm-core/meson.build
+++ b/libnm-core/meson.build
@@ -127,16 +127,11 @@ libnm_core_enum = gnome.mkenums(
install_dir: libnm_pkgincludedir
)
-incs = [
- top_inc,
- shared_inc
-]
-
deps = [
crypto_dep,
dl_dep,
- glib_dep,
libudev_dep,
+ shared_dep,
uuid_dep
]
@@ -158,11 +153,16 @@ endif
libnm_core = static_library(
'nm-core',
sources: libnm_core_sources + libnm_core_enum + shared_sources + [version_header],
- include_directories: incs,
dependencies: deps,
c_args: cflags
)
+nm_core_dep = declare_dependency(
+ sources: libnm_core_enum[1],
+ include_directories: libnm_core_inc,
+ dependencies: shared_dep
+)
+
enums_to_docbook = join_paths(meson.source_root(), 'tools', 'enums-to-docbook.pl')
docbooks = [