This commit is contained in:
Thomas Nagy 2012-02-07 09:20:32 +01:00
parent f5f73429d4
commit e70cd20398
1 changed files with 2 additions and 4 deletions

View File

@ -15,15 +15,13 @@ from waflib.TaskGen import feature, after
from waflib.Task import Task
from waflib.Tools import c_preproc
#@feature('cxx') <- python >= 2.4
#@after('apply_link')
@feature('cxx')
@after('apply_link')
def process_pch(self):
if getattr(self, 'pch', ''):
nodes = self.to_nodes(self.pch)
for x in nodes:
self.create_task('gchx', x, x.change_ext('.h.gch'))
feature('cxx')(process_pch)
after('apply_link')(process_pch)
class gchx(Task):
run_str = '${CXX} ${CXXFLAGS} ${FRAMEWORKPATH_ST:FRAMEWORKPATH} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${CXX_SRC_F}${SRC} ${CXX_TGT_F}${TGT}'