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

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)