Debian Codegraph @

examples/std_shared_ptr/wscript

raw
1 ## -*- python -*-
2
3 def build(bld):
4
5 gen = bld(
6 features='command',
7 source='modulegen.py',
8 target='spmodule.cc',
9 command='${PYTHON} ${SRC[0]} > ${TGT[0]}')
10
11 if bld.env['CXX']:
12 # TODO() ADD -std=c++11 flag so that <memory>
13 # contains std::shared_ptr
14 obj = bld(features=['cxx', 'cxxshlib', 'pyext'])
15 obj.env.append_value("CXXFLAGS", "-std=c++11")
16 obj.source = [
17 'sp.cc',
18 'spmodule.cc'
19 ]
20 obj.target = 'sp'
21 obj.install_path = None # do not install
22 obj.includes = '.'
23