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.
22 lines
456 B
Python
22 lines
456 B
Python
#! /usr/bin/env python
|
|
# encoding: utf-8
|
|
|
|
print('→ loading the dang tool')
|
|
|
|
from waflib.Configure import conf
|
|
|
|
def options(opt):
|
|
opt.add_option('--dang', action='store', default='', dest='dang')
|
|
|
|
@conf
|
|
def read_dang(ctx):
|
|
ctx.start_msg('Checking for DANG')
|
|
if ctx.options.dang:
|
|
ctx.env.DANG = ctx.options.dang
|
|
ctx.end_msg(ctx.env.DANG)
|
|
else:
|
|
ctx.end_msg('DANG is not set')
|
|
|
|
def configure(ctx):
|
|
ctx.read_dang()
|