Files
2021-06-20 13:39:17 +08:00

20 lines
454 B
Python

## -*- python -*-
def build(bld):
gen = bld(
features='command',
source='modulegen.py',
target='bmodule.cc',
command='${PYTHON} ${SRC[0]} > ${TGT[0]}')
if bld.env['CXX']:
obj = bld(features=['cxx', 'cxxshlib', 'pyext'])
obj.source = [
'b.cc',
'bmodule.cc'
]
obj.target = 'b'
obj.install_path = None # do not install
obj.includes = '.'