Qt5-Module: add `name` option to rcc

This patch sets the --name option for files processed with
rcc. It generates an additional initialization function,
which can be used with static linking.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
pull/2579/head
Markus Theil 7 years ago
parent cde0f4fca1
commit 51bc364a10
  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, '-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