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

20 lines
302 B
Python

#! /usr/bin/env python
"""
Several build commands are defined by default, for example:
$ waf configure clean build list install uninstall
"""
top = '.'
out = 'build_directory'
def configure(ctx):
print(ctx.cmd)
def build(ctx):
if ctx.cmd == 'clean':
print('cleaning!')
else:
print(ctx.cmd)