diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-09 21:04:55 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-09 21:04:55 +0530 |
commit | 86cc4f27072bede2a6f7ed2879b2786529e3204f (patch) | |
tree | 354ff2856032aa12ff9ee427a10e23d617cfcacb /mesonbuild/modules/gnome.py | |
parent | 7ca2b8caca240184ed64180a7b56d74639e68c78 (diff) | |
download | meson-86cc4f27072bede2a6f7ed2879b2786529e3204f.zip meson-86cc4f27072bede2a6f7ed2879b2786529e3204f.tar.gz meson-86cc4f27072bede2a6f7ed2879b2786529e3204f.tar.bz2 |
gdbus_codegen: Guess the output list for docbook generation
We were setting it to a file list that would always be wrong, and
always out of date since it would never exist.
However, the output list is not predictable. It usually has a 1-1
relationship with the input XML files, but it may not.
This must be fixed later with API for users to provide the output
names.
See: https://github.com/mesonbuild/meson/pull/3539
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r-- | mesonbuild/modules/gnome.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index cb12eeb..da72a1f 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -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 } |