blob: 4f3ae502efca7e431f8be2c283b68fac95b0c615 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001inherit python3native
2
3DEPENDS += "python3-scons-native"
4
5EXTRA_OESCONS ?= ""
6
7do_configure() {
8 if [ -n "${CONFIGURESTAMPFILE}" ]; then
9 if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
10 ${STAGING_BINDIR_NATIVE}/scons --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
11 fi
12
13 mkdir -p `dirname ${CONFIGURESTAMPFILE}`
14 echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
15 fi
16}
17
18scons_do_compile() {
19 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
20 die "scons build execution failed."
21}
22
23scons_do_install() {
24 ${STAGING_BINDIR_NATIVE}/scons install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \
25 die "scons install execution failed."
26}
27
28EXPORT_FUNCTIONS do_compile do_install