removes unnecessary code as suggested by @jeandet
Details: https://github.com/mesonbuild/meson/pull/2529#discussion_r146985692
This commit is contained in:
parent
32a8ab40c1
commit
b919e05821
|
@ -129,11 +129,7 @@ class QtBaseModule:
|
||||||
moc_output = moc_gen.process_files('Qt{} moc header'.format(self.qt_version), moc_headers, state)
|
moc_output = moc_gen.process_files('Qt{} moc header'.format(self.qt_version), moc_headers, state)
|
||||||
sources.append(moc_output)
|
sources.append(moc_output)
|
||||||
if len(moc_sources) > 0:
|
if len(moc_sources) > 0:
|
||||||
if len(moc_extra_arguments) > 0:
|
arguments = [moc_extra_arguments, '@INPUT@', '-o', '@OUTPUT@']
|
||||||
concatinated_moc_extra_arguments = ' '.join(moc_extra_arguments)
|
|
||||||
arguments = [concatinated_moc_extra_arguments, '@INPUT@', '-o', '@OUTPUT@']
|
|
||||||
else:
|
|
||||||
arguments = ['@INPUT@', '-o', '@OUTPUT@']
|
|
||||||
moc_kwargs = {'output': '@BASENAME@.moc',
|
moc_kwargs = {'output': '@BASENAME@.moc',
|
||||||
'arguments': arguments}
|
'arguments': arguments}
|
||||||
moc_gen = build.Generator([self.moc], moc_kwargs)
|
moc_gen = build.Generator([self.moc], moc_kwargs)
|
||||||
|
|
Loading…
Reference in New Issue