building yet 'cause I don't understand waf. Why does every project I look at use a different build system!
20 lines
443 B
Python
20 lines
443 B
Python
## -*- python -*-
|
|
|
|
def build(bld):
|
|
|
|
gen = bld.new_task_gen(
|
|
features='command',
|
|
source='Agen.py',
|
|
target='A.C',
|
|
command='${PYTHON} ${SRC[0]} > ${TGT[0]}')
|
|
|
|
if bld.env['CXX']:
|
|
obj = bld.new_task_gen(features=['cxx', 'cxxshlib', 'pyext'])
|
|
obj.source = [
|
|
'A.C',
|
|
]
|
|
obj.target = 'A'
|
|
obj.install_path = None # do not install
|
|
obj.includes = '.'
|
|
|