diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-02 14:49:32 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-02 14:49:32 +0100 |
commit | f1b98127ff6320648cc3dc876f3b6a5aa3af204b (patch) | |
tree | 0fcea4eff1ccda78d54edab923f1444f74a3ff2f /src/journal-remote | |
parent | build(deps): bump meson from 0.60.3 to 0.61.2 in /.github/workflows (diff) | |
download | systemd-f1b98127ff6320648cc3dc876f3b6a5aa3af204b.tar.xz systemd-f1b98127ff6320648cc3dc876f3b6a5aa3af204b.zip |
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.
Diffstat (limited to 'src/journal-remote')
-rw-r--r-- | src/journal-remote/meson.build | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/src/journal-remote/meson.build b/src/journal-remote/meson.build index 1f3e0878ae..5bd93904c5 100644 --- a/src/journal-remote/meson.build +++ b/src/journal-remote/meson.build @@ -1,19 +1,17 @@ # SPDX-License-Identifier: LGPL-2.1-or-later -systemd_journal_upload_sources = files(''' - journal-upload.h - journal-upload.c - journal-upload-journal.c -'''.split()) +systemd_journal_upload_sources = files( + 'journal-upload.h', + 'journal-upload.c', + 'journal-upload-journal.c') -libsystemd_journal_remote_sources = files(''' - journal-remote-parse.h - journal-remote-parse.c - journal-remote-write.h - journal-remote-write.c - journal-remote.h - journal-remote.c -'''.split()) +libsystemd_journal_remote_sources = files( + 'journal-remote-parse.h', + 'journal-remote-parse.c', + 'journal-remote-write.h', + 'journal-remote-write.c', + 'journal-remote.h', + 'journal-remote.c') if conf.get('HAVE_MICROHTTPD') == 1 libsystemd_journal_remote_sources += files( @@ -33,15 +31,12 @@ libsystemd_journal_remote = static_library( liblz4], build_by_default : false) -systemd_journal_remote_sources = files(''' - journal-remote-main.c -'''.split()) +systemd_journal_remote_sources = files('journal-remote-main.c') -systemd_journal_gatewayd_sources = files(''' - journal-gatewayd.c - microhttpd-util.h - microhttpd-util.c -'''.split()) +systemd_journal_gatewayd_sources = files( + 'journal-gatewayd.c', + 'microhttpd-util.h', + 'microhttpd-util.c') in_files = [ ['journal-upload.conf', |