examples/wscript
raw| 1 | ## -*- python -*- |
| 2 | |
| 3 | def options(opt): |
| 4 | pass#opt.tool_options('boost') |
| 5 | |
| 6 | def build(bld): |
| 7 | bld.recurse('a b c d e f g h') |
| 8 | bld.recurse('callback') |
| 9 | #bld.recurse('buffer') # doesn't work on python3 |
| 10 | if bld.env['ENABLE_BOOST_SHARED_PTR']: |
| 11 | bld.recurse('boost_shared_ptr') |
| 12 | bld.recurse('import_from_module') |
| 13 | |
| 14 | if bld.env["ENABLE_CXX11"]: |
| 15 | bld.recurse('std_shared_ptr') |
| 16 | |
| 17 | def configure(conf): |
| 18 | if conf.check_compilation_flag('-std=c++11'): |
| 19 | conf.env["ENABLE_CXX11"] = True |