Skip to content

Commit 96f443a

Browse files
Disable unused SDL2 stuff
1 parent c595df1 commit 96f443a

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

scripts/build_mpos.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ if [ -z "$target" ]; then
1515
echo "Example: $0 esp32"
1616
echo "Example: $0 esp32s3"
1717
echo "Example: $0 unphone"
18+
echo "Example: $0 clean"
1819
exit 1
1920
fi
2021

22+
23+
if [ "$target" == "clean" ]; then
24+
rm -rf "$mydir"/../lvgl_micropython/lib/micropython/ports/unix/build-standard/
25+
rm -rf "$mydir"/../lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/
26+
exit 0
27+
fi
28+
2129
# This assumes all the git submodules have been checked out recursively
2230

2331
echo "Fetch tags for lib/SDL, otherwise lvgl_micropython's make.py script can't checkout a specific tag..."
@@ -192,17 +200,14 @@ PY
192200
# STRIP= makes it so that debug symbols are kept
193201
pushd "$codebasedir"/lvgl_micropython/
194202
# USER_C_MODULE doesn't seem to work properly so there are symlinks in lvgl_micropython/extmod/
195-
# python3 make.py "$target" LV_CFLAGS="-g -O0 -ggdb" STRIP= DISPLAY=sdl_display INDEV=sdl_pointer "$frozenmanifest"
196-
# SDL_FLAGS="-DSDL_OPENGL=OFF -DSDL_OPENGLES=OFF -DSDL_VULKAN=OFF -DSDL_DBUS=OFF -DSDL_IBUS=OFF -DSDL_LOADSO=OFF -DSDL_X11_SHARED=OFF -DSDL_WAYLAND_SHARED=OFF -DSDL_KMSDRM_SHARED=OFF -DSDL_X11=ON -DSDL_WAYLAND=ON" \
197-
# SDL_FLAGS="-DSDL_OPENGL=OFF -DSDL_OPENGLES=OFF -DSDL_VULKAN=OFF -DSDL_DBUS=OFF -DSDL_IBUS=OFF -DSDL_LOADSO=OFF" \
198-
# SDL_FLAGS="-DSDL_OPENGL=OFF -DSDL_OPENGLES=OFF -DSDL_VULKAN=OFF -DSDL_X11=ON -DSDL_WAYLAND=ON" \
199-
# SDL_FLAGS="-DSDL_IBUS=OFF -DSDL_DBUS=OFF -DSDL_OPENGL=OFF -DSDL_OPENGLES=OFF -DSDL_VULKAN=OFF -DSDL_KMSDRM=OFF -DSDL_WAYLAND=ON -DSDL_X11=ON" \
203+
# To avoid X11/Wayland being loaded dynamically at runtime, you can use: -DSDL_LOADSO=OFF
204+
# but then those need to be provided at compile time, or excluded by using: -DSDL_WAYLAND=OFF -DSDL_X11=OFF
200205
python3 make.py "$target" \
201206
LV_CFLAGS="-g -O0 -ggdb" \
202207
STRIP= \
203208
DISPLAY=sdl_display \
204209
INDEV=sdl_pointer \
205-
SDL_FLAGS="-DSDL_OPENGL=OFF -DSDL_OPENGLES=OFF -DSDL_VULKAN=OFF -DSDL_KMSDRM=OFF -DSDL_IBUS=OFF -DSDL_DBUS=OFF -DSDL_LOADSO=OFF" \
210+
SDL_FLAGS="-DSDL_OPENGL=OFF -DSDL_OPENGLES=OFF -DSDL_VULKAN=OFF -DSDL_KMSDRM=OFF -DSDL_IBUS=OFF -DSDL_DBUS=OFF -DSDL_ALSA=OFF -DSDL_PULSEAUDIO=OFF -DSDL_SNDIO=OFF -DSDL_LIBSAMPLERATE=OFF" \
206211
"$frozenmanifest"
207212

208213
popd

0 commit comments

Comments
 (0)