mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 11:40:08 +01:00
Source files for enum types are generated by passing segments of the source code of the files to the `glib-mkenums` command. This patch removes those parameters where source code is used from meson build files by moving those segmeents to template files. https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00057.html
34 lines
637 B
Meson
34 lines
637 B
Meson
incs = [
|
|
top_inc,
|
|
shared_inc
|
|
]
|
|
|
|
deps = [
|
|
dbus_dep,
|
|
dbus_glib_dep,
|
|
glib_dep,
|
|
libnm_glib_dep,
|
|
libnm_util_dep
|
|
]
|
|
|
|
cflags = [
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_LEGACY',
|
|
'-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tools', 'test-networkmanager-service.py'))
|
|
]
|
|
|
|
test_units = [
|
|
'test-nm-client',
|
|
'test-remote-settings-client'
|
|
]
|
|
|
|
foreach test_unit: test_units
|
|
exe = executable(
|
|
test_unit,
|
|
[test_unit + '.c', libnm_utils_enum[1]] + shared_test_utils,
|
|
include_directories: incs,
|
|
dependencies: deps,
|
|
c_args: cflags
|
|
)
|
|
|
|
test(test_unit, exe)
|
|
endforeach
|