mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-27 18:50:03 +01:00
Cleanup
This commit is contained in:
parent
58bff6569c
commit
b885c0d80a
@ -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 = {}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user