diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-12-04 21:23:22 +0530 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2013-12-12 14:55:56 -0500 |
commit | c5e5f0da0eb44419dbc4eca52a5c55ad8911ecde (patch) | |
tree | 0b491564e1ff62e31b0d69cb71a2b6f822ade0da | |
parent | f493f88ea5e4f1fb46d0cd8e3a4e0e05db25b1f0 (diff) |
cxx: Add support for building with waf
-rw-r--r-- | cxx/cxx_throw/wscript | 15 | ||||
-rw-r--r-- | cxx/libcpp/wscript | 15 | ||||
-rw-r--r-- | cxx/wscript | 13 | ||||
-rw-r--r-- | wscript | 1 |
4 files changed, 44 insertions, 0 deletions
diff --git a/cxx/cxx_throw/wscript b/cxx/cxx_throw/wscript new file mode 100644 index 0000000..f694614 --- /dev/null +++ b/cxx/cxx_throw/wscript @@ -0,0 +1,15 @@ +# Copyright 2013 Gedare Bloom (gedare@rtems.org) +# +# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file. +# + +# Waf build script for an RTEMS Hello +import rtems_waf.rtems as rtems + +def build(bld): + rtems.build(bld) + + bld(features = 'cxx cxxprogram', + target = 'cxx_throw.exe', + source = ['init.cc']) + diff --git a/cxx/libcpp/wscript b/cxx/libcpp/wscript new file mode 100644 index 0000000..77aa4fe --- /dev/null +++ b/cxx/libcpp/wscript @@ -0,0 +1,15 @@ +# Copyright 2013 Gedare Bloom (gedare@rtems.org) +# +# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file. +# + +# Waf build script for an RTEMS Hello +import rtems_waf.rtems as rtems + +def build(bld): + rtems.build(bld) + + bld(features = 'cxx cxxstlib', + target = 'foo', + source = ['foo.cc', 'foo1.cpp']) + diff --git a/cxx/wscript b/cxx/wscript new file mode 100644 index 0000000..874c130 --- /dev/null +++ b/cxx/wscript @@ -0,0 +1,13 @@ +# Copyright 2013 Gedare Bloom (gedare@rtems.org) +# +# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file. +# + +import rtems_waf.rtems as rtems + +def build(bld): + # These tests require C++ + if bld.env['CXX'] is not None: + bld.recurse('libcpp') + bld.recurse('cxx_throw') + @@ -43,6 +43,7 @@ def build(bld): bld.recurse('benchmarks') bld.recurse('micromonitor') bld.recurse('posix_api') + bld.recurse('cxx') def rebuild(ctx): import waflib.Options |