Make sure outputs do not contain stray path segments.

pull/574/head
Jussi Pakkanen 9 years ago
parent 0b81f5b0ad
commit 76d88259bd
  1. 7
      mesonbuild/modules/qt5.py

@ -123,17 +123,16 @@ class Qt5Module():
srctmp = [srctmp]
sources = args[1:] + srctmp
if len(rcc_files) > 0:
rcc_kwargs = {'output' : '@BASENAME@.cpp',
'arguments' : ['@INPUT@', '-o', '@OUTPUT@']}
qrc_deps = []
for i in rcc_files:
qrc_deps += self.parse_qrc(state, i)
basename = os.path.split(rcc_files[0])[1]
rcc_kwargs = {'input' : rcc_files,
'output' : rcc_files[0] + '.cpp',
'output' : basename + '.cpp',
'command' : [self.rcc, '-o', '@OUTPUT@', '@INPUT@'],
'depend_files' : qrc_deps,
}
res_target = build.CustomTarget(rcc_files[0].replace('.', '_'),
res_target = build.CustomTarget(basename.replace('.', '_'),
state.subdir,
rcc_kwargs)
sources.append(res_target)

Loading…
Cancel
Save