aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/gnome.py14
-rw-r--r--mesonbuild/modules/qt4.py22
-rw-r--r--mesonbuild/modules/qt5.py22
-rw-r--r--mesonbuild/modules/windows.py2
4 files changed, 30 insertions, 30 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index ebd819a..95113a0 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -503,10 +503,10 @@ can not be used with the current version of glib-compiled-resources, due to
elif isinstance(girtarget, build.SharedLibrary):
libname = girtarget.get_basename()
scan_command += ['--library', libname]
- scankwargs = {'output' : girfile,
- 'input' : libsources,
- 'command' : scan_command,
- 'depends' : depends,
+ scankwargs = {'output': girfile,
+ 'input': libsources,
+ 'command': scan_command,
+ 'depends': depends,
}
if kwargs.get('install'):
scankwargs['install'] = kwargs['install']
@@ -739,9 +739,9 @@ can not be used with the current version of glib-compiled-resources, due to
cmd += ['--c-namespace', kwargs.pop('namespace')]
cmd += ['--generate-c-code', '@OUTDIR@/' + namebase, '@INPUT@']
outputs = [namebase + '.c', namebase + '.h']
- custom_kwargs = {'input' : xml_file,
- 'output' : outputs,
- 'command' : cmd
+ custom_kwargs = {'input': xml_file,
+ 'output': outputs,
+ 'command': cmd
}
return build.CustomTarget(target_name, state.subdir, custom_kwargs)
diff --git a/mesonbuild/modules/qt4.py b/mesonbuild/modules/qt4.py
index 8df4f3e..95932d9 100644
--- a/mesonbuild/modules/qt4.py
+++ b/mesonbuild/modules/qt4.py
@@ -127,30 +127,30 @@ class Qt4Module():
else:
basename = os.path.split(rcc_files[0])[1]
name = 'qt4-' + basename.replace('.', '_')
- rcc_kwargs = {'input' : rcc_files,
- 'output' : name + '.cpp',
- 'command' : [self.rcc, '-o', '@OUTPUT@', '@INPUT@'],
- 'depend_files' : qrc_deps,
- }
+ rcc_kwargs = {'input': rcc_files,
+ 'output': name + '.cpp',
+ 'command': [self.rcc, '-o', '@OUTPUT@', '@INPUT@'],
+ 'depend_files': qrc_deps,
+ }
res_target = build.CustomTarget(name, state.subdir, rcc_kwargs)
sources.append(res_target)
if len(ui_files) > 0:
if not self.uic.found():
raise MesonException(err_msg.format('UIC', 'uic-qt4'))
- ui_kwargs = {'output' : 'ui_@BASENAME@.h',
- 'arguments' : ['-o', '@OUTPUT@', '@INPUT@']}
+ ui_kwargs = {'output': 'ui_@BASENAME@.h',
+ 'arguments': ['-o', '@OUTPUT@', '@INPUT@']}
ui_gen = build.Generator([self.uic], ui_kwargs)
ui_output = ui_gen.process_files('Qt4 ui', ui_files, state)
sources.append(ui_output)
if len(moc_headers) > 0:
- moc_kwargs = {'output' : 'moc_@BASENAME@.cpp',
- 'arguments' : ['@INPUT@', '-o', '@OUTPUT@']}
+ moc_kwargs = {'output': 'moc_@BASENAME@.cpp',
+ 'arguments': ['@INPUT@', '-o', '@OUTPUT@']}
moc_gen = build.Generator([self.moc], moc_kwargs)
moc_output = moc_gen.process_files('Qt4 moc header', moc_headers, state)
sources.append(moc_output)
if len(moc_sources) > 0:
- moc_kwargs = {'output' : '@BASENAME@.moc',
- 'arguments' : ['@INPUT@', '-o', '@OUTPUT@']}
+ moc_kwargs = {'output': '@BASENAME@.moc',
+ 'arguments': ['@INPUT@', '-o', '@OUTPUT@']}
moc_gen = build.Generator([self.moc], moc_kwargs)
moc_output = moc_gen.process_files('Qt4 moc source', moc_sources, state)
sources.append(moc_output)
diff --git a/mesonbuild/modules/qt5.py b/mesonbuild/modules/qt5.py
index d4cd261..eb467f7 100644
--- a/mesonbuild/modules/qt5.py
+++ b/mesonbuild/modules/qt5.py
@@ -133,30 +133,30 @@ class Qt5Module():
else:
basename = os.path.split(rcc_files[0])[1]
name = 'qt5-' + basename.replace('.', '_')
- rcc_kwargs = {'input' : rcc_files,
- 'output' : name + '.cpp',
- 'command' : [self.rcc, '-o', '@OUTPUT@', '@INPUT@'],
- 'depend_files' : qrc_deps,
- }
+ rcc_kwargs = {'input': rcc_files,
+ 'output': name + '.cpp',
+ 'command': [self.rcc, '-o', '@OUTPUT@', '@INPUT@'],
+ 'depend_files': qrc_deps,
+ }
res_target = build.CustomTarget(name, state.subdir, rcc_kwargs)
sources.append(res_target)
if len(ui_files) > 0:
if not self.uic.found():
raise MesonException(err_msg.format('UIC', 'uic-qt5'))
- ui_kwargs = {'output' : 'ui_@BASENAME@.h',
- 'arguments' : ['-o', '@OUTPUT@', '@INPUT@']}
+ ui_kwargs = {'output': 'ui_@BASENAME@.h',
+ 'arguments': ['-o', '@OUTPUT@', '@INPUT@']}
ui_gen = build.Generator([self.uic], ui_kwargs)
ui_output = ui_gen.process_files('Qt5 ui', ui_files, state)
sources.append(ui_output)
if len(moc_headers) > 0:
- moc_kwargs = {'output' : 'moc_@BASENAME@.cpp',
- 'arguments' : ['@INPUT@', '-o', '@OUTPUT@']}
+ moc_kwargs = {'output': 'moc_@BASENAME@.cpp',
+ 'arguments': ['@INPUT@', '-o', '@OUTPUT@']}
moc_gen = build.Generator([self.moc], moc_kwargs)
moc_output = moc_gen.process_files('Qt5 moc header', moc_headers, state)
sources.append(moc_output)
if len(moc_sources) > 0:
- moc_kwargs = {'output' : '@BASENAME@.moc',
- 'arguments' : ['@INPUT@', '-o', '@OUTPUT@']}
+ moc_kwargs = {'output': '@BASENAME@.moc',
+ 'arguments': ['@INPUT@', '-o', '@OUTPUT@']}
moc_gen = build.Generator([self.moc], moc_kwargs)
moc_output = moc_gen.process_files('Qt5 moc source', moc_sources, state)
sources.append(moc_output)
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py
index d034497..56bad2d 100644
--- a/mesonbuild/modules/windows.py
+++ b/mesonbuild/modules/windows.py
@@ -50,7 +50,7 @@ class WindowsModule:
suffix = 'o'
if not rescomp.found():
raise MesonException('Could not find Windows resource compiler %s.' % ' '.join(rescomp.get_command()))
- res_kwargs = {'output' : '@BASENAME@.' + suffix,
+ res_kwargs = {'output': '@BASENAME@.' + suffix,
'arguments': res_args}
res_gen = build.Generator([rescomp], res_kwargs)
res_output = res_gen.process_files('Windows resource', args, state)