diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-01-13 13:01:40 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2022-01-15 00:38:14 +0530 |
commit | 23bc0e642265dfda8328635422e0ab3ac2e90dde (patch) | |
tree | 6f7fe6d7ef00171a32bf5b77b6f1b474d00f7582 /test cases/frameworks | |
parent | 67bb25b246ccc3b16744fbda0cf4f2c494e7662d (diff) | |
download | meson-23bc0e642265dfda8328635422e0ab3ac2e90dde.zip meson-23bc0e642265dfda8328635422e0ab3ac2e90dde.tar.gz meson-23bc0e642265dfda8328635422e0ab3ac2e90dde.tar.bz2 |
tests: Add a regression test for gtk-doc arguments
gobject_typesfile
html_assets
https://github.com/mesonbuild/meson/pull/9807
Diffstat (limited to 'test cases/frameworks')
5 files changed, 14 insertions, 0 deletions
diff --git a/test cases/frameworks/10 gtk-doc/doc/foobar1/baz.jpg b/test cases/frameworks/10 gtk-doc/doc/foobar1/baz.jpg new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/frameworks/10 gtk-doc/doc/foobar1/baz.jpg diff --git a/test cases/frameworks/10 gtk-doc/doc/foobar1/baz.png.in b/test cases/frameworks/10 gtk-doc/doc/foobar1/baz.png.in new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test cases/frameworks/10 gtk-doc/doc/foobar1/baz.png.in diff --git a/test cases/frameworks/10 gtk-doc/doc/foobar1/meson.build b/test cases/frameworks/10 gtk-doc/doc/foobar1/meson.build index f4b3724..027414f 100644 --- a/test cases/frameworks/10 gtk-doc/doc/foobar1/meson.build +++ b/test cases/frameworks/10 gtk-doc/doc/foobar1/meson.build @@ -1,8 +1,13 @@ +png = configure_file(input: 'baz.png.in', + output: 'baz.png', + copy: true) + gnome.gtkdoc('foobar', src_dir : [inc, '.'], main_sgml : 'foobar-docs.sgml', content_files : [docbook, version_xml], dependencies: foo_dep, + html_assets: ['baz.jpg', png], # Manually written types file for regression test: # https://github.com/mesonbuild/meson/issues/8744 gobject_typesfile: 'foobar.types', diff --git a/test cases/frameworks/10 gtk-doc/doc/foobar2/meson.build b/test cases/frameworks/10 gtk-doc/doc/foobar2/meson.build index 0b2faa0..5f860ef 100644 --- a/test cases/frameworks/10 gtk-doc/doc/foobar2/meson.build +++ b/test cases/frameworks/10 gtk-doc/doc/foobar2/meson.build @@ -1,6 +1,13 @@ +types = configure_file(input: '../foobar1/foobar.types', + output: 'foobar.types', + copy: true +) + gnome.gtkdoc('foobar2', src_dir : inc, main_sgml : 'foobar-docs.sgml', content_files : [docbook, version_xml], + gobject_typesfile: types, + dependencies: foo_dep, install : true, install_dir : 'foobar2') diff --git a/test cases/frameworks/10 gtk-doc/test.json b/test cases/frameworks/10 gtk-doc/test.json index edade39..f2805d3 100644 --- a/test cases/frameworks/10 gtk-doc/test.json +++ b/test cases/frameworks/10 gtk-doc/test.json @@ -2,6 +2,8 @@ "installed": [ {"type": "file", "file": "usr/include/foo-version.h"}, {"type": "file", "file": "usr/share/gtk-doc/html/foobar/BAR.html"}, + {"type": "file", "file": "usr/share/gtk-doc/html/foobar/baz.jpg"}, + {"type": "file", "file": "usr/share/gtk-doc/html/foobar/baz.png"}, {"type": "file", "file": "usr/share/gtk-doc/html/foobar/foobar.devhelp2"}, {"type": "file", "file": "usr/share/gtk-doc/html/foobar/foobar.html"}, {"type": "file", "file": "usr/share/gtk-doc/html/foobar/FooObj.html"}, |