2020-12-23 22:21:36 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2020-01-14 10:42:24 +01:00
|
|
|
|
build/meson: fix meson build for shared files
The files in shared/nm-utils are not compiled as one static library,
instead each subproject that needs (parts of) them, re-compiles the
files individually.
The major reason for that is, because we might have different compile
flags, depending on whether we build libnm-core or
libnm-util/libnm-glib. Actually, I think that is not really the case,
and maybe this should be refactored, to indeed build them all as a
static library first.
Anyway, libnm-util, libnm-glib, clients' common lib, they all need a
different set of shared files that they should compile. Refactor
"shared/meson.build" to account for that and handle it like autotools
does.
Another change is, that "shared_c_siphash_dep" no longer advertises
"include_directories: include_directories('c-siphash/src')". We don't
put c-siphash.h into the include search path. Users who need it, should
include it via "#include <c-siphash/src/c-siphash.h>". The only exception
is when building shared_n_acd library, which is not under our control.
2018-05-30 15:16:01 +02:00
|
|
|
shared_inc = include_directories('.')
|
2018-04-06 17:04:31 +02:00
|
|
|
|
2021-01-27 16:27:11 +01:00
|
|
|
glib_nm_default_dep = declare_dependency(
|
|
|
|
|
include_directories: [
|
|
|
|
|
top_inc,
|
|
|
|
|
shared_inc,
|
|
|
|
|
],
|
|
|
|
|
dependencies: [
|
|
|
|
|
glib_dep,
|
|
|
|
|
],
|
|
|
|
|
)
|
2019-09-07 23:00:41 +02:00
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libc_siphash = static_library(
|
|
|
|
|
'c-siphash',
|
|
|
|
|
sources: 'c-siphash/src/c-siphash.c',
|
|
|
|
|
include_directories: include_directories('c-stdaux/src'),
|
|
|
|
|
)
|
2019-04-15 08:16:00 +02:00
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libc_rbtree = static_library(
|
|
|
|
|
'c-rbtree',
|
|
|
|
|
sources: 'c-rbtree/src/c-rbtree.c',
|
|
|
|
|
include_directories: include_directories('c-stdaux/src'),
|
|
|
|
|
c_args: '-std=c11',
|
2019-04-14 12:00:29 +02:00
|
|
|
)
|
|
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
if enable_ebpf
|
2021-01-27 16:27:11 +01:00
|
|
|
n_acd_bpf_source = 'n-acd/src/n-acd-bpf.c'
|
2019-09-03 09:48:59 +02:00
|
|
|
else
|
2021-01-27 16:27:11 +01:00
|
|
|
n_acd_bpf_source = 'n-acd/src/n-acd-bpf-fallback.c'
|
2019-09-03 09:48:59 +02:00
|
|
|
endif
|
2019-04-15 08:16:00 +02:00
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libn_acd = static_library(
|
|
|
|
|
'n-acd',
|
2021-01-27 16:27:11 +01:00
|
|
|
sources: files(
|
|
|
|
|
'n-acd/src/n-acd.c',
|
|
|
|
|
'n-acd/src/n-acd-probe.c',
|
|
|
|
|
'n-acd/src/util/timer.c',
|
|
|
|
|
n_acd_bpf_source,
|
|
|
|
|
),
|
|
|
|
|
include_directories: include_directories(
|
|
|
|
|
'c-list/src',
|
|
|
|
|
'c-rbtree/src',
|
|
|
|
|
'c-siphash/src',
|
|
|
|
|
'c-stdaux/src',
|
|
|
|
|
),
|
|
|
|
|
c_args: [
|
|
|
|
|
'-D_GNU_SOURCE',
|
|
|
|
|
'-DSO_ATTACH_BPF=50',
|
|
|
|
|
'-std=c11',
|
|
|
|
|
'-Wno-pointer-arith',
|
|
|
|
|
'-Wno-vla',
|
|
|
|
|
],
|
|
|
|
|
link_with: [
|
|
|
|
|
libc_rbtree,
|
|
|
|
|
libc_siphash,
|
|
|
|
|
],
|
2018-04-06 17:04:31 +02:00
|
|
|
)
|
|
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libn_acd_dep = declare_dependency(
|
|
|
|
|
include_directories: shared_inc,
|
|
|
|
|
link_with: libn_acd,
|
2018-09-04 10:50:40 +02:00
|
|
|
)
|
|
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libn_dhcp4 = static_library(
|
|
|
|
|
'n-dhcp4',
|
2021-01-27 16:27:11 +01:00
|
|
|
sources: files(
|
|
|
|
|
'n-dhcp4/src/n-dhcp4-c-connection.c',
|
|
|
|
|
'n-dhcp4/src/n-dhcp4-c-lease.c',
|
|
|
|
|
'n-dhcp4/src/n-dhcp4-client.c',
|
|
|
|
|
'n-dhcp4/src/n-dhcp4-c-probe.c',
|
|
|
|
|
'n-dhcp4/src/n-dhcp4-incoming.c',
|
|
|
|
|
'n-dhcp4/src/n-dhcp4-outgoing.c',
|
|
|
|
|
'n-dhcp4/src/n-dhcp4-socket.c',
|
|
|
|
|
'n-dhcp4/src/util/packet.c',
|
|
|
|
|
'n-dhcp4/src/util/socket.c',
|
|
|
|
|
),
|
|
|
|
|
c_args: [
|
|
|
|
|
'-D_GNU_SOURCE',
|
|
|
|
|
'-Wno-declaration-after-statement',
|
|
|
|
|
'-Wno-pointer-arith',
|
|
|
|
|
],
|
|
|
|
|
include_directories: include_directories(
|
|
|
|
|
'c-list/src',
|
|
|
|
|
'c-siphash/src',
|
|
|
|
|
'c-stdaux/src',
|
|
|
|
|
),
|
2019-09-03 09:48:59 +02:00
|
|
|
link_with: libc_siphash,
|
2018-04-06 17:04:31 +02:00
|
|
|
)
|
|
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libn_dhcp4_dep = declare_dependency(
|
|
|
|
|
include_directories: shared_inc,
|
|
|
|
|
link_with: libn_dhcp4,
|
2018-04-06 17:04:31 +02:00
|
|
|
)
|
|
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
nm_version_macro_header = configure_file(
|
|
|
|
|
input: 'nm-version-macros.h.in',
|
|
|
|
|
output: '@BASENAME@',
|
2019-11-21 15:27:21 +01:00
|
|
|
configuration: data_conf,
|
dhcp: add nettools dhcp4 client
This is inspired by the existing systemd integration, with a few differences:
* This parses the WPAD option, which systemd requested, but did not use.
* We hook into the DAD handling, only making use of the configured address
once DAD has completed successfully, and declining the lease if it fails.
There are still many areas of possible improvement. In particular, we need
to ensure the parsing of all options are compliant, as n-dhcp4 treats all
options as opaque, unlike sd-dhcp4. We probably also need to look at how
to handle failures and retries (in particular if we decline a lease).
We need to query the current MTU at client startu, as well as the hardware
broadcast address. Both these are provided by the kernel over netlink, so
it should simply be a matter of hooking that up with NM's netlink layer.
Contribution under LGPL2.0+, in addition to stated licenses.
2019-05-13 20:02:48 +02:00
|
|
|
)
|
|
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
nm_meta_setting_source = files('nm-meta-setting.c')
|
dhcp: add nettools dhcp4 client
This is inspired by the existing systemd integration, with a few differences:
* This parses the WPAD option, which systemd requested, but did not use.
* We hook into the DAD handling, only making use of the configured address
once DAD has completed successfully, and declining the lease if it fails.
There are still many areas of possible improvement. In particular, we need
to ensure the parsing of all options are compliant, as n-dhcp4 treats all
options as opaque, unlike sd-dhcp4. We probably also need to look at how
to handle failures and retries (in particular if we decline a lease).
We need to query the current MTU at client startu, as well as the hardware
broadcast address. Both these are provided by the kernel over netlink, so
it should simply be a matter of hooking that up with NM's netlink layer.
Contribution under LGPL2.0+, in addition to stated licenses.
2019-05-13 20:02:48 +02:00
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
nm_test_utils_impl_source = files('nm-test-utils-impl.c')
|
2017-11-25 11:39:06 +01:00
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
nm_vpn_plugin_utils_source = files('nm-utils/nm-vpn-plugin-utils.c')
|
2017-11-25 11:39:06 +01:00
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libnm_std_aux = static_library(
|
|
|
|
|
'nm-std-aux',
|
2020-07-05 10:16:54 +02:00
|
|
|
sources: [
|
|
|
|
|
'nm-std-aux/c-list-util.c',
|
|
|
|
|
'nm-std-aux/nm-std-utils.c',
|
|
|
|
|
],
|
|
|
|
|
include_directories: top_inc,
|
|
|
|
|
c_args: [
|
all: add "nm-std-aux/nm-default-std.h" as replacement for "nm-default.h"
autotools projects commonly should include "config.h" as first header.
Also, commonly we need more headers, like glib.h or our nm_auto macros.
Hence, almost all our sources should as first include "nm-default.h".
However, as we build different parts, "nm-default.h" gets controlled
by the NETWORKMANAGER_COMPILATION define which autotools/meson needs
to specify in the build options.
That is confusing.
One advantage of that was, that theoretically the same sources can
be built twice, with different behavior. However, we should avoid doing
that altogether and build static libraries (once) that we link multiple
times.
Another advantage was that if NETWORKMANAGER_COMPILATION is for example
set to build a DAEMON source, there is a check that we don't include
private headers from libnm-core. However, that should be better solved
by not having public, internal and private headers in the same
directory.
Instead, introduce different "nm-default-*.h" headers that don't require
special defines and behave in a consistent way. This way, we require
fewer CFLAGS and it's immediately clear by looking at the source alone
which headers are included. Also, you will be easier see when a wrong
nm-default-*.h header gets included.
Introduce the first replacement. The others will follow.
2021-02-04 07:34:17 +01:00
|
|
|
'-DG_LOG_DOMAIN="libnm"',
|
2020-07-05 10:16:54 +02:00
|
|
|
],
|
2019-09-03 09:48:59 +02:00
|
|
|
)
|
2017-11-25 11:39:06 +01:00
|
|
|
|
2021-01-27 16:55:04 +01:00
|
|
|
libnm_glib_aux = static_library(
|
|
|
|
|
'nm-glib-aux',
|
2021-01-27 16:27:11 +01:00
|
|
|
sources: files(
|
|
|
|
|
'nm-glib-aux/nm-dbus-aux.c',
|
|
|
|
|
'nm-glib-aux/nm-dedup-multi.c',
|
|
|
|
|
'nm-glib-aux/nm-enum-utils.c',
|
|
|
|
|
'nm-glib-aux/nm-errno.c',
|
|
|
|
|
'nm-glib-aux/nm-hash-utils.c',
|
|
|
|
|
'nm-glib-aux/nm-io-utils.c',
|
|
|
|
|
'nm-glib-aux/nm-json-aux.c',
|
|
|
|
|
'nm-glib-aux/nm-keyfile-aux.c',
|
|
|
|
|
'nm-glib-aux/nm-logging-base.c',
|
|
|
|
|
'nm-glib-aux/nm-random-utils.c',
|
|
|
|
|
'nm-glib-aux/nm-ref-string.c',
|
|
|
|
|
'nm-glib-aux/nm-secret-utils.c',
|
|
|
|
|
'nm-glib-aux/nm-shared-utils.c',
|
|
|
|
|
'nm-glib-aux/nm-time-utils.c',
|
|
|
|
|
),
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: glib_nm_default_dep,
|
2021-01-27 16:27:11 +01:00
|
|
|
c_args: [
|
|
|
|
|
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_LIB)',
|
|
|
|
|
],
|
|
|
|
|
link_with: [
|
|
|
|
|
libc_siphash,
|
|
|
|
|
libnm_std_aux,
|
|
|
|
|
],
|
2019-04-14 13:36:32 +02:00
|
|
|
)
|
|
|
|
|
|
2021-01-27 16:55:04 +01:00
|
|
|
libnm_glib_aux_dep = declare_dependency(
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: glib_nm_default_dep,
|
2021-01-27 16:55:04 +01:00
|
|
|
link_with: libnm_glib_aux,
|
2019-09-03 09:48:59 +02:00
|
|
|
)
|
2019-04-15 08:16:00 +02:00
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libnm_udev_aux = static_library(
|
|
|
|
|
'nm-udev-aux',
|
|
|
|
|
sources: 'nm-udev-aux/nm-udev-utils.c',
|
2019-12-06 13:40:39 +01:00
|
|
|
dependencies: [
|
|
|
|
|
glib_nm_default_dep,
|
|
|
|
|
libudev_dep,
|
|
|
|
|
],
|
2021-01-27 16:27:11 +01:00
|
|
|
c_args: [
|
|
|
|
|
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_LIB)',
|
|
|
|
|
],
|
2019-02-01 10:38:33 +01:00
|
|
|
)
|
|
|
|
|
|
2019-09-03 09:48:59 +02:00
|
|
|
libnm_udev_aux_dep = declare_dependency(
|
|
|
|
|
include_directories: shared_inc,
|
|
|
|
|
link_with: libnm_udev_aux,
|
2018-01-07 15:39:42 +01:00
|
|
|
)
|
2018-10-12 18:05:48 +02:00
|
|
|
|
2021-01-09 12:00:33 +01:00
|
|
|
libnm_base = static_library(
|
|
|
|
|
'nm-base',
|
|
|
|
|
sources: files(
|
|
|
|
|
'nm-base/nm-ethtool-base.c',
|
|
|
|
|
),
|
2021-01-27 16:55:04 +01:00
|
|
|
dependencies: libnm_glib_aux_dep,
|
2021-01-27 16:27:11 +01:00
|
|
|
c_args: [
|
|
|
|
|
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_LIB)',
|
|
|
|
|
],
|
2021-01-09 12:00:33 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
libnm_base_dep = declare_dependency(
|
|
|
|
|
include_directories: shared_inc,
|
2021-01-27 16:55:04 +01:00
|
|
|
dependencies: libnm_glib_aux_dep,
|
2021-01-09 12:00:33 +01:00
|
|
|
link_with: libnm_base,
|
|
|
|
|
)
|
|
|
|
|
|
2020-12-30 17:32:10 +01:00
|
|
|
libnm_log_core = static_library(
|
|
|
|
|
'nm-log-core',
|
|
|
|
|
sources: 'nm-log-core/nm-logging.c',
|
|
|
|
|
dependencies: [
|
|
|
|
|
glib_nm_default_dep,
|
|
|
|
|
libsystemd_dep,
|
|
|
|
|
],
|
|
|
|
|
c_args: [
|
|
|
|
|
'-DG_LOG_DOMAIN="NetworkManager"',
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_LIB)',
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
libnm_log_core_dep = declare_dependency(
|
|
|
|
|
include_directories: shared_inc,
|
|
|
|
|
dependencies: [
|
2021-01-27 16:55:04 +01:00
|
|
|
libnm_glib_aux_dep,
|
2020-12-30 17:32:10 +01:00
|
|
|
],
|
|
|
|
|
link_with: libnm_log_core,
|
|
|
|
|
)
|
|
|
|
|
|
2020-12-25 16:35:47 +01:00
|
|
|
libnm_platform = static_library(
|
|
|
|
|
'nm-platform',
|
|
|
|
|
sources: [
|
|
|
|
|
'nm-platform/nm-netlink.c',
|
2021-01-10 09:55:06 +01:00
|
|
|
'nm-platform/nm-platform-utils.c',
|
2020-12-25 17:54:46 +01:00
|
|
|
'nm-platform/nmp-netns.c',
|
2020-12-25 16:35:47 +01:00
|
|
|
],
|
|
|
|
|
dependencies: [
|
|
|
|
|
glib_nm_default_dep,
|
|
|
|
|
],
|
|
|
|
|
c_args: [
|
|
|
|
|
'-DG_LOG_DOMAIN="NetworkManager"',
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_LIB)',
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
libnm_platform_dep = declare_dependency(
|
|
|
|
|
include_directories: shared_inc,
|
|
|
|
|
dependencies: [
|
2021-01-27 16:55:04 +01:00
|
|
|
libnm_glib_aux_dep,
|
2020-12-25 16:35:47 +01:00
|
|
|
],
|
|
|
|
|
link_with: libnm_platform,
|
|
|
|
|
)
|
|
|
|
|
|
2018-12-28 18:11:16 +01:00
|
|
|
libnm_systemd_shared = static_library(
|
|
|
|
|
'nm-systemd-shared',
|
2021-01-27 16:27:11 +01:00
|
|
|
sources: files(
|
|
|
|
|
'systemd/nm-sd-utils-shared.c',
|
|
|
|
|
'systemd/src/basic/alloc-util.c',
|
|
|
|
|
'systemd/src/basic/env-file.c',
|
|
|
|
|
'systemd/src/basic/env-util.c',
|
|
|
|
|
'systemd/src/basic/escape.c',
|
|
|
|
|
'systemd/src/basic/ether-addr-util.c',
|
|
|
|
|
'systemd/src/basic/extract-word.c',
|
|
|
|
|
'systemd/src/basic/fd-util.c',
|
|
|
|
|
'systemd/src/basic/fileio.c',
|
|
|
|
|
'systemd/src/basic/format-util.c',
|
|
|
|
|
'systemd/src/basic/fs-util.c',
|
|
|
|
|
'systemd/src/basic/hash-funcs.c',
|
|
|
|
|
'systemd/src/basic/hashmap.c',
|
|
|
|
|
'systemd/src/basic/hexdecoct.c',
|
|
|
|
|
'systemd/src/basic/hostname-util.c',
|
|
|
|
|
'systemd/src/basic/in-addr-util.c',
|
|
|
|
|
'systemd/src/basic/io-util.c',
|
|
|
|
|
'systemd/src/basic/memory-util.c',
|
|
|
|
|
'systemd/src/basic/mempool.c',
|
|
|
|
|
'systemd/src/basic/parse-util.c',
|
|
|
|
|
'systemd/src/basic/path-util.c',
|
|
|
|
|
'systemd/src/basic/prioq.c',
|
|
|
|
|
'systemd/src/basic/process-util.c',
|
|
|
|
|
'systemd/src/basic/random-util.c',
|
|
|
|
|
'systemd/src/basic/ratelimit.c',
|
|
|
|
|
'systemd/src/basic/signal-util.c',
|
|
|
|
|
'systemd/src/basic/socket-util.c',
|
|
|
|
|
'systemd/src/basic/stat-util.c',
|
|
|
|
|
'systemd/src/basic/string-table.c',
|
|
|
|
|
'systemd/src/basic/string-util.c',
|
|
|
|
|
'systemd/src/basic/strv.c',
|
|
|
|
|
'systemd/src/basic/strxcpyx.c',
|
|
|
|
|
'systemd/src/basic/time-util.c',
|
|
|
|
|
'systemd/src/basic/tmpfile-util.c',
|
|
|
|
|
'systemd/src/basic/utf8.c',
|
|
|
|
|
'systemd/src/basic/util.c',
|
|
|
|
|
'systemd/src/shared/dns-domain.c',
|
|
|
|
|
'systemd/src/shared/web-util.c',
|
|
|
|
|
),
|
|
|
|
|
include_directories: include_directories(
|
|
|
|
|
'systemd/sd-adapt-shared',
|
|
|
|
|
'systemd/src/basic',
|
|
|
|
|
'systemd/src/shared',
|
|
|
|
|
),
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: glib_nm_default_dep,
|
2021-01-27 16:27:11 +01:00
|
|
|
c_args: [
|
|
|
|
|
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD_SHARED',
|
|
|
|
|
],
|
2018-12-28 18:11:16 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
libnm_systemd_shared_dep = declare_dependency(
|
2021-01-27 16:27:11 +01:00
|
|
|
include_directories: include_directories(
|
|
|
|
|
'systemd/sd-adapt-shared',
|
|
|
|
|
'systemd/src/basic',
|
|
|
|
|
'systemd/src/shared',
|
|
|
|
|
),
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: glib_dep,
|
2019-09-03 09:48:59 +02:00
|
|
|
link_with: libnm_systemd_shared,
|
2018-12-28 18:11:16 +01:00
|
|
|
)
|
2018-12-28 21:30:03 +01:00
|
|
|
|
|
|
|
|
libnm_systemd_logging_stub = static_library(
|
|
|
|
|
'nm-systemd-logging-stub',
|
2019-09-03 09:48:59 +02:00
|
|
|
sources: 'systemd/nm-logging-stub.c',
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: glib_nm_default_dep,
|
2021-01-27 16:27:11 +01:00
|
|
|
c_args: [
|
|
|
|
|
'-DG_LOG_DOMAIN="@0@"'.format(libnm_name),
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD_SHARED',
|
|
|
|
|
],
|
2018-12-28 21:30:03 +01:00
|
|
|
)
|
shared: build helper "libnm-libnm-core-{intern|aux}.la" library for libnm-core
"libnm-core" implements common functionality for "NetworkManager" and
"libnm".
Note that clients like "nmcli" cannot access the internal API provided
by "libnm-core". So, if nmcli wants to do something that is also done by
"libnm-core", , "libnm", or "NetworkManager", the code would have to be
duplicated.
Instead, such code can be in "libnm-libnm-core-{intern|aux}.la".
Note that:
0) "libnm-libnm-core-intern.la" is used by libnm-core itsself.
On the other hand, "libnm-libnm-core-aux.la" is not used by
libnm-core, but provides utilities on top of it.
1) they both extend "libnm-core" with utlities that are not public
API of libnm itself. Maybe part of the code should one day become
public API of libnm. On the other hand, this is code for which
we may not want to commit to a stable interface or which we
don't want to provide as part of the API.
2) "libnm-libnm-core-intern.la" is statically linked by "libnm-core"
and thus directly available to "libnm" and "NetworkManager".
On the other hand, "libnm-libnm-core-aux.la" may be used by "libnm"
and "NetworkManager".
Both libraries may be statically linked by libnm clients (like
nmcli).
3) it must only use glib, libnm-glib-aux.la, and the public API
of libnm-core.
This is important: it must not use "libnm-core/nm-core-internal.h"
nor "libnm-core/nm-utils-private.h" so the static library is usable
by nmcli which couldn't access these.
Note that "shared/nm-meta-setting.c" is an entirely different case,
because it behaves differently depending on whether linking against
"libnm-core" or the client programs. As such, this file must be compiled
twice.
2019-04-15 09:26:53 +02:00
|
|
|
|
2019-08-02 11:18:17 +02:00
|
|
|
if enable_tests
|
2019-12-06 13:31:56 +01:00
|
|
|
subdir('nm-glib-aux/tests')
|
2020-12-25 16:35:47 +01:00
|
|
|
subdir('nm-platform/tests')
|
2019-08-02 11:18:17 +02:00
|
|
|
endif
|