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

login
register
mail settings
Submitter Ross Burton
Date Sept. 2, 2013, 3:33 p.m.
Message ID <1378135990-7215-1-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/57237/
State Accepted
Commit 2b148b9e73f05af33ed1437358fa5322cf364651
Headers show

Comments

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

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