[examples-v2 commit] posix_api: Add support to build with waf

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


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

Author:    Chirayu Desai <cdesai at cyanogenmod.org>
Date:      Tue Dec  3 21:28:58 2013 +0530

posix_api: Add support to build with waf

Add wscript(s) for building with waf

---

 posix_api/psx_example_1/wscript    |   15 +++++++++++++++
 posix_api/psx_example_2/wscript    |   15 +++++++++++++++
 posix_api/psx_example_3/wscript    |   15 +++++++++++++++
 posix_api/psx_sched_report/wscript |   16 ++++++++++++++++
 posix_api/wscript                  |   14 ++++++++++++++
 wscript                            |    1 +
 6 files changed, 76 insertions(+), 0 deletions(-)

diff --git a/posix_api/psx_example_1/wscript b/posix_api/psx_example_1/wscript
new file mode 100644
index 0000000..5bd0608
--- /dev/null
+++ b/posix_api/psx_example_1/wscript
@@ -0,0 +1,15 @@
+# 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 = 'c cprogram',
+        target = 'psx_example_1.exe',
+        source = ['test1.c'])
+
diff --git a/posix_api/psx_example_2/wscript b/posix_api/psx_example_2/wscript
new file mode 100644
index 0000000..5ecf27c
--- /dev/null
+++ b/posix_api/psx_example_2/wscript
@@ -0,0 +1,15 @@
+# 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 = 'c cprogram',
+        target = 'psx_example_2.exe',
+        source = ['test2.c'])
+
diff --git a/posix_api/psx_example_3/wscript b/posix_api/psx_example_3/wscript
new file mode 100644
index 0000000..9f8d86f
--- /dev/null
+++ b/posix_api/psx_example_3/wscript
@@ -0,0 +1,15 @@
+# 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 = 'c cprogram',
+        target = 'psx_example_3.exe',
+        source = ['test3.c'])
+
diff --git a/posix_api/psx_sched_report/wscript b/posix_api/psx_sched_report/wscript
new file mode 100644
index 0000000..0cb9a52
--- /dev/null
+++ b/posix_api/psx_sched_report/wscript
@@ -0,0 +1,16 @@
+# 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 = 'c cprogram',
+        target = 'psx_sched_report.exe',
+        source = ['test.c'],
+        lib = ['c'])
+
diff --git a/posix_api/wscript b/posix_api/wscript
new file mode 100644
index 0000000..c5529f0
--- /dev/null
+++ b/posix_api/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.
+#
+
+import rtems_waf.rtems as rtems
+
+def build(bld):
+    if rtems.check_posix:
+        bld.recurse('psx_example_1')
+        bld.recurse('psx_example_2')
+        bld.recurse('psx_example_3')
+        bld.recurse('psx_sched_report')
+
diff --git a/wscript b/wscript
index 8ccfe8a..7aa47a1 100644
--- a/wscript
+++ b/wscript
@@ -42,6 +42,7 @@ def build(bld):
     bld.recurse('misc')
     bld.recurse('benchmarks')
     bld.recurse('micromonitor')
+    bld.recurse('posix_api')
 
 def rebuild(ctx):
     import waflib.Options




More information about the vc mailing list