shithub: dav1d

Download patch

ref: bc008834b9e9d08f86d18227ca05a251492a0617
parent: 22fb8a42a1cb5e86f4b14070cd57430b37e57e2c
author: Matthias Dressel <[email protected]>
date: Fri Apr 3 01:45:02 EDT 2020

meson: Make docs generation subproject-safe

meson.source_root() returns the root of a parent project if dav1d is
embedded as a subproject.

--- a/doc/meson.build
+++ b/doc/meson.build
@@ -27,8 +27,8 @@
 
 if doxygen.found() and dot.found()
     conf_data = configuration_data()
-    conf_data.set('DOXYGEN_INPUT', join_paths(meson.source_root(), 'include/dav1d'))
-    conf_data.set('DOXYGEN_STRIP', join_paths(meson.source_root(), 'include'))
+    conf_data.set('DOXYGEN_INPUT', join_paths(dav1d_src_root, 'include/dav1d'))
+    conf_data.set('DOXYGEN_STRIP', join_paths(dav1d_src_root, 'include'))
     conf_data.set('DOXYGEN_OUTPUT', meson.current_build_dir())
     doxyfile = configure_file(input: 'Doxyfile.in',
                               output: 'Doxyfile',