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