aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--lv2specgen/meson.build45
-rw-r--r--meson.build4
-rw-r--r--meson_options.txt3
-rw-r--r--util/meson.build2
5 files changed, 32 insertions, 25 deletions
diff --git a/NEWS b/NEWS
index 3ebea56..b110596 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
lv2 (1.18.11) unstable; urgency=medium
+ * Add configuration option to control command-line tool installation
* Allow LV2_SYMBOL_EXPORT to be overridden
* Avoid over-use of yielding meson options
* Fix pylint warning in test script
@@ -8,7 +9,7 @@ lv2 (1.18.11) unstable; urgency=medium
* eg-metro: Fix memory leak
* ui: Add types for Gtk4UI and Qt6UI
- -- David Robillard <d@drobilla.net> Sun, 28 Sep 2025 23:27:21 +0000
+ -- David Robillard <d@drobilla.net> Wed, 05 Nov 2025 17:20:42 +0000
lv2 (1.18.10) stable; urgency=medium
diff --git a/lv2specgen/meson.build b/lv2specgen/meson.build
index 69b029b..bc3a616 100644
--- a/lv2specgen/meson.build
+++ b/lv2specgen/meson.build
@@ -1,4 +1,4 @@
-# Copyright 2022 David Robillard <d@drobilla.net>
+# Copyright 2022-2025 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
lv2specgen_py = files('lv2specgen.py')
@@ -11,8 +11,7 @@ lv2specgen_command_prefix = [
'--list-email=' + lv2_list_email,
'--list-page=' + lv2_list_page,
'--style-dir=' + lv2_source_root / 'doc' / 'style',
- '--template',
- files('template.html'),
+ '--template', files('template.html'),
]
if is_variable('lv2_tags')
@@ -21,24 +20,26 @@ if is_variable('lv2_tags')
]
endif
-install_data(
- files('lv2specgen.py'),
- install_dir: get_option('bindir'),
- install_mode: 'rwxr-xr-x',
-)
-
meson.override_find_program('lv2specgen.py', lv2specgen_py)
-install_data(
- files(
- '../doc/style/pygments.css',
- '../doc/style/style.css',
- 'template.html',
- ),
- install_dir: get_option('datadir') / 'lv2specgen',
-)
-
-install_subdir(
- 'DTD',
- install_dir: get_option('datadir') / 'lv2specgen',
-)
+if not get_option('tools').disabled()
+ install_data(
+ files('lv2specgen.py'),
+ install_dir: get_option('bindir'),
+ install_mode: 'rwxr-xr-x',
+ )
+
+ install_data(
+ files(
+ '../doc/style/pygments.css',
+ '../doc/style/style.css',
+ 'template.html',
+ ),
+ install_dir: get_option('datadir') / 'lv2specgen',
+ )
+
+ install_subdir(
+ 'DTD',
+ install_dir: get_option('datadir') / 'lv2specgen',
+ )
+endif
diff --git a/meson.build b/meson.build
index 925b7c0..de2648d 100644
--- a/meson.build
+++ b/meson.build
@@ -504,7 +504,9 @@ endif
############
# Command-line utilities
-subdir('util')
+if not get_option('tools').disabled()
+ subdir('util')
+endif
# Data and build tests
if not get_option('tests').disabled()
diff --git a/meson_options.txt b/meson_options.txt
index 91882da..57a41f0 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -22,5 +22,8 @@ option('plugins', type: 'feature',
option('tests', type: 'feature',
description: 'Build tests')
+option('tools', type: 'feature',
+ description: 'Build and install command-line utilities')
+
option('title', type: 'string', value: 'LV2',
description: 'Project title')
diff --git a/util/meson.build b/util/meson.build
index 58cf5e4..759a993 100644
--- a/util/meson.build
+++ b/util/meson.build
@@ -1,4 +1,4 @@
-# Copyright 2022 David Robillard <d@drobilla.net>
+# Copyright 2022-2025 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
config = configuration_data({'LV2DIR': lv2dir})