diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-11-01 12:13:36 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-11-01 14:11:48 +0000 |
commit | e226d702bc0ae0dbe15872a54e0743b197b37851 (patch) | |
tree | f84486bf798bff5339d88b2a98060c3c2c087cef /mesonbuild/interpreter.py | |
parent | 6eeecb8585aed84759f968efb315e97db0cc8e52 (diff) | |
download | meson-e226d702bc0ae0dbe15872a54e0743b197b37851.zip meson-e226d702bc0ae0dbe15872a54e0743b197b37851.tar.gz meson-e226d702bc0ae0dbe15872a54e0743b197b37851.tar.bz2 |
gtkdoc: Add `ignore_headers` positional argument
Not all headers are public, or contain public types. GTK-Doc allows
adding headers to be ignored during the "scan" phase, by passing the
`--ignore-headers` command line argument to gtkdoc-scan.
Currently, you can do something like:
ignored_headers = [ 'foo-private.h', 'bar-private.h', ]
gnome.gtkdoc(...
scan_args: [
'--ignore-headers=' + ' '.join(ignored_headers),
],
...)
But it does not guarantee escaping rules and it's definitely not nice.
We can add a simpler version of that mechanism through a new positional
argument, `ignore_headers`, which behaves like `content_files` or
`html_assets`, and takes an array of header files to ignore:
gnome.gtkdoc(...
ignore_headers: ignored_headers,
...)
Diffstat (limited to 'mesonbuild/interpreter.py')
0 files changed, 0 insertions, 0 deletions