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

18 lines
435 B
Python

#! /usr/bin/env python
"""
This example illustrates several configuration methods:
. find_program for finding executables
. check_waf_version to throw a configuration error if the waf version is too old/too new
. find_file for finding files in particular folders
"""
top = '.'
out = 'build'
def configure(ctx):
ctx.find_program('touch', var='TOUCH')
ctx.check_waf_version(mini='1.6.0')
ctx.find_file('fstab', ['/opt/', '/etc'])