2023-11-09 18:31:26 +11:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2019-04-09 16:28:11 +10:00
|
|
|
project(capture LANGUAGES C)
|
|
|
|
|
|
|
|
include("PreCapture")
|
|
|
|
|
2021-08-20 02:22:17 -04:00
|
|
|
option(USE_XCB "Enable XSHM Support" ON)
|
2022-02-11 19:41:46 -05:00
|
|
|
option(USE_PIPEWIRE "Enable PipeWire Support" ON)
|
2021-08-20 02:22:17 -04:00
|
|
|
|
|
|
|
if (USE_XCB)
|
|
|
|
add_capture("XCB")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (USE_PIPEWIRE)
|
|
|
|
add_capture("pipewire")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_feature_info(USE_XCB USE_XCB "XCB/XSHM capture backend.")
|
|
|
|
add_feature_info(USE_PIPEWIRE USE_PIPEWIRE "Pipewire Screencast capture backend.")
|
2019-04-09 16:28:11 +10:00
|
|
|
|
|
|
|
include("PostCapture")
|
|
|
|
|
|
|
|
add_library(capture STATIC ${CAPTURE_C})
|
|
|
|
target_link_libraries(capture ${CAPTURE_LINK})
|