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:
18
userspace/image/CMakeLists.txt
Normal file
18
userspace/image/CMakeLists.txt
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user