aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--meson.build30
-rw-r--r--meson_options.txt8
-rw-r--r--schemas.lv2/meson.build4
4 files changed, 30 insertions, 16 deletions
diff --git a/NEWS b/NEWS
index b110596..885a514 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
lv2 (1.18.11) unstable; urgency=medium
- * Add configuration option to control command-line tool installation
+ * Add configuration options to bundle, header, and tool installation
* Allow LV2_SYMBOL_EXPORT to be overridden
* Avoid over-use of yielding meson options
* Fix pylint warning in test script
@@ -9,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> Wed, 05 Nov 2025 17:20:42 +0000
+ -- David Robillard <d@drobilla.net> Thu, 13 Nov 2025 21:44:54 +0000
lv2 (1.18.10) stable; urgency=medium
diff --git a/meson.build b/meson.build
index de2648d..f99c302 100644
--- a/meson.build
+++ b/meson.build
@@ -219,16 +219,18 @@ endif
######################
# Generate pkg-config file for external dependants
-pkg.generate(
- description: 'Plugin standard for audio systems',
- filebase: 'lv2',
- name: 'LV2',
- variables: [
- 'lv2dir=' + lv2dir,
- 'plugindir=' + lv2dir,
- ],
- version: meson.project_version(),
-)
+if get_option('bundles') or get_option('headers') or get_option('old_headers')
+ pkg.generate(
+ description: 'Plugin standard for audio systems',
+ filebase: 'lv2',
+ name: 'LV2',
+ variables: [
+ 'lv2dir=' + lv2dir,
+ 'plugindir=' + lv2dir,
+ ],
+ version: meson.project_version(),
+ )
+endif
# Declare dependency for internal meson dependants
lv2_dep = declare_dependency(
@@ -291,7 +293,9 @@ all_spec_names = ['core'] + ext_names + extensions_names
prefix = get_option('prefix')
includedir = get_option('includedir')
-install_subdir('include/lv2', install_dir: includedir)
+if get_option('headers')
+ install_subdir('include/lv2', install_dir: includedir)
+endif
if get_option('old_headers')
uri_include_dir = prefix / includedir / 'lv2' / 'lv2plug.in' / 'ns'
@@ -369,7 +373,9 @@ foreach bundle_name : all_spec_names
endif
# Install specification bundle
- install_subdir(bundle, install_dir: lv2dir)
+ if get_option('bundles')
+ install_subdir(bundle, install_dir: lv2dir)
+ endif
endforeach
spec_files = files(
diff --git a/meson_options.txt b/meson_options.txt
index 57a41f0..4b12f68 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,13 +4,19 @@
option('docs', type: 'feature',
description: 'Build documentation')
+option('bundles', type: 'boolean',
+ description: 'Install specification data bundles')
+
+option('headers', type: 'boolean',
+ description: 'Install new-style headers at simplified paths')
+
option('lint', type: 'boolean', value: false,
description: 'Run code quality checks')
option('lv2dir', type: 'string', value: '',
description: 'LV2 bundle installation directory')
-option('old_headers', type: 'boolean', value: true,
+option('old_headers', type: 'boolean',
description: 'Install backwards compatible headers at URI-style paths')
option('online_docs', type: 'boolean', value: false,
diff --git a/schemas.lv2/meson.build b/schemas.lv2/meson.build
index 8a0d36b..e8c8179 100644
--- a/schemas.lv2/meson.build
+++ b/schemas.lv2/meson.build
@@ -12,4 +12,6 @@ schema_data = files(
'xsd.ttl',
)
-install_data(schema_data, install_dir: lv2dir / 'schemas.lv2')
+if get_option('bundles')
+ install_data(schema_data, install_dir: lv2dir / 'schemas.lv2')
+endif