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.
24 lines
369 B
Python
24 lines
369 B
Python
#! /usr/bin/env python
|
|
|
|
"""
|
|
The context methods may execute the same methods from waf tools
|
|
|
|
observe how the dang.py file is used and compare
|
|
|
|
$ waf configure build
|
|
$ waf configure build --dang=test
|
|
"""
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def options(ctx):
|
|
ctx.load('dang', tooldir='.')
|
|
|
|
def configure(ctx):
|
|
ctx.load('dang', tooldir='.')
|
|
|
|
def build(ctx):
|
|
print(ctx.env.DANG)
|
|
|