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
337 B
Python
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'
|