aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-22 13:25:59 -0400
committerDavid Robillard <d@drobilla.net>2022-08-22 13:25:59 -0400
commit4a4c7cbaa444295b340c912e0f4a203b05be1fe8 (patch)
treeb2921f086a476e8d11696254a68c9fe0c654a523
parentebb4dce640d6cec61ad28df2129396256439c639 (diff)
downloadlv2-4a4c7cbaa444295b340c912e0f4a203b05be1fe8.tar.xz
Only install lv2specgen when required Python modules are found
-rw-r--r--lv2/core.lv2/meta.ttl2
-rw-r--r--meson.build6
2 files changed, 7 insertions, 1 deletions
diff --git a/lv2/core.lv2/meta.ttl b/lv2/core.lv2/meta.ttl
index d3a736f..ddc38f0 100644
--- a/lv2/core.lv2/meta.ttl
+++ b/lv2/core.lv2/meta.ttl
@@ -40,6 +40,8 @@ THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH R
dcs:changeset [
dcs:item [
rdfs:label "Fix includedir in pkg-config file."
+ ] , [
+ rdfs:label "Only install lv2specgen when required Python modules are found."
]
]
] , [
diff --git a/meson.build b/meson.build
index 703080b..178adf7 100644
--- a/meson.build
+++ b/meson.build
@@ -292,6 +292,7 @@ spec_files = files(
# Determine if all the dependencies for building documentation are present
doxygen = find_program('doxygen', required: get_option('docs'))
build_docs = false
+build_lv2specgen = false
doc_deps = []
if not get_option('docs').disabled()
doc_python_modules = ['lxml', 'markdown', 'pygments', 'rdflib']
@@ -308,13 +309,16 @@ if not get_option('docs').disabled()
endif
build_docs = doxygen.found() and python.found()
+ build_lv2specgen = python.found()
endif
# Run Doxygen first to generate tags
subdir('doc/c')
# Set up lv2specgen and lv2specgen_command_prefix (which references tags)
-subdir('lv2specgen')
+if build_lv2specgen
+ subdir('lv2specgen')
+endif
# Generate specification documentation
if build_docs