summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorReinhold Gschweicher <pyro4hell@gmail.com>2022-05-10 23:48:41 +0200
committerRiku Isokoski <riksu9000@gmail.com>2022-05-16 11:59:44 +0300
commitdb0f909b461a6f2b706262cb4c2bae72007dc3f9 (patch)
treec945124b0423b6bbd3b9dd6ff8243b6b698f7e19 /.github/workflows
parent8485cdb54deaf5b24827330c8dc4d3e6675c7d72 (diff)
generalize lv-font creation
In https://github.com/InfiniTimeOrg/InfiniTime/pull/1097 new font generation capabilites were added. Generalize the font creation to make it possible to reuse the `displayapp/fonts/CMakeLists.txt` file for `InfiniSim` and just add the new cmake file to the project and link against the new `infinitime_fonts` target. In the following a list of changes. Allow non-global installed `lv_font_conv` executable installed with ```sh npm install lv_font_conv@1.5.2 ``` In CMake we search for `lv_font_conv` executable. Add the found executable to the python script `generate.py`, to remove the need for `lv_font_conv` to be in the path. Search for `python3` executable, if CMake version 3.12 is available. Otherwise use `python` as hard coded executable. Instead of adding the generated fonts to `SOURCE_FILES` variable, create a static library `infinitime_fonts`. Link this library to the executables instead. Use `add_custom_target()` together with `add_custom_command()` to generate the font.c files once (like the original PR does).
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions