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/advbuild_confdata/wscript

21 lines
337 B
Python

#! /usr/bin/env python
"""
the command 'foo' uses a build context subclass internally
try calling 'waf configure foo'
"""
def configure(ctx):
ctx.env.FOO = 'some data'
def build(ctx):
print('build command')
def foo(ctx):
print(ctx.env.FOO)
from waflib.Build import BuildContext
class one(BuildContext):
cmd = 'foo'
fun = 'foo'