[examples-v2 commit] benchmarks: 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: 1d008f25037dba1203d1a94903c1386caf14c08b
Changeset: http://git.rtems.org/examples-v2/commit/?id=1d008f25037dba1203d1a94903c1386caf14c08b
Author: Chirayu Desai <cdesai at cyanogenmod.org>
Date: Sat Nov 30 21:57:56 2013 +0530
benchmarks: Add support to build with waf
Add wscript(s) to support building benchmarks/nbench with waf
---
benchmarks/nbench/wscript | 17 +++++++++++++++++
benchmarks/wscript | 10 ++++++++++
wscript | 1 +
3 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/benchmarks/nbench/wscript b/benchmarks/nbench/wscript
new file mode 100644
index 0000000..4675061
--- /dev/null
+++ b/benchmarks/nbench/wscript
@@ -0,0 +1,17 @@
+# 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):
+
+ path = 'nbench-byte-2.2.3/'
+
+ bld(features = 'c cprogram',
+ target = 'nbench.exe',
+ source = ['main.c', path + 'emfloat.c', path + 'hardware.c',
+ path + 'misc.c', path + 'nbench0.c', path + 'nbench1.c',
+ path + 'sysspec.c'],
+ lib = ['m'])
diff --git a/benchmarks/wscript b/benchmarks/wscript
new file mode 100644
index 0000000..12741e7
--- /dev/null
+++ b/benchmarks/wscript
@@ -0,0 +1,10 @@
+# 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):
+ bld.recurse('nbench')
+
diff --git a/wscript b/wscript
index dd50cb2..a2b8a44 100644
--- a/wscript
+++ b/wscript
@@ -40,6 +40,7 @@ def build(bld):
bld.recurse('uboot')
bld.recurse('led')
bld.recurse('misc')
+ bld.recurse('benchmarks')
def rebuild(ctx):
import waflib.Options
More information about the vc
mailing list