mirror of
https://code.videolan.org/videolan/dav1d
synced 2026-06-11 04:03:05 +00:00
meson/doc: Fix doxygen config
* Doxygen had a longstanding bug [0] where it would use `dot` even if not configured to do so. Due to this behaviour our config magically worked. This bug is fixed in 1.9.2 therefore we need to explicitly enable `dot` support in order to keep existing functionality. * Enables WARN_AS_ERROR to catch mistakes. * Adds a version string to the header to easily identify which commit the docs are built from. [0] https://github.com/doxygen/doxygen/issues/7273
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
PROJECT_NAME = dav1d
|
PROJECT_NAME = dav1d
|
||||||
|
PROJECT_NUMBER = \@VCS_TAG\@
|
||||||
|
PROJECT_BRIEF = dav1d is an AV1 decoder
|
||||||
OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT@
|
OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT@
|
||||||
STRIP_FROM_PATH = @DOXYGEN_STRIP@
|
STRIP_FROM_PATH = @DOXYGEN_STRIP@
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
@@ -7,10 +9,12 @@ EXTRACT_ALL = YES
|
|||||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
OPTIMIZE_OUTPUT_FOR_C = YES
|
||||||
DOXYFILE_ENCODING = UTF-8
|
DOXYFILE_ENCODING = UTF-8
|
||||||
TYPEDEF_HIDES_STRUCT = YES
|
TYPEDEF_HIDES_STRUCT = YES
|
||||||
|
HAVE_DOT = YES
|
||||||
|
|
||||||
QUIET = YES
|
QUIET = YES
|
||||||
WARNINGS = YES
|
WARNINGS = YES
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
WARN_IF_UNDOCUMENTED = YES
|
||||||
|
WARN_AS_ERROR = FAIL_ON_WARNINGS
|
||||||
|
|
||||||
INPUT = @DOXYGEN_INPUT@
|
INPUT = @DOXYGEN_INPUT@
|
||||||
FILE_PATTERNS = *.h
|
FILE_PATTERNS = *.h
|
||||||
+11
-4
@@ -1,4 +1,4 @@
|
|||||||
# Copyright © 2018-2021, VideoLAN and dav1d authors
|
# Copyright © 2018-2022, VideoLAN and dav1d authors
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -33,12 +33,19 @@ conf_data = configuration_data()
|
|||||||
conf_data.set('DOXYGEN_INPUT', dav1d_src_root / 'include/dav1d')
|
conf_data.set('DOXYGEN_INPUT', dav1d_src_root / 'include/dav1d')
|
||||||
conf_data.set('DOXYGEN_STRIP', dav1d_src_root / 'include')
|
conf_data.set('DOXYGEN_STRIP', dav1d_src_root / 'include')
|
||||||
conf_data.set('DOXYGEN_OUTPUT', meson.current_build_dir())
|
conf_data.set('DOXYGEN_OUTPUT', meson.current_build_dir())
|
||||||
doxyfile = configure_file(input: 'Doxyfile.in',
|
doxyfile = configure_file(input: 'Doxyfile.in.in',
|
||||||
output: 'Doxyfile',
|
output: 'Doxyfile.in',
|
||||||
configuration: conf_data)
|
configuration: conf_data)
|
||||||
|
|
||||||
|
doxyfile_rev_target = vcs_tag(command: [
|
||||||
|
'git', '--git-dir', dav1d_git_dir, 'describe', '--long', '--always'
|
||||||
|
],
|
||||||
|
input: doxyfile,
|
||||||
|
output: 'Doxyfile'
|
||||||
|
)
|
||||||
|
|
||||||
custom_target('doc',
|
custom_target('doc',
|
||||||
build_by_default: false,
|
build_by_default: false,
|
||||||
command: [doxygen, doxyfile],
|
command: [doxygen, doxyfile_rev_target],
|
||||||
output: ['html']
|
output: ['html']
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user