removes unnecessary if/else-statement as suggested by @jeandet

Details: https://github.com/mesonbuild/meson/pull/2529#discussion_r146985692
pull/2529/head
Leif Middelschulte 7 years ago
parent 6fc3c0df0c
commit 32a8ab40c1
  1. 3
      mesonbuild/modules/qt.py

@ -122,10 +122,7 @@ class QtBaseModule:
sources.append(ui_output)
inc = get_include_args(include_dirs=include_directories)
if len(moc_headers) > 0:
if len(moc_extra_arguments) > 0:
arguments = moc_extra_arguments + inc + ['@INPUT@', '-o', '@OUTPUT@']
else:
arguments = inc + ['@INPUT@', '-o', '@OUTPUT@']
moc_kwargs = {'output': 'moc_@BASENAME@.cpp',
'arguments': arguments}
moc_gen = build.Generator([self.moc], moc_kwargs)

Loading…
Cancel
Save