From d4a970f6962dda28133290194832b726b566ddab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jul 2022 18:59:06 -0400 Subject: Switch to meson build system --- doc/ns/meson.build | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/ns/meson.build (limited to 'doc/ns/meson.build') diff --git a/doc/ns/meson.build b/doc/ns/meson.build new file mode 100644 index 0000000..26471b9 --- /dev/null +++ b/doc/ns/meson.build @@ -0,0 +1,33 @@ +# Copyright 2022 David Robillard +# SPDX-License-Identifier: CC0-1.0 OR ISC + +config = configuration_data({'BASE': '/ns'}) + +if get_option('online_docs') + htaccess = configure_file( + configuration: config, + input: files('..' / 'htaccess.in'), + install_dir: lv2_docdir / 'ns', + output: '.htaccess', + ) +endif + +subdir('ext') +subdir('extensions') + +lv2_build_index = files(lv2_source_root / 'scripts' / 'lv2_build_index.py') + +index = custom_target( + 'index.html', + capture: true, + command: [ + lv2_build_index, + '--lv2-version', meson.project_version(), + '--lv2-source-root', lv2_source_root, + '@INPUT@' + ], + input: spec_files, + install: true, + install_dir: lv2_docdir / 'ns', + output: 'index.html', +) -- cgit v1.2.1