meson: Fix coding style in meson.build files
Consistently go for 4 spaces indentation, and always put a space between the colon in argument lists, as per the examples from the meson documentation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
# Tests are listed in order of complexity.
|
||||
# They are not alphabetically sorted.
|
||||
camera_tests = [
|
||||
[ 'configuration_default', 'configuration_default.cpp' ],
|
||||
[ 'configuration_set', 'configuration_set.cpp' ],
|
||||
[ 'statemachine', 'statemachine.cpp' ],
|
||||
[ 'capture', 'capture.cpp' ],
|
||||
[ 'configuration_default', 'configuration_default.cpp' ],
|
||||
[ 'configuration_set', 'configuration_set.cpp' ],
|
||||
[ 'statemachine', 'statemachine.cpp' ],
|
||||
[ 'capture', 'capture.cpp' ],
|
||||
]
|
||||
|
||||
foreach t : camera_tests
|
||||
exe = executable(t[0], [t[1], 'camera_test.cpp'],
|
||||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
test(t[0], exe, suite: 'camera', is_parallel: false)
|
||||
exe = executable(t[0], [t[1], 'camera_test.cpp'],
|
||||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
test(t[0], exe, suite : 'camera', is_parallel : false)
|
||||
endforeach
|
||||
|
||||
@@ -4,8 +4,8 @@ ipa_modules_sources = [
|
||||
]
|
||||
|
||||
foreach m : ipa_modules_sources
|
||||
shared_library(m, name_prefix: '',
|
||||
include_directories: test_includes_public)
|
||||
shared_library(m, name_prefix : '',
|
||||
include_directories : test_includes_public)
|
||||
endforeach
|
||||
|
||||
ipa_test = [
|
||||
@@ -17,5 +17,5 @@ foreach t : ipa_test
|
||||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
|
||||
test(t[0], exe, suite: 'ipa', is_parallel: false)
|
||||
test(t[0], exe, suite : 'ipa', is_parallel : false)
|
||||
endforeach
|
||||
|
||||
@@ -16,5 +16,5 @@ foreach t : media_device_tests
|
||||
link_with : [test_libraries, lib_mdev_test],
|
||||
include_directories : test_includes_internal)
|
||||
|
||||
test(t[0], exe, suite: 'media_device', is_parallel: false)
|
||||
test(t[0], exe, suite : 'media_device', is_parallel : false)
|
||||
endforeach
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
ipu3_test = [
|
||||
['ipu3_pipeline_test', 'ipu3_pipeline_test.cpp'],
|
||||
['ipu3_pipeline_test', 'ipu3_pipeline_test.cpp'],
|
||||
]
|
||||
|
||||
foreach t : ipu3_test
|
||||
@@ -7,5 +7,5 @@ foreach t : ipu3_test
|
||||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
|
||||
test(t[0], exe, suite: 'ipu3', is_parallel: false)
|
||||
test(t[0], exe, suite : 'ipu3', is_parallel : false)
|
||||
endforeach
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
# Tests are listed in order of complexity.
|
||||
# They are not alphabetically sorted.
|
||||
v4l2_device_tests = [
|
||||
[ 'double_open', 'double_open.cpp' ],
|
||||
[ 'formats', 'formats.cpp' ],
|
||||
[ 'request_buffers', 'request_buffers.cpp' ],
|
||||
[ 'stream_on_off', 'stream_on_off.cpp' ],
|
||||
[ 'capture_async', 'capture_async.cpp' ],
|
||||
[ 'buffer_sharing', 'buffer_sharing.cpp' ],
|
||||
[ 'double_open', 'double_open.cpp' ],
|
||||
[ 'formats', 'formats.cpp' ],
|
||||
[ 'request_buffers', 'request_buffers.cpp' ],
|
||||
[ 'stream_on_off', 'stream_on_off.cpp' ],
|
||||
[ 'capture_async', 'capture_async.cpp' ],
|
||||
[ 'buffer_sharing', 'buffer_sharing.cpp' ],
|
||||
]
|
||||
|
||||
foreach t : v4l2_device_tests
|
||||
exe = executable(t[0], [t[1], 'v4l2_device_test.cpp'],
|
||||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
test(t[0], exe, suite: 'v4l2_device', is_parallel: false)
|
||||
exe = executable(t[0], [t[1], 'v4l2_device_test.cpp'],
|
||||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
test(t[0], exe, suite : 'v4l2_device', is_parallel : false)
|
||||
endforeach
|
||||
|
||||
@@ -7,5 +7,5 @@ foreach t : v4l2_subdevice_tests
|
||||
exe = executable(t[0], [t[1], 'v4l2_subdevice_test.cpp'],
|
||||
link_with : test_libraries,
|
||||
include_directories : test_includes_internal)
|
||||
test(t[0], exe, suite: 'v4l2_subdevice', is_parallel: false)
|
||||
test(t[0], exe, suite : 'v4l2_subdevice', is_parallel : false)
|
||||
endforeach
|
||||
|
||||
Reference in New Issue
Block a user