summaryrefslogtreecommitdiffstats
path: root/meta/classes/scons.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/scons.bbclass')
-rw-r--r--meta/classes/scons.bbclass15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/scons.bbclass b/meta/classes/scons.bbclass
new file mode 100644
index 0000000..fc0f26b
--- /dev/null
+++ b/meta/classes/scons.bbclass
@@ -0,0 +1,15 @@
1DEPENDS += "python-scons-native"
2
3EXTRA_OESCONS ?= ""
4
5scons_do_compile() {
6 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
7 bbfatal "scons build execution failed."
8}
9
10scons_do_install() {
11 ${STAGING_BINDIR_NATIVE}/scons PREFIX=${D}${prefix} prefix=${D}${prefix} install ${EXTRA_OESCONS}|| \
12 bbfatal "scons install execution failed."
13}
14
15EXPORT_FUNCTIONS do_compile do_install