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.
@@ -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)
