aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-11-13 16:45:17 -0500
committerDavid Robillard <d@drobilla.net>2025-11-13 16:46:14 -0500
commit24d70a1e94d37ccaa979724715273bdf7b5be062 (patch)
treeefdc28e13f765dd78463b03baf4ffa590a799ea9 /meson.build
parent7cb031f12795a3f4a62428322e30a7ce60358a5c (diff)
downloadlv2-24d70a1e94d37ccaa979724715273bdf7b5be062.tar.xz
Add configuration options to control bundle and header installation
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build30
1 files changed, 18 insertions, 12 deletions
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(