aboutsummaryrefslogtreecommitdiff
path: root/modules/gnome.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-02 01:48:24 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-02 13:49:11 +0300
commitcbc329fc326e437b16b4eb732c6b4fed2c3c7123 (patch)
treee2112c0050d59ccd3644a09dfde2c2a7a4ba5420 /modules/gnome.py
parent83cc5ce4c594306f0d37106dfaa829daa6c084a5 (diff)
downloadmeson-cbc329fc326e437b16b4eb732c6b4fed2c3c7123.zip
meson-cbc329fc326e437b16b4eb732c6b4fed2c3c7123.tar.gz
meson-cbc329fc326e437b16b4eb732c6b4fed2c3c7123.tar.bz2
Add sgml main to gtk-doc.
Diffstat (limited to 'modules/gnome.py')
-rw-r--r--modules/gnome.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gnome.py b/modules/gnome.py
index ed56989..43c0537 100644
--- a/modules/gnome.py
+++ b/modules/gnome.py
@@ -184,6 +184,9 @@ class GnomeModule:
raise MesonException('Gtkdoc arg must be string.')
if not 'src_dir' in kwargs:
raise MesonException('Keyword argument src_dir missing.')
+ main_sgml = kwargs.get('main_sgml', '')
+ if not isinstance(main_sgml, str):
+ raise MesonException('Main sgml keyword argument must be a string.')
src_dir = kwargs['src_dir']
targetname = modulename + '-doc'
command = os.path.normpath(os.path.join(os.path.split(__file__)[0], "../gtkdochelper.py"))
@@ -191,6 +194,7 @@ class GnomeModule:
state.environment.get_build_dir(),
state.subdir,
os.path.normpath(os.path.join(state.subdir, src_dir)),
+ main_sgml,
modulename]
res = [build.RunTarget(targetname, command, args, state.subdir)]
if kwargs.get('install', True):