Userspace: Implement basic image rendering for Netbpm

You can now render Netbpm (P6) format image to framebuffer using
`image` command. I added basic test image to
/usr/share/images/sample.ppm
This commit is contained in:
2023-11-29 16:11:35 +02:00
parent d7a3aca5d4
commit ff550785a7
8 changed files with 355 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.26)
project(image CXX)
set(SOURCES
main.cpp
Image.cpp
Netbpm.cpp
)
add_executable(image ${SOURCES})
target_compile_options(image PUBLIC -O2 -g)
target_link_libraries(image PUBLIC libc ban)
add_custom_target(image-install
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/image ${BANAN_BIN}/
DEPENDS image
)