mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-10 12:19:13 +01:00
21 lines
257 B
Plaintext
21 lines
257 B
Plaintext
Waf 1.8.x
|
|
---------
|
|
|
|
* Update the docs
|
|
|
|
Can be useful:
|
|
|
|
def bld_command(*k):
|
|
fun = k[0]
|
|
name = fun.__name__
|
|
from waflib.Build import BuildContext
|
|
class tmp(BuildContext):
|
|
cmd = name
|
|
fun = name
|
|
return fun
|
|
|
|
@bld_command
|
|
def foo(ctx):
|
|
print ctx.env
|
|
|