Debian Codegraph @

examples/callback/wscript

raw
1 ## -*- python -*-
2
3 def build(bld):
4
5 gen = bld(
6 features='command',
7 source='modulegen.py',
8 target='cmodule.cc',
9 command='${PYTHON} ${SRC[0]} > ${TGT[0]}')
10
11 if bld.env['CXX']:
12 obj = bld(features=['cxx', 'cxxshlib', 'pyext'])
13 obj.source = [
14 'c.cc',
15 'cmodule.cc'
16 ]
17 obj.target = 'c'
18 obj.install_path = None # do not install
19 obj.includes = '.'
20