meson: Fix coding style when declaring arrays

The meson.build files mix array declarations with and without a space
after the opening and before the closing square bracket. The vast
majority of cases don't use spaces, so standardize on that.

While it it, fix indentation in a few places.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2021-02-08 23:43:05 +02:00
parent 9e369da993
commit db27029ce4
19 changed files with 49 additions and 49 deletions

View file

@ -32,9 +32,9 @@ if android_enabled
libyuv_vars.append_link_args('-ljpeg')
libyuv = cmake.subproject('libyuv', options : libyuv_vars)
libyuv_dep = libyuv.dependency('yuv')
endif
endif
android_deps += [ libyuv_dep, ]
android_deps += [libyuv_dep]
endif
android_hal_sources = files([

View file

@ -29,7 +29,7 @@ if glib_dep.found() and gstvideo_dep.found() and gstallocator_dep.found()
# complain about the ones we are not using. Silence the -Wunused-function
# warning in that case.
if cc.get_id() == 'clang' and glib_dep.version().version_compare('<2.63.0')
libcamera_gst_cpp_args += [ '-Wno-unused-function' ]
libcamera_gst_cpp_args += ['-Wno-unused-function']
endif
libcamera_gst = shared_library('gstlibcamera',

View file

@ -5,8 +5,8 @@ ipa_name = 'ipa_ipu3'
mod = shared_module(ipa_name,
'ipu3.cpp',
name_prefix : '',
include_directories : [ ipa_includes, libipa_includes ],
dependencies : [ libatomic, libcamera_dep ],
include_directories : [ipa_includes, libipa_includes],
dependencies : [libatomic, libcamera_dep],
link_with : libipa,
install : true,
install_dir : ipa_install_dir)
@ -15,7 +15,7 @@ if ipa_sign_module
custom_target(ipa_name + '.so.sign',
input : mod,
output : ipa_name + '.so.sign',
command : [ ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@' ],
command : [ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@'],
install : false,
build_by_default : true)
endif

View file

@ -54,7 +54,7 @@ if ipa_sign_module
custom_target(ipa_name + '.so.sign',
input : mod,
output : ipa_name + '.so.sign',
command : [ ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@' ],
command : [ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@'],
install : false,
build_by_default : true)
endif

View file

@ -15,7 +15,7 @@ if ipa_sign_module
custom_target(ipa_name + '.so.sign',
input : mod,
output : ipa_name + '.so.sign',
command : [ ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@' ],
command : [ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@'],
install : false,
build_by_default : true)
endif

View file

@ -15,7 +15,7 @@ if ipa_sign_module
custom_target(ipa_name + '.so.sign',
input : mod,
output : ipa_name + '.so.sign',
command : [ ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@' ],
command : [ipa_sign, ipa_priv_key, '@INPUT@', '@OUTPUT@'],
install : false,
build_by_default : true)
endif

View file

@ -111,9 +111,9 @@ libcamera_sources += version_cpp
if ipa_sign_module
ipa_pub_key_cpp = custom_target('ipa_pub_key_cpp',
input : [ ipa_priv_key, 'ipa_pub_key.cpp.in' ],
input : [ipa_priv_key, 'ipa_pub_key.cpp.in'],
output : 'ipa_pub_key.cpp',
command : [ gen_ipa_pub_key, '@INPUT@', '@OUTPUT@' ])
command : [gen_ipa_pub_key, '@INPUT@', '@OUTPUT@'])
libcamera_sources += ipa_pub_key_cpp
endif

View file

@ -3,8 +3,8 @@
openssl = find_program('openssl', required : true)
if openssl.found()
ipa_priv_key = custom_target('ipa-priv-key',
output : [ 'ipa-priv-key.pem' ],
command : [ gen_ipa_priv_key, '@OUTPUT@' ])
output : ['ipa-priv-key.pem'],
command : [gen_ipa_priv_key, '@OUTPUT@'])
config_h.set('HAVE_IPA_PUBKEY', 1)
ipa_sign_module = true
else

View file

@ -32,12 +32,12 @@ if qt5_dep.found()
qt5_dep,
]
qt5_cpp_args = [ '-DQT_NO_KEYWORDS' ]
qt5_cpp_args = ['-DQT_NO_KEYWORDS']
tiff_dep = dependency('libtiff-4', required : false)
if tiff_dep.found()
qt5_cpp_args += [ '-DHAVE_TIFF' ]
qcam_deps += [ tiff_dep ]
qt5_cpp_args += ['-DHAVE_TIFF']
qcam_deps += [tiff_dep]
qcam_sources += files([
'dng_writer.cpp',
])
@ -62,7 +62,7 @@ if qt5_dep.found()
if ((cc.get_id() == 'gcc' and cc.version().version_compare('>=9.0') and
qt5_dep.version().version_compare('<5.13')) or
(cc.get_id() == 'clang' and cc.version().version_compare('>=10.0')))
qt5_cpp_args += [ '-Wno-deprecated-copy' ]
qt5_cpp_args += ['-Wno-deprecated-copy']
endif
resources = qt5.preprocess(moc_headers: qcam_moc_headers,

View file

@ -28,5 +28,5 @@ v4l2_compat = shared_library('v4l2-compat',
v4l2_compat_sources,
name_prefix : '',
install : true,
dependencies : [ libcamera_dep, libdl ],
dependencies : [libcamera_dep, libdl],
cpp_args : v4l2_compat_cpp_args)