Skip to content

Commit a8d94a1

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

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
@@ -143,7 +143,7 @@ library_includes = include_directories('include')
143143
library_options = ['-DBUILDING_LIBDICOM']
144144
dict_build = executable(
145145
'dicom-dict-build',
146-
['src/dicom-dict-build.c', 'src/dicom-dict-tables.c'],
146+
files('src/dicom-dict-build.c', 'src/dicom-dict-tables.c'),
147147
dependencies : [uthash],
148148
include_directories : library_includes,
149149
native : true,
@@ -153,17 +153,16 @@ dict_lookup = custom_target(
153153
command : [dict_build, '@OUTPUT@'],
154154
output : ['dicom-dict-lookup.c', 'dicom-dict-lookup.h'],
155155
)
156-
library_sources = [
157-
dict_lookup,
158-
'src/getopt.c',
159-
'src/dicom.c',
160-
'src/dicom-io.c',
156+
library_sources = [dict_lookup] + files(
161157
'src/dicom-data.c',
162-
'src/dicom-dict.c',
163158
'src/dicom-dict-tables.c',
159+
'src/dicom-dict.c',
164160
'src/dicom-file.c',
161+
'src/dicom-io.c',
165162
'src/dicom-parse.c',
166-
]
163+
'src/dicom.c',
164+
'src/getopt.c',
165+
)
167166
libdicom = library(
168167
'dicom',
169168
library_sources,
@@ -224,7 +223,7 @@ subdir('doc/env/bin')
224223
custom_target(
225224
'html',
226225
command : [sphinx_build, '@SOURCE_ROOT@/doc/source', '@OUTPUT@'],
227-
input : [
226+
input : files(
228227
'doc/source/api.rst',
229228
'doc/source/conf.py',
230229
'doc/source/contributing.rst',
@@ -234,7 +233,7 @@ custom_target(
234233
'doc/source/tools.rst',
235234
'doc/source/usage.rst',
236235
'include/dicom/dicom.h',
237-
],
236+
),
238237
output : 'html',
239238
)
240239

0 commit comments

Comments
 (0)