mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 11:19:52 +01:00
docs
This commit is contained in:
parent
3e86ea6cb8
commit
d767afa32c
@ -10,16 +10,16 @@ def configure(conf):
|
||||
from waflib import TaskGen, Build, Utils
|
||||
@TaskGen.feature('ruler')
|
||||
@TaskGen.before('process_rule')
|
||||
def stuff(self):
|
||||
def test(self):
|
||||
if not self.bld.is_install:
|
||||
while self.meths:
|
||||
while self.meths: # cancel everything
|
||||
self.meths.pop()
|
||||
return
|
||||
|
||||
tg = self.bld.get_tgen_by_name(self.bring_in)
|
||||
tg.post() # as a task generator
|
||||
tg.post() # let it create its installation task
|
||||
assert tg.install_task.outputs
|
||||
self.source = tg.install_task.outputs # tg is a task object
|
||||
self.source = tg.install_task.outputs
|
||||
|
||||
def build(bld):
|
||||
bld.install_as('${PREFIX}/bin/foo', 'wscript', chmod=Utils.O755)
|
||||
|
Loading…
Reference in New Issue
Block a user