Split xcbXorg into xcbXorg and xcbWindow

This commit is contained in:
2025-07-24 06:00:35 -04:00
parent 1bf5f46404
commit 1e17b83061
6 changed files with 695 additions and 446 deletions
+15 -10
View File
@@ -1,22 +1,27 @@
# XCB/Xorg Window Attaching SenseAPI backend
cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow
"Enable XCB/Xorg Window Attaching SenseAPI backend" OFF
"ENABLE_LIB_xcbXorg" OFF)
"Enable XCB/Xorg Window Attaching SenseAPI backend" ON
"ENABLE_LIB_xcbXorg" ON)
if(ENABLE_SENSEAPI_xcbWindow)
# For now, just create a placeholder library
add_library(senseApiXcbWindow STATIC
# xcbWindow.cpp would go here
)
target_link_libraries(senseApiXcbWindow
xcbXorg
add_library(senseApiXcbWindow SHARED
xcbWindow.cpp
)
target_include_directories(senseApiXcbWindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../include
${CMAKE_CURRENT_SOURCE_DIR}/../../smocore/include
${CMAKE_CURRENT_SOURCE_DIR}/../../commonLibs
)
# Link against XCB library directly (libxcbXorg will be loaded dynamically)
pkg_check_modules(XCB REQUIRED xcb)
target_link_libraries(senseApiXcbWindow ${XCB_LIBRARIES})
# Set config define for header generation
add_compile_definitions(CONFIG_SENSEAPI_XCBWINDOW_ENABLED)
# Install rules
install(TARGETS senseApiXcbWindow DESTINATION lib)
endif()