Implement ShmGetImage

Also SHM extension is now only compiled if the system has shmat and
shmdt
This commit is contained in:
2026-02-12 18:40:55 +02:00
parent 188f9182ea
commit 632787b142
5 changed files with 155 additions and 52 deletions

View File

@@ -4,11 +4,18 @@ set(SOURCES
Extensions.cpp
ExtBigReg.cpp
ExtRANDR.cpp
ExtSHM.cpp
Image.cpp
Keymap.cpp
)
include(CheckSymbolExists)
check_symbol_exists(shmat "sys/shm.h" HAVE_SHMAT)
check_symbol_exists(shmdt "sys/shm.h" HAVE_SHMDT)
if(HAVE_SHMAT AND HAVE_SHMDT)
set(SOURCES ${SOURCES} ExtSHM.cpp)
endif()
add_executable(xbanan ${SOURCES})
banan_link_library(xbanan ban)
banan_link_library(xbanan libgui)