gtkdoc: Add 'check' kwarg (#5591)
* gtkdoc: Add 'check' kwarg This runs gtkdoc-check in meson tests. Also reorganize the gtkdoc test because we cannot reliably build multiple doc into the same directory. Not all files generated by gtk-doc are prefixed with the target name.pull/5671/head
parent
9bb6093fa0
commit
f5da881126
12 changed files with 228 additions and 29 deletions
@ -0,0 +1,11 @@ |
||||
## gtkdoc-check support |
||||
|
||||
`gnome.gtkdoc()` now has a `check` keyword argument. If `true` runs it will run |
||||
`gtkdoc-check` when running unit tests. Note that this has the downside of |
||||
rebuilding the doc for each build, which is often very slow. It usually should |
||||
be enabled only in CI. |
||||
|
||||
## `gnome.gtkdoc()` returns target object |
||||
|
||||
`gnome.gtkdoc()` now returns a target object that can be passed as dependency to |
||||
other targets using generated doc files (e.g. in `content_files` of another doc). |
@ -0,0 +1,41 @@ |
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
||||
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ |
||||
<!ENTITY version SYSTEM "../version.xml"> |
||||
]> |
||||
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude"> |
||||
<bookinfo> |
||||
<title>Foolib Reference Manual</title> |
||||
<releaseinfo> |
||||
for Foobar &version; |
||||
</releaseinfo> |
||||
<authorgroup> |
||||
<author> |
||||
<firstname>Jonny</firstname> |
||||
<surname>Example</surname> |
||||
<affiliation> |
||||
<address> |
||||
<email>unknown@example.com</email> |
||||
</address> |
||||
</affiliation> |
||||
</author> |
||||
</authorgroup> |
||||
<copyright> |
||||
<year>2015</year> |
||||
<holder>Foobar corporation holdings ltd</holder> |
||||
</copyright> |
||||
</bookinfo> |
||||
|
||||
<reference id="foobar"> |
||||
<title>Foobar library</title> |
||||
<partintro> |
||||
<para> |
||||
This part documents Foobar libs. |
||||
</para> |
||||
</partintro> |
||||
<xi:include href="xml/foo.xml"/> |
||||
<xi:include href="../../include/bar.xml"/> |
||||
<xi:include href="xml/foo-version.xml"/> |
||||
</reference> |
||||
|
||||
</book> |
@ -0,0 +1,5 @@ |
||||
gnome.gtkdoc('foobar', |
||||
src_dir : inc, |
||||
main_sgml : 'foobar-docs.sgml', |
||||
content_files : [docbook, version_xml], |
||||
install : true) |
@ -0,0 +1,41 @@ |
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
||||
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ |
||||
<!ENTITY version SYSTEM "../version.xml"> |
||||
]> |
||||
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude"> |
||||
<bookinfo> |
||||
<title>Foolib Reference Manual</title> |
||||
<releaseinfo> |
||||
for Foobar &version; |
||||
</releaseinfo> |
||||
<authorgroup> |
||||
<author> |
||||
<firstname>Jonny</firstname> |
||||
<surname>Example</surname> |
||||
<affiliation> |
||||
<address> |
||||
<email>unknown@example.com</email> |
||||
</address> |
||||
</affiliation> |
||||
</author> |
||||
</authorgroup> |
||||
<copyright> |
||||
<year>2015</year> |
||||
<holder>Foobar corporation holdings ltd</holder> |
||||
</copyright> |
||||
</bookinfo> |
||||
|
||||
<reference id="foobar"> |
||||
<title>Foobar library</title> |
||||
<partintro> |
||||
<para> |
||||
This part documents Foobar libs. |
||||
</para> |
||||
</partintro> |
||||
<xi:include href="xml/foo.xml"/> |
||||
<xi:include href="../../include/bar.xml"/> |
||||
<xi:include href="xml/foo-version.xml"/> |
||||
</reference> |
||||
|
||||
</book> |
@ -0,0 +1,6 @@ |
||||
gnome.gtkdoc('foobar2', |
||||
src_dir : inc, |
||||
main_sgml : 'foobar-docs.sgml', |
||||
content_files : [docbook, version_xml], |
||||
install : true, |
||||
install_dir : 'foobar2') |
@ -0,0 +1,41 @@ |
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
||||
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ |
||||
<!ENTITY version SYSTEM "../version.xml"> |
||||
]> |
||||
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude"> |
||||
<bookinfo> |
||||
<title>Foolib Reference Manual</title> |
||||
<releaseinfo> |
||||
for Foobar &version; |
||||
</releaseinfo> |
||||
<authorgroup> |
||||
<author> |
||||
<firstname>Jonny</firstname> |
||||
<surname>Example</surname> |
||||
<affiliation> |
||||
<address> |
||||
<email>unknown@example.com</email> |
||||
</address> |
||||
</affiliation> |
||||
</author> |
||||
</authorgroup> |
||||
<copyright> |
||||
<year>2015</year> |
||||
<holder>Foobar corporation holdings ltd</holder> |
||||
</copyright> |
||||
</bookinfo> |
||||
|
||||
<reference id="foobar"> |
||||
<title>Foobar library</title> |
||||
<partintro> |
||||
<para> |
||||
This part documents Foobar libs. |
||||
</para> |
||||
</partintro> |
||||
<xi:include href="xml/foo.xml"/> |
||||
<xi:include href="../../include/bar.xml"/> |
||||
<xi:include href="xml/foo-version.xml"/> |
||||
</reference> |
||||
|
||||
</book> |
@ -0,0 +1,6 @@ |
||||
gnome.gtkdoc('foobar', |
||||
module_version : '3.0', |
||||
src_dir : inc, |
||||
main_sgml : 'foobar-docs.sgml', |
||||
content_files : [docbook, version_xml], |
||||
install : true) |
@ -0,0 +1,41 @@ |
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
||||
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ |
||||
<!ENTITY version SYSTEM "../version.xml"> |
||||
]> |
||||
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude"> |
||||
<bookinfo> |
||||
<title>Foolib Reference Manual</title> |
||||
<releaseinfo> |
||||
for Foobar &version; |
||||
</releaseinfo> |
||||
<authorgroup> |
||||
<author> |
||||
<firstname>Jonny</firstname> |
||||
<surname>Example</surname> |
||||
<affiliation> |
||||
<address> |
||||
<email>unknown@example.com</email> |
||||
</address> |
||||
</affiliation> |
||||
</author> |
||||
</authorgroup> |
||||
<copyright> |
||||
<year>2015</year> |
||||
<holder>Foobar corporation holdings ltd</holder> |
||||
</copyright> |
||||
</bookinfo> |
||||
|
||||
<reference id="foobar"> |
||||
<title>Foobar library</title> |
||||
<partintro> |
||||
<para> |
||||
This part documents Foobar libs. |
||||
</para> |
||||
</partintro> |
||||
<xi:include href="xml/foo.xml"/> |
||||
<xi:include href="../../include/bar.xml"/> |
||||
<xi:include href="xml/foo-version.xml"/> |
||||
</reference> |
||||
|
||||
</book> |
@ -0,0 +1,7 @@ |
||||
gnome.gtkdoc('foobar2', |
||||
module_version : '3.0', |
||||
src_dir : inc, |
||||
main_sgml : 'foobar-docs.sgml', |
||||
content_files : [docbook, version_xml], |
||||
install : true, |
||||
install_dir : 'foobar3') |
Loading…
Reference in new issue