mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 01:36:12 +08:00
9 lines
375 B
CMake
9 lines
375 B
CMake
if(TWITCH_CLIENTID AND TWITCH_HASH MATCHES "^(0|[a-fA-F0-9]+)$" AND TARGET OBS::browser-panels)
|
|
target_sources(obs-studio PRIVATE oauth/TwitchAuth.cpp oauth/TwitchAuth.hpp)
|
|
target_enable_feature(obs-studio "Twitch API connection" TWITCH_ENABLED)
|
|
else()
|
|
target_disable_feature(obs-studio "Twitch API connection")
|
|
set(TWITCH_CLIENTID "")
|
|
set(TWITCH_HASH "0")
|
|
endif()
|