diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-06 20:12:17 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-06 20:25:16 +0530 |
commit | 26aeef7bf5243b9003648b272b956ff760f21f35 (patch) | |
tree | dc88cc8506a669ee7efdacf15bd18507348c49f2 /mesonbuild/modules/gnome.py | |
parent | c1f275bfa644beafab9f8572351d4b64d61c148b (diff) | |
download | meson-nirbheek/fix-gtkdoc-content-files-File.tar.gz |
gnome.gdbus_codegen: Fix output file list for docbook custom targetsnirbheek/fix-gtkdoc-content-files-File
We were setting it to a totally wrong name, while the output of gtkdoc
is very predictable.
Also add a test for it, and fix a bug in meson introspect found while
adding the test.
The test will only work with glib 2.56.2, so it will be skipped on the
CI. I ran it manually to verify that it works.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r-- | mesonbuild/modules/gnome.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index e553b4afa..da72a1fff 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -881,7 +881,7 @@ This will become a hard error in the future.''') if len(args) not in (1, 2): raise MesonException('Gdbus_codegen takes at most two arguments, name and xml file.') namebase = args[0] - xml_files = [args[1:]] + xml_files = args[1:] target_name = namebase + '-gdbus' cmd = [self.interpreter.find_program_impl('gdbus-codegen')] if 'interface_prefix' in kwargs: @@ -938,9 +938,13 @@ This will become a hard error in the future.''') docbook_cmd = cmd + ['--output-directory', '@OUTDIR@', '--generate-docbook', docbook, '@INPUT@'] + # The docbook output is always ${docbook}-${name_of_xml_file} output = namebase + '-docbook' + outputs = [] + for f in xml_files: + outputs.append('{}-{}'.format(docbook, f)) custom_kwargs = {'input': xml_files, - 'output': output, + 'output': outputs, 'command': docbook_cmd, 'build_by_default': build_by_default } |