[examples-v2 commit] misc: applib: 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:    82de6bf97a16d4ee30c8808725c04a67c498ac89
Changeset: http://git.rtems.org/examples-v2/commit/?id=82de6bf97a16d4ee30c8808725c04a67c498ac89

Author:    Chirayu Desai <cdesai at cyanogenmod.org>
Date:      Sun Dec  1 10:12:00 2013 +0530

misc: applib: Add support to build with waf

Add wscript for building a static library with waf

---

 misc/applib/wscript |   14 ++++++++++++++
 misc/wscript        |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/misc/applib/wscript b/misc/applib/wscript
new file mode 100644
index 0000000..a575aa0
--- /dev/null
+++ b/misc/applib/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 = 'c cstlib',
+        target = 'UserLib',
+        source = ['file_1.c'])
diff --git a/misc/wscript b/misc/wscript
index 854ae7c..36c8b3b 100644
--- a/misc/wscript
+++ b/misc/wscript
@@ -14,3 +14,4 @@ def build(bld):
     bld.recurse('bspcmdline')
     bld.recurse('nanosecond_tick_wrap')
     bld.recurse('qemu_vfat')
+    bld.recurse('applib')




More information about the vc mailing list