mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +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
|
|
|