21 lines
467 B
Python
21 lines
467 B
Python
## -*- python -*-
|
|
|
|
def build(bld):
|
|
|
|
gen = bld.new_task_gen(
|
|
features='command',
|
|
source='modulegen.py',
|
|
target='emodule.cc',
|
|
command='${PYTHON} ${SRC[0]} > ${TGT[0]}')
|
|
|
|
if bld.env['CXX']:
|
|
obj = bld.new_task_gen('cxx', 'shlib', 'pyext')
|
|
obj.source = [
|
|
'e.cc',
|
|
'emodule.cc'
|
|
]
|
|
obj.target = 'e'
|
|
obj.install_path = None # do not install
|
|
obj.includes = '.'
|
|
|