This commit is contained in:
Thomas Nagy 2011-10-08 16:11:12 +02:00
parent 58bff6569c
commit b885c0d80a
1 changed files with 6 additions and 3 deletions

View File

@ -2,8 +2,11 @@
# Thomas Nagy, 2011 (ita) # Thomas Nagy, 2011 (ita)
""" """
Create _moc.cpp files (the builds are 30-40% faster when .moc files are included). Create _moc.cpp files
To use, just create a waf file including slow_qt4 and change the project configuration:
The builds are 30-40% faster when .moc files are included,
you should NOT use this tool. If you really
really want it:
def configure(conf): def configure(conf):
conf.load('compiler_cxx qt4') conf.load('compiler_cxx qt4')
@ -28,7 +31,7 @@ class cxx_qt(waflib.Tools.cxx.cxx):
try: try:
cache = self.generator.moc_cache cache = self.generator.moc_cache
except: except AttributeError:
cache = self.generator.moc_cache = {} cache = self.generator.moc_cache = {}