lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | inherit python3native |
| 2 | |
| 3 | DEPENDS += "python3-scons-native" |
| 4 | |
| 5 | EXTRA_OESCONS ?= "" |
| 6 | |
| 7 | do_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 | |
| 18 | scons_do_compile() { |
| 19 | ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \ |
| 20 | die "scons build execution failed." |
| 21 | } |
| 22 | |
| 23 | scons_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 | |
| 28 | EXPORT_FUNCTIONS do_compile do_install |