Helper function to get the install dir of a gtkdoc module. Closes #551.

pull/557/head
Jussi Pakkanen 9 years ago
parent f3fa6c02a7
commit d8e08224da
  1. 9
      mesonbuild/modules/gnome.py
  2. 2
      test cases/frameworks/10 gtk-doc/doc/meson.build
  3. 4
      test cases/frameworks/10 gtk-doc/meson.build

@ -295,6 +295,15 @@ class GnomeModule:
res.append(build.InstallScript(command + args))
return res
def gtkdoc_html_dir(self, state, args, kwarga):
if len(args) != 1:
raise MesonException('Must have exactly one argument.')
modulename = args[0]
if not isinstance(modulename, str):
raise MesonException('Argument must be a string')
return os.path.join('share/gtkdoc/html', modulename)
def unpack_args(self, arg, kwarg_name, kwargs):
try:
new_args = kwargs[kwarg_name]

@ -1,5 +1,3 @@
gnome = import('gnome')
cdata = configuration_data()
cdata.set('VERSION', '1.0')
configure_file(input : 'version.xml.in',

@ -1,5 +1,9 @@
project('gtkdoctest', 'c')
gnome = import('gnome')
assert(gnome.gtkdoc_html_dir('foobar') == 'share/gtkdoc/html/foobar', 'Gtkdoc install dir is incorrect.')
inc = include_directories('include')
# We have to disable this test until this bug fix has landed to

Loading…
Cancel
Save