[examples-v2 commit] led: complex1: Add support for building with waf

Gedare Bloom gedare at rtems.org
Thu Dec 12 19:49:55 UTC 2013


Module:    examples-v2
Branch:    master
Commit:    fd4c88cabe614e575d1cd9e93470c2b80d78a0e0
Changeset: http://git.rtems.org/examples-v2/commit/?id=fd4c88cabe614e575d1cd9e93470c2b80d78a0e0

Author:    Chirayu Desai <cdesai at cyanogenmod.org>
Date:      Wed Dec  4 23:06:33 2013 +0530

led: complex1: Add support for building with waf

---

 led/complex1/wscript |   14 ++++++++++++++
 led/wscript          |    3 +++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/led/complex1/wscript b/led/complex1/wscript
new file mode 100644
index 0000000..398a979
--- /dev/null
+++ b/led/complex1/wscript
@@ -0,0 +1,14 @@
+# Copyright 2013 Gedare Bloom (gedare at 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 = 'complex1.exe',
+        source = ['periodic.c', 'main.cc', 'menu.cc', 'test.cc'])
diff --git a/led/wscript b/led/wscript
index f3791d4..edccad5 100644
--- a/led/wscript
+++ b/led/wscript
@@ -21,3 +21,6 @@ def build(bld):
         bld.recurse('posix_delay_nanosleep')
         bld.recurse('posix_delay_sleep')
         bld.recurse('posix_mutex_server')
+        # This test requires POSIX and C++
+        if bld.env['CXX'] is not None:
+            bld.recurse('complex1')




More information about the vc mailing list