diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-25 22:55:02 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-25 22:55:02 +0300 |
commit | d8e08224da6045460879068fd07cc3f6c6d3fc51 (patch) | |
tree | d5cb144b21038aefa3f51943eb6b2b77853dea49 /mesonbuild/modules/gnome.py | |
parent | f3fa6c02a7cb7bdbe391ad85a6f87b8cfb4ee6b6 (diff) | |
download | meson-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.py | 9 |
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] |