Try fixing macOS build again

This commit is contained in:
Thomas Farstrike
2026-01-07 21:56:43 +01:00
parent abfc3abe2c
commit 2a630d3d07
+4
View File
@@ -125,6 +125,8 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
if [ "$target" == "macOS" ]; then
echo "homebrew install rlottie fails so it runs into: fatal error: 'rlottie_capi.h' file not found on macos"
sed -i.backup 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+1/#define MICROPY_RLOTTIE 0/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
echo "After disabling MICROPY_RLOTTIE:"
cat "$codebasedir"/lvgl_micropython/lib/lv_conf.h
fi
# LV_CFLAGS are passed to USER_C_MODULES (compiler flags only, no linker flags)
@@ -136,6 +138,8 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
if [ "$target" == "macOS" ]; then
sed -i.backup 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+0/#define MICROPY_RLOTTIE 1/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
echo "After enabling MICROPY_RLOTTIE:"
cat "$codebasedir"/lvgl_micropython/lib/lv_conf.h
fi
# Restore @micropython.viper decorator after build