Files
lvgl/scripts/genexamplelist.sh
Alex Wolf d317eb03a0
Code Generation / Code Generation (push) Failing after 8s
Static Checks / Static Checks (push) Failing after 3s
Compare file templates with file names / template-check (push) Has been cancelled
Push LVGL release to Espressif Component Service / upload_components (push) Has been cancelled
PlatformIO Publish / build (push) Has been cancelled
MicroPython CI / Build esp32 port (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
BOM Check / bom-check (push) Has been cancelled
Verify GDB constants are up-to-date / verify-gdb-consts (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Verify Font License / verify-font-license (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
Create Release / Create Release (push) Has been cancelled
Import lvgl (vendor @ 066d8db)
2026-07-31 02:41:18 -04:00

16 lines
485 B
Bash
Executable File

#!/bin/bash
echo "/* Autogenerated */"
echo '#include <stddef.h>'
echo '#include "examplelist.h"'
TMPFILE=$(mktemp)
find examples demos -name \*.h | xargs grep -hE "^void lv_(example|demo)" | sed 's/(/ /g' | awk '{print $2}' > $TMPFILE
cat $TMPFILE | while read -r line; do
echo "extern void ${line}(void);"
done
echo "const struct lv_ci_example lv_ci_example_list[] = {"
cat $TMPFILE | while read -r line; do
echo " { \"$line\", $line },";
done
echo " { NULL, NULL }"
echo "};"