From 435cd8c922d45bb95fa5f2fd519b77d24ba8e321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Thu, 12 Apr 2018 08:18:07 +0200 Subject: 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. --- mesonbuild/modules/gnome.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mesonbuild/modules/gnome.py') 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', -- cgit v1.1