mirror of https://gitlab.com/ita1024/waf.git
20 lines
668 B
Plaintext
20 lines
668 B
Plaintext
|
#! /usr/bin/env python
|
||
|
# encoding: utf-8
|
||
|
|
||
|
|
||
|
def options(opt):
|
||
|
opt.load('python')
|
||
|
|
||
|
def configure(conf):
|
||
|
conf.load('python')
|
||
|
conf.check_python_version(minver=(2, 7, 0))
|
||
|
|
||
|
|
||
|
def build(bld):
|
||
|
bld(name='mod1', features='py', source=bld.path.ant_glob('mod1/src/**/*.py'), install_from='mod1/src')
|
||
|
bld(name='mod2', features='py', source=bld.path.ant_glob('mod2/src/**/*.py'), install_from='mod2/src')
|
||
|
bld(name='mod3', features='py', source=bld.path.ant_glob('mod3/src/**/*.py'), install_from='mod3/src')
|
||
|
|
||
|
# Example program with module dependencies
|
||
|
bld(name='prg', features='py', source=bld.path.ant_glob('prg/src/**/*.py'), install_from='prg/src', use='mod1 mod2 mod3')
|