Qt-Module: fix rcc `name` with Qt4

Qt5's rcc knows --name and -name, Qt4's only -name.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
pull/2579/head
Markus Theil 7 years ago
parent 51bc364a10
commit b36475ff44
  1. 2
      mesonbuild/modules/qt.py

@ -108,7 +108,7 @@ class QtBaseModule:
name = 'qt' + str(self.qt_version) + '-' + basename.replace('.', '_')
rcc_kwargs = {'input': rcc_files,
'output': name + '.cpp',
'command': [self.rcc, '--name', '@BASENAME@', '-o', '@OUTPUT@', '@INPUT@'],
'command': [self.rcc, '-name', '@BASENAME@', '-o', '@OUTPUT@', '@INPUT@'],
'depend_files': qrc_deps}
res_target = build.CustomTarget(name, state.subdir, state.subproject, rcc_kwargs)
sources.append(res_target)

Loading…
Cancel
Save