You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
317 B
Python
21 lines
317 B
Python
#! /usr/bin/env python
|
|
|
|
"""
|
|
Task generators do not create their tasks immediately
|
|
Here is an illustration
|
|
|
|
$ waf configure clean build
|
|
"""
|
|
|
|
def configure(ctx):
|
|
pass
|
|
|
|
def build(ctx):
|
|
tg = ctx(rule='touch ${TGT}', target='foo')
|
|
print(type(tg))
|
|
print(tg.tasks)
|
|
tg.post()
|
|
print(tg.tasks)
|
|
print(type(tg.tasks[0]))
|
|
|