"""Exclude LVGL Helium/Neon .S files that break ESP32 (xtensa) builds.""" import shutil from pathlib import Path Import("env") # type: ignore # noqa: F821 LIBDEPS = Path(env["PROJECT_LIBDEPS_DIR"]) / env["PIOENV"] / "lvgl" # type: ignore # noqa: F821 for sub in ("draw/sw/blend/helium", "draw/sw/blend/neon"): target = LIBDEPS / "src" / sub if target.exists(): shutil.rmtree(target, ignore_errors=True) print(f"Removed LVGL ASM path: {target}")