blob: b9ae19d58234821d4db649e1ac74cbccd34755a8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEPENDS += "python-scons-native"
2
3EXTRA_OESCONS ?= ""
4
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005do_configure[noexec] = "1"
6
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007scons_do_compile() {
8 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
9 die "scons build execution failed."
10}
11
12scons_do_install() {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060013 ${STAGING_BINDIR_NATIVE}/scons install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 die "scons install execution failed."
15}
16
17EXPORT_FUNCTIONS do_compile do_install