mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 12:50:17 +01:00
The `shared` build file has been improved by applying a set of
changes:
- Indentation has been fixed to be consistent.
- Unused libraries and dependencies have been removed.
- Dependencies have been reviewed to store the necessary data.
- Set of objects used in targets have been grouped together.
- Header files have been removed from sources lists as it's
unnecessary.
- Library variable names have been changed to `lib{name}` pattern
following their filename pattern.
- `shared` prefix has been removed from all variables using it.
- `version_header` its related configuration `version_conf`
variables have been renamed to `nm_version_macro*` following
its input and final file names.
19 lines
478 B
Meson
19 lines
478 B
Meson
test_unit = 'test-shared-general'
|
|
|
|
exe = executable(
|
|
test_unit,
|
|
test_unit + '.c',
|
|
c_args: [
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
|
],
|
|
dependencies: libnm_utils_base_dep,
|
|
link_with: libnm_systemd_logging_stub,
|
|
)
|
|
|
|
test(
|
|
'shared/nm-utils/' + test_unit,
|
|
test_script,
|
|
args: test_args + [exe.full_path()],
|
|
timeout: default_test_timeout,
|
|
)
|