aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-01-06 19:22:56 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-06 19:22:56 +0200
commit570c9b150b9c604b3c221d7684a5cee3494d3d7a (patch)
treec2c304b2e052fd3d09622a1313ba2afa95b4b9e8 /mesonbuild/modules
parentde24fddbd149d465dc737d707fed204bdf8d06cc (diff)
downloadmeson-570c9b150b9c604b3c221d7684a5cee3494d3d7a.zip
meson-570c9b150b9c604b3c221d7684a5cee3494d3d7a.tar.gz
meson-570c9b150b9c604b3c221d7684a5cee3494d3d7a.tar.bz2
Fix a few more modules.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/i18n.py7
-rw-r--r--mesonbuild/modules/qt4.py3
-rw-r--r--mesonbuild/modules/qt5.py3
3 files changed, 9 insertions, 4 deletions
diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py
index 4b4ae3d..fa52463 100644
--- a/mesonbuild/modules/i18n.py
+++ b/mesonbuild/modules/i18n.py
@@ -15,6 +15,8 @@
from os import path
from .. import coredata, mesonlib, build
from ..mesonlib import MesonException
+from . import ModuleReturnValue
+
import sys
import shutil
@@ -59,7 +61,8 @@ class I18nModule:
kwargs['command'] = ['msgfmt', '--' + file_type,
'--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@']
- return build.CustomTarget(kwargs['output'] + '_merge', state.subdir, kwargs)
+ ct = build.CustomTarget(kwargs['output'] + '_merge', state.subdir, kwargs)
+ return ModuleReturnValue(ct, [ct])
def gettext(self, state, args, kwargs):
if len(args) != 1:
@@ -114,7 +117,7 @@ class I18nModule:
args.append(lang_arg)
iscript = build.RunScript(script, args)
- return [pottarget, gmotarget, iscript, updatepotarget]
+ return ModuleReturnValue(None, [pottarget, gmotarget, iscript, updatepotarget])
def initialize():
return I18nModule()
diff --git a/mesonbuild/modules/qt4.py b/mesonbuild/modules/qt4.py
index beb7ca5..6759270 100644
--- a/mesonbuild/modules/qt4.py
+++ b/mesonbuild/modules/qt4.py
@@ -18,6 +18,7 @@ from .. import build
from ..mesonlib import MesonException, Popen_safe
from ..dependencies import Qt4Dependency
import xml.etree.ElementTree as ET
+from . import ModuleReturnValue
class Qt4Module():
tools_detected = False
@@ -153,7 +154,7 @@ class Qt4Module():
moc_gen = build.Generator([self.moc], moc_kwargs)
moc_output = moc_gen.process_files('Qt4 moc source', moc_sources, state)
sources.append(moc_output)
- return sources
+ return ModuleReturnValue(sources, sources)
def initialize():
mlog.warning('rcc dependencies will not work properly until this upstream issue is fixed:',
diff --git a/mesonbuild/modules/qt5.py b/mesonbuild/modules/qt5.py
index 2e348db..53f1cb5 100644
--- a/mesonbuild/modules/qt5.py
+++ b/mesonbuild/modules/qt5.py
@@ -18,6 +18,7 @@ from .. import build
from ..mesonlib import MesonException, Popen_safe
from ..dependencies import Qt5Dependency
import xml.etree.ElementTree as ET
+from . import ModuleReturnValue
class Qt5Module():
tools_detected = False
@@ -159,7 +160,7 @@ class Qt5Module():
moc_gen = build.Generator([self.moc], moc_kwargs)
moc_output = moc_gen.process_files('Qt5 moc source', moc_sources, state)
sources.append(moc_output)
- return sources
+ return ModuleReturnValue(sources, sources)
def initialize():
mlog.warning('rcc dependencies will not work reliably until this upstream issue is fixed:',