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
1 changed files with 4 additions and 1 deletions

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]