Skip to content

Commit f96178b

Browse files
committed
meson: sort file lists
Convert file lists from arrays to files() so the formatter will sort them.
1 parent 5996352 commit f96178b

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

meson.build

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ library_includes = include_directories('include')
146146
library_options = ['-DBUILDING_LIBDICOM']
147147
dict_build = executable(
148148
'dicom-dict-build',
149-
['src/dicom-dict-build.c', 'src/dicom-dict-tables.c'],
149+
files('src/dicom-dict-build.c', 'src/dicom-dict-tables.c'),
150150
dependencies : [uthash],
151151
include_directories : library_includes,
152152
native : true,
@@ -156,17 +156,16 @@ dict_lookup = custom_target(
156156
command : [dict_build, '@OUTPUT@'],
157157
output : ['dicom-dict-lookup.c', 'dicom-dict-lookup.h'],
158158
)
159-
library_sources = [
160-
dict_lookup,
161-
'src/getopt.c',
162-
'src/dicom.c',
163-
'src/dicom-io.c',
159+
library_sources = [dict_lookup] + files(
164160
'src/dicom-data.c',
165-
'src/dicom-dict.c',
166161
'src/dicom-dict-tables.c',
162+
'src/dicom-dict.c',
167163
'src/dicom-file.c',
164+
'src/dicom-io.c',
168165
'src/dicom-parse.c',
169-
]
166+
'src/dicom.c',
167+
'src/getopt.c',
168+
)
170169
libdicom = library(
171170
'dicom',
172171
library_sources,
@@ -227,7 +226,7 @@ subdir('doc/env/bin')
227226
custom_target(
228227
'html',
229228
command : [sphinx_build, '@SOURCE_ROOT@/doc/source', '@OUTPUT@'],
230-
input : [
229+
input : files(
231230
'doc/source/api.rst',
232231
'doc/source/conf.py',
233232
'doc/source/contributing.rst',
@@ -237,7 +236,7 @@ custom_target(
237236
'doc/source/tools.rst',
238237
'doc/source/usage.rst',
239238
'include/dicom/dicom.h',
240-
],
239+
),
241240
output : 'html',
242241
)
243242

0 commit comments

Comments
 (0)