mirror of https://gitlab.com/ita1024/waf.git
docs
This commit is contained in:
parent
f5f73429d4
commit
e70cd20398
|
@ -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}'
|
||||
|
|
Loading…
Reference in New Issue