[docs] Fix generated docs for deprecated symbols

Without ignoring HB_DEPRECATED, most deprecated symbols get missing from
documentation. Ignoring HB_DEPRECATED_FOR does not work, but this seems
to be a GTK-Doc bug.
This commit is contained in:
Khaled Hosny 2020-12-27 18:27:19 +02:00 committed by Behdad Esfahbod
parent 7236c7e29c
commit 4161146e62
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ SCANGOBJ_OPTIONS=
# Extra options to supply to gtkdoc-scan.
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
SCAN_OPTIONS=--rebuild-types --deprecated-guards="HB_DISABLE_DEPRECATED" \
--ignore-decorators="HB_EXTERN"
--ignore-decorators='HB_EXTERN|HB_DEPRECATED|HB_DEPRECATED_FOR()'
# Header files or dirs to ignore when scanning. Use base file/dir names
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code

View File

@ -56,7 +56,7 @@ gnome.gtkdoc('harfbuzz',
join_paths(meson.current_build_dir(), '..'),
],
scan_args: ['--deprecated-guards=HB_DISABLE_DEPRECATED',
'--ignore-decorators=HB_EXTERN',
'--ignore-decorators=HB_EXTERN|HB_DEPRECATED|HB_DEPRECATED_FOR()',
],
mkdb_args: ['--source-suffixes=h,cc',
'--xml-mode',