diff options
| author | David Robillard <d@drobilla.net> | 2025-11-13 16:45:17 -0500 |
|---|---|---|
| committer | David Robillard <d@drobilla.net> | 2025-11-13 16:46:14 -0500 |
| commit | 24d70a1e94d37ccaa979724715273bdf7b5be062 (patch) | |
| tree | efdc28e13f765dd78463b03baf4ffa590a799ea9 | |
| parent | 7cb031f12795a3f4a62428322e30a7ce60358a5c (diff) | |
| download | lv2-24d70a1e94d37ccaa979724715273bdf7b5be062.tar.xz | |
Add configuration options to control bundle and header installation
| -rw-r--r-- | NEWS | 4 | ||||
| -rw-r--r-- | meson.build | 30 | ||||
| -rw-r--r-- | meson_options.txt | 8 | ||||
| -rw-r--r-- | schemas.lv2/meson.build | 4 |
4 files changed, 30 insertions, 16 deletions
@@ -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 |