aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-04-12 08:18:07 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2018-04-12 08:18:07 +0200
commit435cd8c922d45bb95fa5f2fd519b77d24ba8e321 (patch)
treeb9c71679f0de59b179855f0b7a996ab5aa5267b1 /mesonbuild
parente656b9c819b073a9af501619cf512f63aa16e8ec (diff)
downloadmeson-435cd8c922d45bb95fa5f2fd519b77d24ba8e321.zip
meson-435cd8c922d45bb95fa5f2fd519b77d24ba8e321.tar.gz
meson-435cd8c922d45bb95fa5f2fd519b77d24ba8e321.tar.bz2
gdbus_codegen: Fix new generated objects
The `ct` variable used in the ModuleReturnValue is created only for versions earlier than 2.55.2. However, in newer versions that variable does not exist.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/gnome.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 43a9d1c..4dc29c3 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -935,6 +935,8 @@ This will become a hard error in the future.''')
'build_by_default': build_by_default
}
targets.append(build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs))
+
+ objects = targets
else:
if 'docbook' in kwargs:
docbook = kwargs['docbook']
@@ -961,7 +963,8 @@ This will become a hard error in the future.''')
targets = [ct, ct]
if 'docbook' in kwargs:
targets.append(ct)
- return ModuleReturnValue(targets, [ct])
+ objects = [ct]
+ return ModuleReturnValue(targets, objects)
@permittedKwargs({'sources', 'c_template', 'h_template', 'install_header', 'install_dir',
'comments', 'identifier_prefix', 'symbol_prefix', 'eprod', 'vprod',