tests: Add a regression test for gtk-doc arguments

gobject_typesfile
html_assets

https://github.com/mesonbuild/meson/pull/9807
pull/9828/head
Nirbheek Chauhan 3 years ago committed by Nirbheek Chauhan
parent 67bb25b246
commit 23bc0e6422
  1. 0
      test cases/frameworks/10 gtk-doc/doc/foobar1/baz.jpg
  2. 0
      test cases/frameworks/10 gtk-doc/doc/foobar1/baz.png.in
  3. 5
      test cases/frameworks/10 gtk-doc/doc/foobar1/meson.build
  4. 7
      test cases/frameworks/10 gtk-doc/doc/foobar2/meson.build
  5. 2
      test cases/frameworks/10 gtk-doc/test.json

@ -1,8 +1,13 @@
png = configure_file(input: 'baz.png.in',
output: 'baz.png',
copy: true)
gnome.gtkdoc('foobar', gnome.gtkdoc('foobar',
src_dir : [inc, '.'], src_dir : [inc, '.'],
main_sgml : 'foobar-docs.sgml', main_sgml : 'foobar-docs.sgml',
content_files : [docbook, version_xml], content_files : [docbook, version_xml],
dependencies: foo_dep, dependencies: foo_dep,
html_assets: ['baz.jpg', png],
# Manually written types file for regression test: # Manually written types file for regression test:
# https://github.com/mesonbuild/meson/issues/8744 # https://github.com/mesonbuild/meson/issues/8744
gobject_typesfile: 'foobar.types', gobject_typesfile: 'foobar.types',

@ -1,6 +1,13 @@
types = configure_file(input: '../foobar1/foobar.types',
output: 'foobar.types',
copy: true
)
gnome.gtkdoc('foobar2', gnome.gtkdoc('foobar2',
src_dir : inc, src_dir : inc,
main_sgml : 'foobar-docs.sgml', main_sgml : 'foobar-docs.sgml',
content_files : [docbook, version_xml], content_files : [docbook, version_xml],
gobject_typesfile: types,
dependencies: foo_dep,
install : true, install : true,
install_dir : 'foobar2') install_dir : 'foobar2')

@ -2,6 +2,8 @@
"installed": [ "installed": [
{"type": "file", "file": "usr/include/foo-version.h"}, {"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/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.devhelp2"},
{"type": "file", "file": "usr/share/gtk-doc/html/foobar/foobar.html"}, {"type": "file", "file": "usr/share/gtk-doc/html/foobar/foobar.html"},
{"type": "file", "file": "usr/share/gtk-doc/html/foobar/FooObj.html"}, {"type": "file", "file": "usr/share/gtk-doc/html/foobar/FooObj.html"},

Loading…
Cancel
Save