summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-09-23 17:10:59 -0400
committerDavid Robillard <d@drobilla.net>2023-09-23 17:10:59 -0400
commite70d162e313f5f5c30c90fc279f77a0e85cba99d (patch)
treefbfca5c60569d23a574968e48e3b1475d919a352
parente6831b0670cbb33414a541975b4a7de64841d243 (diff)
downloadpatchage-e70d162e313f5f5c30c90fc279f77a0e85cba99d.tar.gz
patchage-e70d162e313f5f5c30c90fc279f77a0e85cba99d.tar.bz2
patchage-e70d162e313f5f5c30c90fc279f77a0e85cba99d.zip
Format meson.build files with muon
The less time wasted with manual code formatting, the better.
-rw-r--r--icons/meson.build18
-rw-r--r--meson.build35
-rw-r--r--subprojects/fmt/meson.build21
3 files changed, 44 insertions, 30 deletions
diff --git a/icons/meson.build b/icons/meson.build
index 3348cfe..3de7d1c 100644
--- a/icons/meson.build
+++ b/icons/meson.build
@@ -20,15 +20,21 @@ png_icon_sizes = [
icons_dir = get_option('prefix') / get_option('datadir') / 'icons' / 'hicolor'
-install_data('scalable/patchage.svg',
- install_dir: icons_dir / 'scalable' / 'apps')
+install_data(
+ 'scalable/patchage.svg',
+ install_dir: icons_dir / 'scalable' / 'apps',
+)
foreach size : svg_icon_sizes
- install_data(files(size / 'patchage.svg'),
- install_dir: icons_dir / size / 'apps')
+ install_data(
+ files(size / 'patchage.svg'),
+ install_dir: icons_dir / size / 'apps',
+ )
endforeach
foreach size : png_icon_sizes
- install_data(files(size / 'patchage.png'),
- install_dir: icons_dir / size / 'apps')
+ install_data(
+ files(size / 'patchage.png'),
+ install_dir: icons_dir / size / 'apps',
+ )
endforeach
diff --git a/meson.build b/meson.build
index 81b5a54..90d60d4 100644
--- a/meson.build
+++ b/meson.build
@@ -1,15 +1,18 @@
# Copyright 2020-2023 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR GPL-3.0-or-later
-project('patchage', ['c', 'cpp'],
- version: '1.0.11',
- license: 'GPLv3+',
- meson_version: '>= 0.56.0',
- default_options: [
- 'b_ndebug=if-release',
- 'buildtype=release',
- 'cpp_std=c++17',
- ])
+project(
+ 'patchage',
+ ['c', 'cpp'],
+ default_options: [
+ 'b_ndebug=if-release',
+ 'buildtype=release',
+ 'cpp_std=c++17',
+ ],
+ license: 'GPLv3+',
+ meson_version: '>= 0.56.0',
+ version: '1.0.11',
+)
patchage_src_root = meson.current_source_dir()
major_version = meson.project_version().split('.')[0]
@@ -70,14 +73,16 @@ int main(void) { return !!&jack_set_property; }'''
endif
platform_defines += '-DHAVE_GETTEXT=@0@'.format(
- cpp.compiles(gettext_code,
- args: platform_defines,
- name: 'gettext').to_int())
+ cpp.compiles(gettext_code, args: platform_defines, name: 'gettext').to_int(),
+ )
platform_defines += '-DHAVE_JACK_METADATA=@0@'.format(
- cpp.compiles(jack_metadata_code,
- args: platform_defines,
- name: 'jack_metadata').to_int())
+ cpp.compiles(
+ jack_metadata_code,
+ args: platform_defines,
+ name: 'jack_metadata',
+ ).to_int(),
+ )
endif
diff --git a/subprojects/fmt/meson.build b/subprojects/fmt/meson.build
index c221ca1..cf9f6b5 100644
--- a/subprojects/fmt/meson.build
+++ b/subprojects/fmt/meson.build
@@ -1,15 +1,18 @@
# Copyright 2022 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR GPL-3.0-or-later
-project('fmt', ['cpp'],
- version: '9.0.0',
- license: 'MIT',
- meson_version: '>= 0.56.0',
- default_options: [
- 'b_ndebug=if-release',
- 'buildtype=release',
- 'cpp_std=c++17',
- ])
+project(
+ 'fmt',
+ ['cpp'],
+ default_options: [
+ 'b_ndebug=if-release',
+ 'buildtype=release',
+ 'cpp_std=c++17',
+ ],
+ license: 'MIT',
+ meson_version: '>= 0.56.0',
+ version: '9.0.0',
+)
include_dirs = include_directories('include')