Fixed the remaining modules.

pull/2001/head
Jussi Pakkanen 8 years ago
parent 80d665e8de
commit 4a37baf3c5
  1. 2
      mesonbuild/modules/qt4.py
  2. 2
      mesonbuild/modules/qt5.py
  3. 2
      mesonbuild/modules/rpm.py
  4. 2
      mesonbuild/modules/windows.py

@ -20,6 +20,7 @@ from ..dependencies import Qt4Dependency
from . import ExtensionModule from . import ExtensionModule
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from . import ModuleReturnValue from . import ModuleReturnValue
from . import permittedKwargs
class Qt4Module(ExtensionModule): class Qt4Module(ExtensionModule):
tools_detected = False tools_detected = False
@ -96,6 +97,7 @@ class Qt4Module(ExtensionModule):
except Exception: except Exception:
return [] return []
@permittedKwargs(set(['moc_headers', 'moc_sources', 'ui_files', 'qresources', 'method']))
def preprocess(self, state, args, kwargs): def preprocess(self, state, args, kwargs):
rcc_files = kwargs.pop('qresources', []) rcc_files = kwargs.pop('qresources', [])
if not isinstance(rcc_files, list): if not isinstance(rcc_files, list):

@ -20,6 +20,7 @@ from ..dependencies import Qt5Dependency
from . import ExtensionModule from . import ExtensionModule
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from . import ModuleReturnValue from . import ModuleReturnValue
from . import permittedKwargs
class Qt5Module(ExtensionModule): class Qt5Module(ExtensionModule):
tools_detected = False tools_detected = False
@ -102,6 +103,7 @@ class Qt5Module(ExtensionModule):
except Exception: except Exception:
return [] return []
@permittedKwargs(set(['moc_headers', 'moc_sources', 'ui_files', 'qresources', 'method']))
def preprocess(self, state, args, kwargs): def preprocess(self, state, args, kwargs):
rcc_files = kwargs.pop('qresources', []) rcc_files = kwargs.pop('qresources', [])
if not isinstance(rcc_files, list): if not isinstance(rcc_files, list):

@ -22,11 +22,13 @@ from .. import mlog
from . import GirTarget, TypelibTarget from . import GirTarget, TypelibTarget
from . import ModuleReturnValue from . import ModuleReturnValue
from . import ExtensionModule from . import ExtensionModule
from . import noKwargs
import os import os
class RPMModule(ExtensionModule): class RPMModule(ExtensionModule):
@noKwargs
def generate_spec_template(self, state, args, kwargs): def generate_spec_template(self, state, args, kwargs):
compiler_deps = set() compiler_deps = set()
for compiler in state.compilers.values(): for compiler in state.compilers.values():

@ -20,6 +20,7 @@ from ..mesonlib import MesonException
from . import get_include_args from . import get_include_args
from . import ModuleReturnValue from . import ModuleReturnValue
from . import ExtensionModule from . import ExtensionModule
from . import permittedKwargs
class WindowsModule(ExtensionModule): class WindowsModule(ExtensionModule):
@ -29,6 +30,7 @@ class WindowsModule(ExtensionModule):
return compilers[l] return compilers[l]
raise MesonException('Resource compilation requires a C or C++ compiler.') raise MesonException('Resource compilation requires a C or C++ compiler.')
@permittedKwargs(set(['args', 'include_directories']))
def compile_resources(self, state, args, kwargs): def compile_resources(self, state, args, kwargs):
comp = self.detect_compiler(state.compilers) comp = self.detect_compiler(state.compilers)

Loading…
Cancel
Save