mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
24 lines
781 B
CMake
24 lines
781 B
CMake
option(ENABLE_WHATSNEW "Enable WhatsNew dialog" ON)
|
|
|
|
if(ENABLE_WHATSNEW AND TARGET OBS::browser-panels)
|
|
if(OS_MACOS)
|
|
include(cmake/feature-macos-update.cmake)
|
|
elseif(OS_LINUX)
|
|
find_package(MbedTLS REQUIRED)
|
|
find_package(nlohmann_json REQUIRED)
|
|
target_link_libraries(obs-studio PRIVATE MbedTLS::MbedTLS nlohmann_json::nlohmann_json OBS::blake2)
|
|
|
|
target_sources(
|
|
obs-studio
|
|
PRIVATE update/crypto-helpers-mbedtls.cpp
|
|
update/crypto-helpers.hpp
|
|
update/shared-update.cpp
|
|
update/shared-update.hpp
|
|
update/update-helpers.cpp
|
|
update/update-helpers.hpp
|
|
update/models/whatsnew.hpp)
|
|
endif()
|
|
|
|
target_enable_feature(obs-studio "What's New panel" WHATSNEW_ENABLED)
|
|
endif()
|