[V2] waf.bbclass: add waf build system class

Submitted by Ross Burton on Sept. 2, 2013, 3:33 p.m.

Details

Message ID 1378135990-7215-1-git-send-email-ross.burton@intel.com
State Accepted
Commit 2b148b9e73f05af33ed1437358fa5322cf364651
Headers show

Commit Message

Ross Burton Sept. 2, 2013, 3:33 p.m.
Add a new build system class for waf.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/waf.bbclass |   13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta/classes/waf.bbclass

Patch hide | download patch | download mbox

diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
new file mode 100644
index 0000000..3a221e7
--- /dev/null
+++ b/meta/classes/waf.bbclass
@@ -0,0 +1,13 @@ 
+waf_do_configure() {
+	${S}/waf configure --prefix=${prefix} ${EXTRA_OECONF}
+}
+
+waf_do_compile()  {
+	${S}/waf build ${PARALLEL_MAKE}
+}
+
+waf_do_install() {
+	${S}/waf install --destdir=${D}
+}
+
+EXPORT_FUNCTIONS do_configure do_compile do_install