meson: do not use split() in file lists

The approach to use '''…'''.split() instead of a list of strings was initially
used when converting from automake because it allowed identical blocks of lines
to be used for both, making the conversion easier.

But over the years we have been using normal lists more and more, especially
when there were just a few filenames listed. This converts the rest.

No functional change.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-03-02 14:49:32 +01:00
parent 82e4b0305b
commit f1b98127ff
27 changed files with 1431 additions and 1493 deletions
+29 -30
View File
@@ -1,35 +1,34 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
libnspawn_core_sources = files('''
nspawn-bind-user.c
nspawn-bind-user.h
nspawn-cgroup.c
nspawn-cgroup.h
nspawn-creds.c
nspawn-creds.h
nspawn-def.h
nspawn-expose-ports.c
nspawn-expose-ports.h
nspawn-mount.c
nspawn-mount.h
nspawn-network.c
nspawn-network.h
nspawn-oci.c
nspawn-oci.h
nspawn-patch-uid.c
nspawn-patch-uid.h
nspawn-register.c
nspawn-register.h
nspawn-seccomp.c
nspawn-seccomp.h
nspawn-settings.c
nspawn-settings.h
nspawn-setuid.c
nspawn-setuid.h
nspawn-stub-pid1.c
nspawn-stub-pid1.h
nspawn.h
'''.split())
libnspawn_core_sources = files(
'nspawn-bind-user.c',
'nspawn-bind-user.h',
'nspawn-cgroup.c',
'nspawn-cgroup.h',
'nspawn-creds.c',
'nspawn-creds.h',
'nspawn-def.h',
'nspawn-expose-ports.c',
'nspawn-expose-ports.h',
'nspawn-mount.c',
'nspawn-mount.h',
'nspawn-network.c',
'nspawn-network.h',
'nspawn-oci.c',
'nspawn-oci.h',
'nspawn-patch-uid.c',
'nspawn-patch-uid.h',
'nspawn-register.c',
'nspawn-register.h',
'nspawn-seccomp.c',
'nspawn-seccomp.h',
'nspawn-settings.c',
'nspawn-settings.h',
'nspawn-setuid.c',
'nspawn-setuid.h',
'nspawn-stub-pid1.c',
'nspawn-stub-pid1.h',
'nspawn.h')
nspawn_gperf_c = custom_target(
'nspawn-gperf.c',