examples/g/wscript
raw| 1 | ## -*- python -*- |
| 2 | |
| 3 | def build(bld): |
| 4 | |
| 5 | gen = bld( |
| 6 | features='command', |
| 7 | source='modulegen.py', |
| 8 | target='gmodule.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 | 'g.cc', |
| 15 | 'gmodule.cc' |
| 16 | ] |
| 17 | obj.target = 'g' |
| 18 | obj.install_path = None # do not install |
| 19 | obj.includes = '.' |
| 20 |