aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/port-groups
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-07 18:59:06 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 18:13:53 -0400
commitd4a970f6962dda28133290194832b726b566ddab (patch)
treecfe9747042d55388705371a8ce95505ffb702470 /lv2/port-groups
parent7f3a2651a3635232d94f7bf9ce23d6b575735732 (diff)
downloadlv2-d4a970f6962dda28133290194832b726b566ddab.tar.xz
Switch to meson build system
Diffstat (limited to 'lv2/port-groups')
-rw-r--r--lv2/port-groups/meson.build40
1 files changed, 40 insertions, 0 deletions
diff --git a/lv2/port-groups/meson.build b/lv2/port-groups/meson.build
new file mode 100644
index 0000000..816109f
--- /dev/null
+++ b/lv2/port-groups/meson.build
@@ -0,0 +1,40 @@
+# Copyright 2022 David Robillard <d@drobilla.net>
+# SPDX-License-Identifier: CC0-1.0 OR ISC
+
+name = 'port-groups'
+path = 'ns' / 'ext' / 'port-groups'
+
+port_groups_data = files(
+ 'port-groups.meta.ttl',
+ 'port-groups.ttl',
+ 'manifest.ttl',
+)
+
+headers = files(
+ 'port-groups.h',
+)
+
+# Install specification bundle
+install_data(port_groups_data, install_dir: lv2dir / name + '.lv2')
+install_headers(headers, subdir: 'lv2' / name)
+if get_option('old_headers')
+ install_headers(headers, subdir: 'lv2' / 'lv2plug.in' / path)
+endif
+
+# Build documentation
+if build_docs
+ lv2_port_groups_docs = custom_target(
+ name + '.html',
+ command: lv2specgen_command_prefix + [
+ '--docdir=../../html',
+ '--style-uri=../../aux/style.css',
+ '@INPUT@',
+ '@OUTPUT@',
+ ],
+ depends: doc_deps,
+ input: files('port-groups.ttl'),
+ install: true,
+ install_dir: lv2_docdir / 'ns' / 'ext',
+ output: name + '.html',
+ )
+endif