aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-05-25 22:55:02 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-05-25 22:55:02 +0300
commitd8e08224da6045460879068fd07cc3f6c6d3fc51 (patch)
treed5cb144b21038aefa3f51943eb6b2b77853dea49 /mesonbuild/modules/gnome.py
parentf3fa6c02a7cb7bdbe391ad85a6f87b8cfb4ee6b6 (diff)
downloadmeson-d8e08224da6045460879068fd07cc3f6c6d3fc51.zip
meson-d8e08224da6045460879068fd07cc3f6c6d3fc51.tar.gz
meson-d8e08224da6045460879068fd07cc3f6c6d3fc51.tar.bz2
Helper function to get the install dir of a gtkdoc module. Closes #551.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 718d07a..2c37655 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -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]