sim: embedd background bmp and load from memory

Loading the file from disk introduces a slight dependency on the working
directory for the simulator. Prevent that by loading the bmp from
memory.

Use a python script to convert the backround bmp image to a C header
file. Include this header in `main.cpp` and load the bmp from memory.
This commit is contained in:
Reinhold Gschweicher
2023-05-08 18:30:13 +02:00
parent 1c479a2875
commit aa34f93161
4 changed files with 57 additions and 2 deletions

View File

@@ -325,6 +325,10 @@ endif()
target_include_directories(infinisim PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/gif-h")
# embedd background image for the status window to use
add_subdirectory(img)
add_dependencies(infinisim infinisim_img_background)
install(TARGETS infinisim DESTINATION bin)
# helper library to manipulate littlefs raw image