This is an automated email from the ASF dual-hosted git repository.
willayd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 9945d33a clean: Use meson format for meson build configurations (#682)
9945d33a is described below
commit 9945d33a7486e0386f02128ebb97629b0167756b
Author: William Ayd <[email protected]>
AuthorDate: Tue Nov 12 22:53:01 2024 -0500
clean: Use meson format for meson build configurations (#682)
---
.pre-commit-config.yaml | 8 +
dev/benchmarks/meson.build | 20 +-
examples/meson-minimal/meson.build | 14 +-
examples/python-package/meson.build | 10 +-
meson.build | 395 ++++++++++++---------
python/meson.build | 3 +-
python/src/nanoarrow/meson.build | 44 ++-
python/subprojects/packagefiles/flatcc/meson.build | 6 +-
src/nanoarrow/meson.build | 6 +-
subprojects/packagefiles/flatcc/meson.build | 6 +-
subprojects/packagefiles/metal-cpp/meson.build | 6 +-
11 files changed, 275 insertions(+), 243 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 09b35fa0..9ba75072 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -67,5 +67,13 @@ repos:
(?x)
^thirdparty
|flatcc_generated.h
+ - repo: local
+ hooks:
+ - id: meson-format
+ name: meson-format
+ language: python
+ additional_dependencies: ['meson==1.6.0']
+ entry: meson format -i
+ files: meson.build
exclude: "^dist"
diff --git a/dev/benchmarks/meson.build b/dev/benchmarks/meson.build
index adb9b13d..1eb71f59 100644
--- a/dev/benchmarks/meson.build
+++ b/dev/benchmarks/meson.build
@@ -18,14 +18,18 @@
srcdir = include_directories('../..') # needed to resolve nanoarrow_config.h
gbench = dependency('benchmark')
-schema_e = executable('schema_benchmark',
- 'c/schema_benchmark.cc',
- include_directories: [srcdir],
- dependencies: [gbench, nanoarrow_dep])
+schema_e = executable(
+ 'schema_benchmark',
+ 'c/schema_benchmark.cc',
+ include_directories: [srcdir],
+ dependencies: [gbench, nanoarrow_dep],
+)
benchmark('schema benchmark', schema_e)
-array_e = executable('array_benchmark',
- 'c/array_benchmark.cc',
- include_directories: [srcdir],
- dependencies: [gbench, nanoarrow_dep])
+array_e = executable(
+ 'array_benchmark',
+ 'c/array_benchmark.cc',
+ include_directories: [srcdir],
+ dependencies: [gbench, nanoarrow_dep],
+)
benchmark('array benchmark', array_e)
diff --git a/examples/meson-minimal/meson.build
b/examples/meson-minimal/meson.build
index 21a97601..e586cb5a 100644
--- a/examples/meson-minimal/meson.build
+++ b/examples/meson-minimal/meson.build
@@ -20,14 +20,12 @@ project(
'cpp',
license: 'Apache 2.0',
meson_version: '>=1.3.0',
- default_options: [
- 'buildtype=release',
- 'warning_level=2',
- 'cpp_std=c++17',
- ]
+ default_options: ['buildtype=release', 'warning_level=2', 'cpp_std=c++17'],
)
nanoarrow_dep = dependency('nanoarrow')
-example_exec = executable('example_meson_minimal_app',
- 'src/app.cc',
- dependencies: [nanoarrow_dep])
+example_exec = executable(
+ 'example_meson_minimal_app',
+ 'src/app.cc',
+ dependencies: [nanoarrow_dep],
+)
diff --git a/examples/python-package/meson.build
b/examples/python-package/meson.build
index dc8c1b2f..f5fc9719 100644
--- a/examples/python-package/meson.build
+++ b/examples/python-package/meson.build
@@ -19,11 +19,7 @@ project(
'nanoarrow-python-demo',
'c',
version: '0.0.1dev',
- default_options: [
- 'warning_level=2',
- 'c_std=c17',
- 'default_library=static',
- ],
+ default_options: ['warning_level=2', 'c_std=c17',
'default_library=static'],
)
py = import('python').find_installation()
@@ -31,9 +27,7 @@ nanoarrow_dep = dependency('nanoarrow')
py.extension_module(
'schema_printer',
- sources: [
- 'src/nanoarrow_python_demo/schema_printer.c'
- ],
+ sources: ['src/nanoarrow_python_demo/schema_printer.c'],
dependencies: [nanoarrow_dep],
install: true,
)
diff --git a/meson.build b/meson.build
index 595b4003..6bbbe01a 100644
--- a/meson.build
+++ b/meson.build
@@ -17,7 +17,8 @@
project(
'nanoarrow',
- 'c', 'cpp',
+ 'c',
+ 'cpp',
version: '0.7.0-SNAPSHOT',
license: 'Apache 2.0',
meson_version: '>=1.3.0',
@@ -26,7 +27,7 @@ project(
'c_std=c99',
'warning_level=2',
'cpp_std=c++17',
- ]
+ ],
)
# This bit depends on proper symbol exporting which hasn't yet been implemented
@@ -38,12 +39,12 @@ project(
cc = meson.get_compiler('c')
add_project_arguments(
cc.get_supported_arguments(['-Wno-misleading-indentation']),
- language : 'c'
+ language: 'c',
)
cpp = meson.get_compiler('cpp')
add_project_arguments(
cpp.get_supported_arguments(['-Wno-misleading-indentation']),
- language : 'cpp'
+ language: 'cpp',
)
if get_option('buildtype') in ['debug', 'debugoptimized']
@@ -53,9 +54,15 @@ endif
nanoarrow_dep_args = []
if host_machine.system() == 'windows' and get_option('default_library') ==
'shared'
- add_project_arguments(['-DNANOARROW_BUILD_DLL', '-DNANOARROW_EXPORT_DLL'],
language: 'c')
- add_project_arguments(['-DNANOARROW_BUILD_DLL', '-DNANOARROW_EXPORT_DLL'],
language: 'cpp')
- nanoarrow_dep_args += ['-DNANOARROW_BUILD_DLL']
+ add_project_arguments(
+ ['-DNANOARROW_BUILD_DLL', '-DNANOARROW_EXPORT_DLL'],
+ language: 'c',
+ )
+ add_project_arguments(
+ ['-DNANOARROW_BUILD_DLL', '-DNANOARROW_EXPORT_DLL'],
+ language: 'cpp',
+ )
+ nanoarrow_dep_args += ['-DNANOARROW_BUILD_DLL']
endif
subdir('src/nanoarrow')
@@ -94,9 +101,11 @@ nanoarrow_lib = library(
install: true,
)
-nanoarrow_dep = declare_dependency(include_directories: [incdir],
- link_with: nanoarrow_lib,
- compile_args: nanoarrow_dep_args)
+nanoarrow_dep = declare_dependency(
+ include_directories: [incdir],
+ link_with: nanoarrow_lib,
+ compile_args: nanoarrow_dep_args,
+)
if get_option('ipc')
flatcc_dep = dependency('flatcc')
@@ -104,7 +113,7 @@ if get_option('ipc')
install_headers(
'src/nanoarrow/nanoarrow_ipc.h',
'src/nanoarrow/ipc/flatcc_generated.h',
- subdir: 'nanoarrow'
+ subdir: 'nanoarrow',
)
nanoarrow_ipc_lib = library(
@@ -116,205 +125,237 @@ if get_option('ipc')
dependencies: [nanoarrow_dep, flatcc_dep],
install: true,
)
- nanoarrow_ipc_dep = declare_dependency(include_directories: [incdir],
- link_with: nanoarrow_ipc_lib,
- dependencies: [nanoarrow_dep])
+ nanoarrow_ipc_dep = declare_dependency(
+ include_directories: [incdir],
+ link_with: nanoarrow_ipc_lib,
+ dependencies: [nanoarrow_dep],
+ )
endif
needs_device = get_option('device') or get_option('metal') or
get_option('cuda')
if needs_device
- device_deps = [nanoarrow_dep]
- device_srcs = ['src/nanoarrow/device/device.c']
- device_defines = []
-
- if get_option('metal')
- metal_dep = dependency('appleframeworks', modules: ['Foundation', 'Metal'])
- metal_cpp_dep = dependency('metal-cpp')
- device_deps += metal_dep
- device_deps += metal_cpp_dep
- device_srcs += 'src/nanoarrow/device/metal.cc'
- device_defines += '-DNANOARROW_DEVICE_WITH_METAL'
- endif
-
- if get_option('cuda')
- error('CUDA support with the Meson build system is not implemented')
- endif
-
- install_headers(
- 'src/nanoarrow/nanoarrow_device.h',
- subdir: 'nanoarrow',
- )
-
- nanoarrow_device_lib = library(
- 'nanoarrow_device',
- sources: device_srcs,
- dependencies: device_deps,
- install: true,
- cpp_args: device_defines,
- )
-
- nanoarrow_device_dep = declare_dependency(include_directories: [incdir],
- link_with: nanoarrow_device_lib,
- dependencies: device_deps)
+ device_deps = [nanoarrow_dep]
+ device_srcs = ['src/nanoarrow/device/device.c']
+ device_defines = []
+
+ if get_option('metal')
+ metal_dep = dependency(
+ 'appleframeworks',
+ modules: ['Foundation', 'Metal'],
+ )
+ metal_cpp_dep = dependency('metal-cpp')
+ device_deps += metal_dep
+ device_deps += metal_cpp_dep
+ device_srcs += 'src/nanoarrow/device/metal.cc'
+ device_defines += '-DNANOARROW_DEVICE_WITH_METAL'
+ endif
+
+ if get_option('cuda')
+ error('CUDA support with the Meson build system is not implemented')
+ endif
+
+ install_headers('src/nanoarrow/nanoarrow_device.h', subdir: 'nanoarrow')
+
+ nanoarrow_device_lib = library(
+ 'nanoarrow_device',
+ sources: device_srcs,
+ dependencies: device_deps,
+ install: true,
+ cpp_args: device_defines,
+ )
+
+ nanoarrow_device_dep = declare_dependency(
+ include_directories: [incdir],
+ link_with: nanoarrow_device_lib,
+ dependencies: device_deps,
+ )
endif
needs_testing = get_option('testing') or get_option('tests')
if needs_testing
- nlohmann_json_dep = dependency('nlohmann_json')
-
- nanoarrow_testing_lib = library(
- 'nanoarrow_testing',
- sources: ['src/nanoarrow/testing/testing.cc'],
- dependencies: [nanoarrow_dep, nlohmann_json_dep],
- include_directories: incdir,
- install: true,
- )
-
- nanoarrow_testing_dep = declare_dependency(include_directories: [incdir],
- link_with: nanoarrow_testing_lib,
- dependencies: [nanoarrow_dep,
nlohmann_json_dep])
+ nlohmann_json_dep = dependency('nlohmann_json')
+
+ nanoarrow_testing_lib = library(
+ 'nanoarrow_testing',
+ sources: ['src/nanoarrow/testing/testing.cc'],
+ dependencies: [nanoarrow_dep, nlohmann_json_dep],
+ include_directories: incdir,
+ install: true,
+ )
+
+ nanoarrow_testing_dep = declare_dependency(
+ include_directories: [incdir],
+ link_with: nanoarrow_testing_lib,
+ dependencies: [nanoarrow_dep, nlohmann_json_dep],
+ )
endif
if get_option('tests') or get_option('integration_tests')
- c_data_integration_lib = library('nanoarrow_c_data_integration',
-
'src/nanoarrow/integration/c_data_integration.cc',
- dependencies: [nanoarrow_testing_dep,
nanoarrow_dep],
- include_directories: incdir)
+ c_data_integration_lib = library(
+ 'nanoarrow_c_data_integration',
+ 'src/nanoarrow/integration/c_data_integration.cc',
+ dependencies: [nanoarrow_testing_dep, nanoarrow_dep],
+ include_directories: incdir,
+ )
endif
if get_option('tests')
- # CMake configuration sets MEMORYCHECK_COMMAND_OPTIONS but with meson you
instead
- # wrap the tests with valgrind via `meson test --wrap=valgrind`. See
- # https://mesonbuild.com/Unit-tests.html
-
- # Similarly code coverage has a built in option users should use instead
- # https://mesonbuild.com/Unit-tests.html#coverage
+ # CMake configuration sets MEMORYCHECK_COMMAND_OPTIONS but with meson you
instead
+ # wrap the tests with valgrind via `meson test --wrap=valgrind`. See
+ # https://mesonbuild.com/Unit-tests.html
+
+ # Similarly code coverage has a built in option users should use instead
+ # https://mesonbuild.com/Unit-tests.html#coverage
+
+ # The system include suppresses compilation warnings from Arrow
+ arrow_dep = dependency('arrow', include_type: 'system')
+ gtest_dep = dependency('gtest_main')
+ gmock_dep = dependency('gmock')
+
+ nanoarrow_tests = ['utils', 'buffer', 'array', 'schema', 'array-stream']
+
+ foreach name : nanoarrow_tests
+ exc = executable(
+ name + '-test',
+ sources: 'src/nanoarrow/common/' + name.replace('-', '_') +
'_test.cc',
+ include_directories: incdir,
+ dependencies: [
+ nanoarrow_testing_dep,
+ arrow_dep,
+ gtest_dep,
+ gmock_dep,
+ ],
+ )
+ test(name, exc)
+ endforeach
- # The system include suppresses compilation warnings from Arrow
- arrow_dep = dependency('arrow', include_type: 'system')
- gtest_dep = dependency('gtest_main')
- gmock_dep = dependency('gmock')
+ nanoarrow_hpp_tests = [
+ 'array_stream',
+ 'buffer',
+ 'exception',
+ 'unique',
+ 'view',
+ ]
- nanoarrow_tests = ['utils', 'buffer', 'array', 'schema', 'array-stream']
+ foreach name : nanoarrow_hpp_tests
+ exc = executable(
+ 'hpp-' + name + '-test',
+ sources: 'src/nanoarrow/hpp/' + name.replace('-', '_') +
'_test.cc',
+ include_directories: incdir,
+ dependencies: [nanoarrow_testing_dep, gtest_dep, gmock_dep],
+ )
+ test(name, exc)
+ endforeach
- foreach name : nanoarrow_tests
- exc = executable(
- name + '-test',
- sources: 'src/nanoarrow/common/' + name.replace('-', '_') + '_test.cc',
+ testing_test = executable(
+ 'nanoarrow-testing-test',
+ 'src/nanoarrow/testing/testing_test.cc',
include_directories: incdir,
- dependencies: [nanoarrow_testing_dep, arrow_dep, gtest_dep, gmock_dep],
+ dependencies: [nanoarrow_testing_dep, arrow_dep, gtest_dep],
)
- test(name, exc)
- endforeach
- nanoarrow_hpp_tests = ['array_stream', 'buffer', 'exception', 'unique',
'view']
-
- foreach name : nanoarrow_hpp_tests
- exc = executable(
- 'hpp-' + name + '-test',
- sources: 'src/nanoarrow/hpp/' + name.replace('-', '_') + '_test.cc',
+ c_data_integration_test = executable(
+ 'c-data-integration-test',
+ 'src/nanoarrow/integration/c_data_integration_test.cc',
+ link_with: [c_data_integration_lib],
+ dependencies: [nanoarrow_testing_dep, arrow_dep, gtest_dep],
include_directories: incdir,
- dependencies: [nanoarrow_testing_dep, gtest_dep, gmock_dep],
)
- test(name, exc)
- endforeach
-
- testing_test = executable('nanoarrow-testing-test',
- 'src/nanoarrow/testing/testing_test.cc',
- include_directories: incdir,
- dependencies: [nanoarrow_testing_dep, arrow_dep,
gtest_dep])
-
- c_data_integration_test = executable('c-data-integration-test',
-
'src/nanoarrow/integration/c_data_integration_test.cc',
- link_with: [c_data_integration_lib],
- dependencies: [nanoarrow_testing_dep,
arrow_dep, gtest_dep],
- include_directories: incdir)
- test('c-data-integration', c_data_integration_test)
-
- if get_option('ipc')
- zlib_dep = dependency('zlib')
- ipc_test_files = {
- 'ipc-decoder': {
- 'src': 'decoder',
- 'deps': [nanoarrow_ipc_dep, flatcc_dep, arrow_dep, gtest_dep,
gmock_dep],
- 'timeout': 30,
- },
- 'ipc-reader': {
- 'src': 'reader',
- 'deps': [nanoarrow_ipc_dep, arrow_dep, gtest_dep],
- # the ipc reader test can take longer when executed
- # under valgrind, hence the increased timeout
- 'timeout': 90,
-
- },
- 'ipc-files': {
- 'src': 'files',
- 'deps': [
- nanoarrow_testing_dep,
- nanoarrow_ipc_dep,
- flatcc_dep,
- zlib_dep,
- arrow_dep,
- gtest_dep,
- ],
- 'timeout': 30,
- },
- 'ipc-hpp': {
- 'src': 'ipc_hpp',
- 'deps': [nanoarrow_testing_dep, nanoarrow_ipc_dep, gtest_dep],
- 'timeout': 30,
- },
- }
-
- foreach name, config : ipc_test_files
- exc = executable(
- 'nanoarrow-' + name + '-test',
- 'src/nanoarrow/ipc/' + config['src'] + '_test.cc',
- dependencies: config['deps']
- )
- test(name, exc, timeout: config['timeout'])
- endforeach
- endif
-
- if needs_device
- device_tests = ['device', 'device_hpp']
- foreach device_test : device_tests
- exc = executable(
- 'nanoarrow-' + device_test.replace('_', '-') + '-test',
- 'src/nanoarrow/device/' + device_test + '_test.cc',
- link_with: nanoarrow_device_lib,
- dependencies: [nanoarrow_testing_dep, gtest_dep])
- test(device_test.replace('_', '-'), exc)
- endforeach
+ test('c-data-integration', c_data_integration_test)
+
+ if get_option('ipc')
+ zlib_dep = dependency('zlib')
+ ipc_test_files = {
+ 'ipc-decoder': {
+ 'src': 'decoder',
+ 'deps': [
+ nanoarrow_ipc_dep,
+ flatcc_dep,
+ arrow_dep,
+ gtest_dep,
+ gmock_dep,
+ ],
+ 'timeout': 30,
+ },
+ 'ipc-reader': {
+ 'src': 'reader',
+ 'deps': [nanoarrow_ipc_dep, arrow_dep, gtest_dep],
+ # the ipc reader test can take longer when executed
+ # under valgrind, hence the increased timeout
+ 'timeout': 90,
+ },
+ 'ipc-files': {
+ 'src': 'files',
+ 'deps': [
+ nanoarrow_testing_dep,
+ nanoarrow_ipc_dep,
+ flatcc_dep,
+ zlib_dep,
+ arrow_dep,
+ gtest_dep,
+ ],
+ 'timeout': 30,
+ },
+ 'ipc-hpp': {
+ 'src': 'ipc_hpp',
+ 'deps': [nanoarrow_testing_dep, nanoarrow_ipc_dep, gtest_dep],
+ 'timeout': 30,
+ },
+ }
+
+ foreach name, config : ipc_test_files
+ exc = executable(
+ 'nanoarrow-' + name + '-test',
+ 'src/nanoarrow/ipc/' + config['src'] + '_test.cc',
+ dependencies: config['deps'],
+ )
+ test(name, exc, timeout: config['timeout'])
+ endforeach
+ endif
- if get_option('metal')
- exc = executable(
- 'nanoarrow-device-metal-test',
- 'src/nanoarrow/device/metal_test.cc',
- link_with: nanoarrow_device_lib,
- dependencies: [nanoarrow_testing_dep, gtest_dep, metal_cpp_dep])
- test('nanoarrow-device-metal', exc)
+ if needs_device
+ device_tests = ['device', 'device_hpp']
+ foreach device_test : device_tests
+ exc = executable(
+ 'nanoarrow-' + device_test.replace('_', '-') + '-test',
+ 'src/nanoarrow/device/' + device_test + '_test.cc',
+ link_with: nanoarrow_device_lib,
+ dependencies: [nanoarrow_testing_dep, gtest_dep],
+ )
+ test(device_test.replace('_', '-'), exc)
+ endforeach
+
+ if get_option('metal')
+ exc = executable(
+ 'nanoarrow-device-metal-test',
+ 'src/nanoarrow/device/metal_test.cc',
+ link_with: nanoarrow_device_lib,
+ dependencies: [nanoarrow_testing_dep, gtest_dep,
metal_cpp_dep],
+ )
+ test('nanoarrow-device-metal', exc)
+ endif
endif
- endif
endif
if get_option('benchmarks')
- subdir('dev/benchmarks')
+ subdir('dev/benchmarks')
endif
if get_option('apps')
- if get_option('ipc')
- executable(
- 'dump_stream',
- 'src/apps/dump_stream.c',
- dependencies: [nanoarrow_ipc_dep]
- )
- endif
+ if get_option('ipc')
+ executable(
+ 'dump_stream',
+ 'src/apps/dump_stream.c',
+ dependencies: [nanoarrow_ipc_dep],
+ )
+ endif
endif
pkg = import('pkgconfig')
-pkg.generate(nanoarrow_lib,
- description : 'Helpers for Arrow C Data & Arrow C Stream
interfaces')
+pkg.generate(
+ nanoarrow_lib,
+ description: 'Helpers for Arrow C Data & Arrow C Stream interfaces',
+)
diff --git a/python/meson.build b/python/meson.build
index 3d1f9d39..49fa67e4 100644
--- a/python/meson.build
+++ b/python/meson.build
@@ -17,7 +17,8 @@
project(
'nanoarrow',
- 'c', 'cython',
+ 'c',
+ 'cython',
version: run_command(['src/nanoarrow/_version.py', '--print'], check:
true).stdout().strip(),
license: 'Apache-2.0',
meson_version: '>=1.2.0',
diff --git a/python/src/nanoarrow/meson.build b/python/src/nanoarrow/meson.build
index 452cf37a..ee52e9c7 100644
--- a/python/src/nanoarrow/meson.build
+++ b/python/src/nanoarrow/meson.build
@@ -41,13 +41,12 @@ vendored_files = custom_target(
command: [
py,
meson.current_source_dir() + '/../../bootstrap.py',
- '--output-dir', meson.current_build_dir()
+ '--output-dir',
+ meson.current_build_dir(),
],
)
-nanoarrow_pyx_dep = declare_dependency(
- sources: vendored_files[1],
-)
+nanoarrow_pyx_dep = declare_dependency(sources: vendored_files[1])
cyfiles = [
'_array.pyx',
@@ -72,23 +71,23 @@ endif
fs = import('fs')
foreach cyf : cyfiles
- cyfile_deps = [nanoarrow_pyx_dep, nanoarrow_dep]
+ cyfile_deps = [nanoarrow_pyx_dep, nanoarrow_dep]
- stem = fs.stem(cyf)
- if stem in ['_array', '_device']
- cyfile_deps += [nanoarrow_device_dep]
- elif stem == '_ipc_lib'
- cyfile_deps += [nanoarrow_ipc_dep, flatcc_dep]
- endif
+ stem = fs.stem(cyf)
+ if stem in ['_array', '_device']
+ cyfile_deps += [nanoarrow_device_dep]
+ elif stem == '_ipc_lib'
+ cyfile_deps += [nanoarrow_ipc_dep, flatcc_dep]
+ endif
- py.extension_module(
- stem,
- sources: [cyf],
- cython_args: cython_args,
- dependencies: cyfile_deps,
- subdir: 'nanoarrow',
- install: true,
- )
+ py.extension_module(
+ stem,
+ sources: [cyf],
+ cython_args: cython_args,
+ dependencies: cyfile_deps,
+ subdir: 'nanoarrow',
+ install: true,
+ )
endforeach
py_sources = [
@@ -109,9 +108,6 @@ py_sources = [
'visitor.py',
]
-foreach source: py_sources
- py.install_sources(
- source,
- subdir: 'nanoarrow'
- )
+foreach source : py_sources
+ py.install_sources(source, subdir: 'nanoarrow')
endforeach
diff --git a/python/subprojects/packagefiles/flatcc/meson.build
b/python/subprojects/packagefiles/flatcc/meson.build
index 9e12be21..36482dc4 100644
--- a/python/subprojects/packagefiles/flatcc/meson.build
+++ b/python/subprojects/packagefiles/flatcc/meson.build
@@ -15,11 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-project('flatcc',
- 'c',
- version : '0.6.1',
- license : 'Apache-2.0',
-)
+project('flatcc', 'c', version: '0.6.1', license: 'Apache-2.0')
incdir = include_directories('include')
diff --git a/src/nanoarrow/meson.build b/src/nanoarrow/meson.build
index 2a3fbf40..0e30fe0d 100644
--- a/src/nanoarrow/meson.build
+++ b/src/nanoarrow/meson.build
@@ -25,8 +25,10 @@ version = meson.project_version()
version_no_pre_release = version.split('-')[0]
version_no_build = version_no_pre_release.split('+')[0]
components = version_no_build.split('.')
-assert(components.length() >= 3,
- 'The version does not contain major, minor and patch')
+assert(
+ components.length() >= 3,
+ 'The version does not contain major, minor and patch',
+)
ver_major = components[0]
ver_minor = components[1]
ver_patch = components[2]
diff --git a/subprojects/packagefiles/flatcc/meson.build
b/subprojects/packagefiles/flatcc/meson.build
index 9e12be21..36482dc4 100644
--- a/subprojects/packagefiles/flatcc/meson.build
+++ b/subprojects/packagefiles/flatcc/meson.build
@@ -15,11 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-project('flatcc',
- 'c',
- version : '0.6.1',
- license : 'Apache-2.0',
-)
+project('flatcc', 'c', version: '0.6.1', license: 'Apache-2.0')
incdir = include_directories('include')
diff --git a/subprojects/packagefiles/metal-cpp/meson.build
b/subprojects/packagefiles/metal-cpp/meson.build
index ba3beb40..a4a185c3 100644
--- a/subprojects/packagefiles/metal-cpp/meson.build
+++ b/subprojects/packagefiles/metal-cpp/meson.build
@@ -15,11 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-project(
- 'metal-cpp',
- 'cpp',
- license : 'Apache-2.0',
-)
+project('metal-cpp', 'cpp', license: 'Apache-2.0')
incdir = include_directories('.')
metal_cpp_dep = declare_dependency(include_directories: incdir)