Files
LookingGlass/client/transports/SPICE/CMakeLists.txt
Geoffrey McRae 45429681a0
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
[client] spice: own transport configuration
Register SPICE connection and component options in the SPICE transport.
Move generic input and clipboard settings out of the SPICE namespace,
while retaining migration aliases for existing configurations.

Keep PureSpice and usbredir build requirements private to the transport,
and remove obsolete SPICE configuration state from the client core.
2026-08-11 18:31:19 +10:00

52 lines
933 B
CMake

cmake_minimum_required(VERSION 3.10)
project(transport_SPICE LANGUAGES C)
add_subdirectory(
"${PROJECT_TOP}/repos/PureSpice"
"${CMAKE_BINARY_DIR}/PureSpice"
)
set(SOURCES
clipboard.c
input.c
session.c
spice.c
surface.c
)
if(ENABLE_AUDIO)
list(APPEND SOURCES
audio.c
)
endif()
if(ENABLE_USB_AUDIO)
list(APPEND SOURCES
audio_usb.c
usbredir.c
${CMAKE_CURRENT_SOURCE_DIR}/../../src/usb_audio.c
)
endif()
add_library(transport_SPICE STATIC ${SOURCES})
target_include_directories(transport_SPICE PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../../src
)
target_link_libraries(transport_SPICE PRIVATE
lg_common
purespice
)
if(ENABLE_AUDIO)
target_compile_definitions(transport_SPICE PRIVATE ENABLE_AUDIO)
endif()
if(ENABLE_USB_AUDIO)
target_compile_definitions(transport_SPICE PRIVATE ENABLE_USB_AUDIO)
target_link_libraries(transport_SPICE PRIVATE
PkgConfig::USBREDIRPARSER
)
endif()