2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00
This commit is contained in:
Thomas Nagy 2016-11-06 12:10:39 +01:00
parent 058b8f7f39
commit 9ddb8c27ef
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -33,6 +33,11 @@ def build(bld):
# by default install_path is set to ${PYTHONDIR})
bld(features='py', source=bld.path.ant_glob('*.py'), install_from='.')
# example for generated python files
target = bld.path.find_or_declare('abc.py')
bld(rule='touch ${TGT}', source='wscript', target=target)
bld(features='py', source=target, install_from=target.parent)
# then a c extension module
bld(
features = 'c cshlib pyext',