feature-whatsnew.cmake 619 B

12345678910111213141516
  1. option(ENABLE_WHATSNEW "Enable WhatsNew dialog" ON)
  2. if(ENABLE_WHATSNEW AND TARGET OBS::browser-panels)
  3. if(OS_MACOS)
  4. include(cmake/feature-macos-update.cmake)
  5. elseif(OS_LINUX)
  6. find_package(MbedTLS REQUIRED)
  7. target_link_libraries(obs-studio PRIVATE MbedTLS::MbedTLS OBS::blake2)
  8. target_sources(
  9. obs-studio PRIVATE update/crypto-helpers.hpp update/crypto-helpers-mbedtls.cpp update/shared-update.cpp
  10. update/shared-update.hpp update/update-helpers.cpp update/update-helpers.hpp)
  11. endif()
  12. target_enable_feature(obs-studio "What's New panel" WHATSNEW_ENABLED)
  13. endif()