2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 11:19:52 +01:00
This commit is contained in:
Thomas Nagy 2016-04-28 00:37:29 +02:00
parent 3e86ea6cb8
commit d767afa32c
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -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)