Overview
Although updating liblvgl is less cumbersome now that it is removed from the kernel, we still need to do the following to update liblvgl:
- Copy all the header files from LVLG's repo to
include/liblvgl
- Copy all the source files from LVLG's repo to
src/liblvgl
- Update all the includes in the LVGL files to match the PROS project structure
- Update
include/liblvgl/fonts/lv_font.h to include our custom fonts that llemu depends on
My Proposal
Fixing the font issue:
- Store the fonts that llemu depends on in a vector graphics file
- On build, the makefile creates the lvgl font.c files
- The fonts are declared in a new
pros_line.h file so we don't have to add then to lv_font.h
Automated update script:
The script should not run automatically when LVGL updates, since we want to force someone to make sure everything works and builds properly
These are the things I think the script needs to do:
- Check the latest release tag on LVGL's repo. If we are up to date, do nothing
- Otherwise, clone the repo as a submodule
- Copy all the headers to
include/libvgl
- Copy all the c files to
src/liblvgl
- Run through all the copied files and update the includes to be absolute and follow the PROS project structure.
Overview
Although updating liblvgl is less cumbersome now that it is removed from the kernel, we still need to do the following to update liblvgl:
include/liblvglsrc/liblvglinclude/liblvgl/fonts/lv_font.hto include our custom fonts that llemu depends onMy Proposal
Fixing the font issue:
pros_line.hfile so we don't have to add then to lv_font.hAutomated update script:
The script should not run automatically when LVGL updates, since we want to force someone to make sure everything works and builds properly
These are the things I think the script needs to do:
include/libvglsrc/liblvgl