UI: Add Twitch integration
This commit is contained in:
@@ -19,6 +19,16 @@ project(obs)
|
||||
|
||||
set(DISABLE_UPDATE_MODULE TRUE CACHE BOOL "Disables building the update module")
|
||||
|
||||
if(NOT DEFINED TWITCH_CLIENTID OR "${TWITCH_CLIENTID}" STREQUAL "" OR
|
||||
NOT DEFINED TWITCH_HASH OR "${TWITCH_HASH}" STREQUAL "" OR
|
||||
NOT BROWSER_AVAILABLE_INTERNAL)
|
||||
set(TWITCH_ENABLED FALSE)
|
||||
set(TWITCH_CLIENTID "")
|
||||
set(TWITCH_HASH "0")
|
||||
else()
|
||||
set(TWITCH_ENABLED TRUE)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED MIXER_CLIENTID OR "${MIXER_CLIENTID}" STREQUAL "" OR
|
||||
NOT DEFINED MIXER_HASH OR "${MIXER_HASH}" STREQUAL "" OR
|
||||
NOT BROWSER_AVAILABLE_INTERNAL)
|
||||
@@ -130,6 +140,15 @@ if(BROWSER_AVAILABLE_INTERNAL)
|
||||
auth-oauth.hpp
|
||||
)
|
||||
|
||||
if(TWITCH_ENABLED)
|
||||
list(APPEND obs_PLATFORM_SOURCES
|
||||
auth-twitch.cpp
|
||||
)
|
||||
list(APPEND obs_PLATFORM_HEADERS
|
||||
auth-twitch.hpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if(MIXER_ENABLED)
|
||||
list(APPEND obs_PLATFORM_SOURCES
|
||||
auth-mixer.cpp
|
||||
|
Reference in New Issue
Block a user