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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/docs/book/examples/build_lazy_tg/wscript

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