summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-07-06 10:23:36 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-07-07 11:39:19 +0300
commitca437b4a0cde5ec72a5eea709eb044264deb4f55 (patch)
treef32e5831f20d303e56b827b46842642cd4610546 /meson.build
parentadb1bbb748a12eb2427f2d19a46fae55d99b623a (diff)
meson: Fix space around colon issues
The meson style, which libcamera follows, recommends a space before colons in function parameters. Fix the style violations through the project. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 6 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index 62db8ed8..29777529 100644
--- a/meson.build
+++ b/meson.build
@@ -20,7 +20,7 @@ project('libcamera', 'c', 'cpp',
libcamera_git_version = run_command('utils/gen-version.sh',
meson.project_build_root(),
meson.project_source_root(),
- check: false).stdout().strip()
+ check : false).stdout().strip()
# If the source tree isn't under git control, set libcamera_git_version to the
# meson project version.
@@ -49,7 +49,7 @@ if libcamera_version != project_version
meson.project_build_root(),
meson.project_source_root(),
project_version,
- check: false).stdout().strip()
+ check : false).stdout().strip()
libcamera_version = project_version
# Append a marker to show we have modified this version string.
@@ -109,7 +109,7 @@ if cc.get_id() == 'clang'
# Use libc++ by default if available instead of libstdc++ when compiling
# with clang.
- if cc.find_library('libc++', required: false).found()
+ if cc.find_library('libc++', required : false).found()
cpp_arguments += [
'-stdlib=libc++',
]
@@ -236,7 +236,7 @@ subdir('test')
if not meson.is_cross_build()
kernel_version_req = '>= 5.0.0'
- kernel_version = run_command('uname', '-r', check: true).stdout().strip()
+ kernel_version = run_command('uname', '-r', check : true).stdout().strip()
if not kernel_version.version_compare(kernel_version_req)
warning('The current running kernel version @0@ is too old to run libcamera.'
.format(kernel_version))
@@ -249,13 +249,13 @@ endif
# running libcamera from the build directory to locate resources in the source
# directory (such as IPA configuration files).
run_command('ln', '-fsT', meson.project_source_root(), meson.project_build_root() / 'source',
- check: true)
+ check : true)
configure_file(output : 'config.h', configuration : config_h)
# Check for python installation and modules.
py_mod = import('python')
-py_mod.find_installation('python3', modules: py_modules)
+py_mod.find_installation('python3', modules : py_modules)
## Summarise Configurations
summary({