summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-12-04 22:48:33 +0530
committerGedare Bloom <gedare@rtems.org>2013-12-12 14:55:56 -0500
commitfd4c88cabe614e575d1cd9e93470c2b80d78a0e0 (patch)
tree08b365a3bf117af86983d190653d7d7b52b80621
parent8621de62457615c93ae395486635dcd870ac6cdd (diff)
led: complex1: Add support for building with waf
-rw-r--r--led/complex1/wscript14
-rw-r--r--led/wscript3
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@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')