summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2019-09-07 23:00:41 +0200
committerThomas Haller <thaller@redhat.com>2019-10-01 09:49:33 +0200
commit70a34c54fef0ec2bde4ad27ac751f8efd8e3c13e (patch)
tree588bdceb7e8eb57dd12a5529774c330ac929f390 /examples
parentc74e428342c0219bb54d6cffe24bd0423bcda532 (diff)
downloadNetworkManager-70a34c54fef0ec2bde4ad27ac751f8efd8e3c13e.tar.gz
meson: Use dependency for nm-default header
The `nm-default.h` header is used widely in the code by many targets. This header includes different headers and needs different libraries depending the compilation flags. A new set of `*nm_default_dep` dependencies have been created to ease the inclusion of different directorires and libraries. This allows cleaner build files and avoiding linking unnecessary libraries so this has been applied allowing the removal of some dependencies involving the linking of unnecessary libraries.
Diffstat (limited to 'examples')
-rw-r--r--examples/C/glib/meson.build10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/C/glib/meson.build b/examples/C/glib/meson.build
index 47d64bddf9..1735581283 100644
--- a/examples/C/glib/meson.build
+++ b/examples/C/glib/meson.build
@@ -1,10 +1,10 @@
examples = [
- ['add-connection-gdbus', [libnm_enum[1]], [libnm_inc], [uuid_dep]],
- ['add-connection-libnm', [], [], [libnm_dep]],
- ['get-active-connections-gdbus', [libnm_enum[1]], [libnm_inc], []],
- ['get-ap-info-libnm', [], [], [libnm_dep]],
+ ['add-connection-gdbus', [libnm_enum[1], nm_version_macro_header], [libnm_inc, shared_inc], [uuid_dep]],
+ ['add-connection-libnm', [nm_version_macro_header], [shared_inc], [libnm_dep]],
+ ['get-active-connections-gdbus', [libnm_enum[1], nm_version_macro_header], [libnm_inc, shared_inc], []],
+ ['get-ap-info-libnm', [nm_version_macro_header], [shared_inc], [libnm_dep]],
['list-connections-gdbus', [], [], []],
- ['list-connections-libnm', [], [], [libnm_dep]],
+ ['list-connections-libnm', [nm_version_macro_header], [shared_inc], [libnm_dep]],
['monitor-nm-running-gdbus', [], [], []],
['monitor-nm-state-gdbus', [], [], []],
]