Missing method in qt5.py

This commit is contained in:
Thomas Nagy 2014-10-25 13:50:23 +02:00
parent d24092184a
commit e297881d30
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 13 additions and 8 deletions

View File

@ -73,7 +73,7 @@ else:
has_xml = True
import os, sys
from waflib.Tools import c_preproc, cxx
from waflib.Tools import cxx
from waflib import Task, Utils, Options, Errors, Context
from waflib.TaskGen import feature, after_method, extension
from waflib.Configure import conf
@ -260,7 +260,7 @@ class XMLHandler(ContentHandler):
def create_rcc_task(self, node):
"Create rcc and cxx tasks for *.qrc* files"
rcnode = node.change_ext('_rc.cpp')
rcctask = self.create_task('rcc', node, rcnode)
self.create_task('rcc', node, rcnode)
cpptask = self.create_task('cxx', rcnode, rcnode.change_ext('.o'))
try:
self.compiled_tasks.append(cpptask)
@ -350,8 +350,6 @@ class rcc(Task.Task):
def scan(self):
"""Parse the *.qrc* files"""
node = self.inputs[0]
if not has_xml:
Logs.error('no xml support was found, the rcc dependencies will be incomplete!')
return ([], [])

View File

@ -73,7 +73,7 @@ else:
has_xml = True
import os, sys
from waflib.Tools import c_preproc, cxx
from waflib.Tools import cxx
from waflib import Task, Utils, Options, Errors, Context
from waflib.TaskGen import feature, after_method, extension
from waflib.Configure import conf
@ -201,6 +201,15 @@ class qxx(Task.classes['cxx']):
# remove the signature, it must be recomputed with the moc task
delattr(self, 'cache_sig')
def moc_h_ext(self):
try:
ext = Options.options.qt_header_ext.split()
except AttributeError:
pass
if not ext:
ext = MOC_H
return ext
def add_moc_tasks(self):
"""
Create the moc tasks by looking in ``bld.raw_deps[self.uid()]``
@ -292,7 +301,7 @@ class XMLHandler(ContentHandler):
def create_rcc_task(self, node):
"Create rcc and cxx tasks for *.qrc* files"
rcnode = node.change_ext('_rc.cpp')
rcctask = self.create_task('rcc', node, rcnode)
self.create_task('rcc', node, rcnode)
cpptask = self.create_task('cxx', rcnode, rcnode.change_ext('.o'))
try:
self.compiled_tasks.append(cpptask)
@ -382,8 +391,6 @@ class rcc(Task.Task):
def scan(self):
"""Parse the *.qrc* files"""
node = self.inputs[0]
if not has_xml:
Logs.error('no xml support was found, the rcc dependencies will be incomplete!')
return ([], [])