Files
obs-studio/frontend/cmake/os-macos.cmake
T
PatTheMav 272825b46a frontend: Add CrashHandler class
The CrashHandler class encapsulates all functionality around unsafe
shutdown detection as well as crash log discovery and log upload.

Each (functional) CrashHandler should be initialized with an app launch
UUID, which enables the handler to disambiguate a sentinel file for the
current app launch from those of prior app launches.
2025-08-22 15:38:12 -04:00

34 lines
956 B
CMake

include(cmake/feature-sparkle.cmake)
target_sources(
obs-studio
PRIVATE
dialogs/OBSPermissions.cpp
dialogs/OBSPermissions.hpp
forms/OBSPermissions.ui
utility/CrashHandler_MacOS.mm
utility/platform-osx.mm
utility/system-info-macos.mm
)
target_compile_options(obs-studio PRIVATE -Wno-quoted-include-in-framework-header -Wno-comma)
list(APPEND _frontend_objcxx_compile_options -fobjc-arc -fmodules -fcxx-modules)
set_property(
SOURCE utility/platform-osx.mm utility/CrashHandler_MacOS.mm
APPEND
PROPERTY COMPILE_OPTIONS ${_frontend_objcxx_compile_options}
)
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 14.0.3)
target_compile_options(obs-studio PRIVATE -Wno-error=unqualified-std-cast-call)
endif()
target_link_libraries(
obs-studio
PRIVATE
"$<LINK_LIBRARY:FRAMEWORK,AppKit.framework>"
"$<LINK_LIBRARY:FRAMEWORK,ApplicationServices.framework>"
"$<LINK_LIBRARY:FRAMEWORK,AVFoundation.framework>"
)