@@ -10,12 +10,10 @@ project(
1010 ],
1111 license : ' MIT' ,
1212 meson_version : ' >=0.55' ,
13- version : ' 1.2.0'
13+ version : ' 1.2.0' ,
1414)
1515if not meson .is_subproject()
16- meson .add_dist_script(
17- ' scripts/dist.py'
18- )
16+ meson .add_dist_script(' scripts/dist.py' )
1917endif
2018
2119# project version
@@ -46,7 +44,7 @@ abi_version = '@0@.@1@.@2@'.format(
4644)
4745darwin_library_versions = [
4846 abi_version_major + 1 ,
49- ' @0@.@1@' .format(abi_version_major + 1 , abi_version_minor)
47+ ' @0@.@1@' .format(abi_version_major + 1 , abi_version_minor),
5048]
5149
5250# ready to be pasted into source files
@@ -68,14 +66,16 @@ if host_machine.system() == 'darwin' and not cc.has_header('stdio.h')
6866 # in advance.
6967 # https://github.com/mesonbuild/meson/issues/5290
7068 # https://github.com/mesonbuild/meson/issues/8206
71- error (' Basic environment check failed. Check compiler flags; building for multiple CPU architectures is not supported.' )
69+ error (
70+ ' Basic environment check failed. Check compiler flags; building for multiple CPU architectures is not supported.' ,
71+ )
7272endif
7373found_uthash = cc.check_header(
7474 ' utarray.h' ,
75- required : false
75+ required : false ,
7676) and cc.check_header(
7777 ' uthash.h' ,
78- required : false
78+ required : false ,
7979)
8080if found_uthash
8181 uthash = declare_dependency ()
@@ -102,10 +102,10 @@ cfg.set_quoted(
102102)
103103
104104if cc.has_header(' io.h' )
105- cfg.set(' HAVE_IO_H' , ' 1' )
105+ cfg.set(' HAVE_IO_H' , ' 1' )
106106endif
107107if cc.has_header(' unistd.h' )
108- cfg.set(' HAVE_UNISTD_H' , ' 1' )
108+ cfg.set(' HAVE_UNISTD_H' , ' 1' )
109109endif
110110
111111configure_file (
@@ -127,9 +127,9 @@ add_project_arguments(
127127
128128# include
129129version_header = configure_file (
130- input : ' include/dicom/version.h.in' ,
131- output : ' version.h' ,
132- configuration : version_data,
130+ input : ' include/dicom/version.h.in' ,
131+ output : ' version.h' ,
132+ configuration : version_data,
133133)
134134
135135install_headers (
@@ -172,7 +172,7 @@ libdicom = library(
172172 version : abi_version,
173173 darwin_versions : darwin_library_versions,
174174 include_directories : library_includes,
175- gnu_symbol_visibility : ' hidden' ,
175+ gnu_symbol_visibility : ' hidden' ,
176176 install : true ,
177177)
178178import (' pkgconfig' ).generate(
0 commit comments