diff options
author | Thomas Haller <thaller@redhat.com> | 2019-03-17 12:12:30 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-03-25 09:12:32 +0100 |
commit | d0f1e68b3ef837140e8eafdb6c62069daf84fe57 (patch) | |
tree | 7e47b1c6035655466766bc7f3db99b9046147416 /clients | |
parent | aaaccfd26461b42a61cbc4852af5df2f770ecdaa (diff) | |
download | NetworkManager-d0f1e68b3ef837140e8eafdb6c62069daf84fe57.tar.gz |
shared: add "shared/nm-libnm-core-utils.h" utils
We have code in "shared/nm-utils" which are general purpose
helpers, independent of "libnm", "libnm-core", "clients" and "src".
We have shared code like "shared/nm-ethtool-utils.h" and
"shared/nm-meta-setting.h", which is statically linked, shared
code that contains libnm related helpers. But these helpers already
have a specific use (e.g. they are related to ethtool or NMSetting
metadata).
Add a general purpose helper that:
- depends (and extends) libnm-core
- contains unrelated helpers
- can be shared (meaning it will be statically linked).
- this code can be used by any library user of "libnm.so"
(nmcli, nm-applet) and by "libnm-core" itself. Thus, "src/"
and "libnm/" may also use this code indirectly, via "libnm-core/".
Diffstat (limited to 'clients')
-rw-r--r-- | clients/common/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/common/meson.build b/clients/common/meson.build index b4b6bcacd3..c137d4463e 100644 --- a/clients/common/meson.build +++ b/clients/common/meson.build @@ -55,7 +55,7 @@ libnmc = static_library( sources: files( 'nm-meta-setting-access.c', 'nm-meta-setting-desc.c', - ) + shared_nm_meta_setting_c + shared_nm_ethtool_utils_c + [settings_docs_source], + ) + shared_nm_meta_setting_c + shared_nm_ethtool_utils_c + shared_nm_libnm_core_utils_c + [settings_docs_source], dependencies: deps, c_args: cflags, link_with: libnmc_base, |