2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-24 10:49:42 +01:00

Issue 1352, changed the default name for qt resources

This commit is contained in:
Thomas Nagy 2013-09-01 21:29:34 +02:00
parent c4afa5daf1
commit a1b8eb3831

View File

@ -370,9 +370,12 @@ class rcc(Task.Task):
Process *.qrc* files
"""
color = 'BLUE'
run_str = '${QT_RCC} -name ${SRC[0].name} ${SRC[0].abspath()} ${RCC_ST} -o ${TGT}'
run_str = '${QT_RCC} -name ${tsk.rcname()} ${SRC[0].abspath()} ${RCC_ST} -o ${TGT}'
ext_out = ['.h']
def rcname(self):
return os.path.splitext(self.inputs[0].name)[0]
def scan(self):
"""Parse the *.qrc* files"""
node = self.inputs[0]