base: Add ENABLE_WEBSOCKET CMake option

This commit is contained in:
tytan652 2022-07-29 08:21:05 +02:00 committed by tt2468
parent 59e7e3a307
commit eba6c4c6f3

View File

@ -1,7 +1,9 @@
project(obs-websocket VERSION 5.0.1)
set(OBS_WEBSOCKET_RPC_VERSION 1)
if(NOT ENABLE_UI)
option(ENABLE_WEBSOCKET "Enable building OBS with websocket plugin" ON)
if(NOT ENABLE_WEBSOCKET OR NOT ENABLE_UI)
message(STATUS "OBS: DISABLED obs-websocket")
return()
endif()