mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Try fixing macos build
This commit is contained in:
@@ -122,6 +122,11 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
|
||||
stream_wav_file="$codebasedir"/internal_filesystem/lib/mpos/audio/stream_wav.py
|
||||
sed -i.backup 's/^@micropython\.viper$/#@micropython.viper/' "$stream_wav_file"
|
||||
|
||||
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 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+1/#define MICROPY_RLOTTIE 0/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
|
||||
fi
|
||||
|
||||
# LV_CFLAGS are passed to USER_C_MODULES (compiler flags only, no linker flags)
|
||||
# STRIP= makes it so that debug symbols are kept
|
||||
pushd "$codebasedir"/lvgl_micropython/
|
||||
@@ -129,6 +134,10 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
|
||||
python3 make.py "$target" LV_CFLAGS="-g -O0 -ggdb" STRIP= DISPLAY=sdl_display INDEV=sdl_pointer INDEV=sdl_keyboard "$frozenmanifest"
|
||||
popd
|
||||
|
||||
if [ "$target" == "macOS" ]; then
|
||||
sed -i 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+0/#define MICROPY_RLOTTIE 1/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
|
||||
fi
|
||||
|
||||
# Restore @micropython.viper decorator after build
|
||||
echo "Restoring @micropython.viper decorator..."
|
||||
sed -i.backup 's/^#@micropython\.viper$/@micropython.viper/' "$stream_wav_file"
|
||||
|
||||
Reference in New Issue
Block a user