Repository navigation
frontend: obs-main startup checks behind per-OS host headers (#865) - #2170
Conversation
37d7ee0 to
0fbd599
Compare
|
Coordinator: master is red on macOS Tier 2 since this landed (36505ad). The libobs / libobs-c-reference build compiles |
|
Coordinator: I opened #2186 to fix this. It changes |
On macOS obs-main-macos.hpp is active, so compiling it as C in the cmocka test fails (InstallNSApplicationSubclass, blog, throw undeclared) and macOS Tier 2 has been red since obs-rust#2170 (merge-group run 40109122884).
Refs #865 (slice 2 of 3). Stacked on #2167: review only the last two commits.
RED: the test commit extends test_frontend_obs_main_host, which fails to compile because
frontend/utility/obs-main-macos.hppdoesn't exist yet.GREEN: obs-main's startup steps call hooks that the self-guarded host headers in the obs-main PCH define, with portable defaults in obs-main.
obs-main-windows.hpp):localtime_s, the wide log path, high-DPI rounding, the run-once mutex, the Wine prompt, and the Rust app identity readback.obs-main-macos.hpp): the NSApplication subclass and the bundle check, the icon check, and the permissions dialog.obs-main-posix.hpp,__unix__): the qt5ct theme workaround.obs-main-linux.hpp): the ChromeOS container refusal.ci/test_macos_icon_focus.pyandci/test_app_config_identity.pysplice the post-log startup block from obs-main, so they now also splice the host'sobs_main_host_verify_startup. Their assertions are unchanged.Behavior is unchanged with one exception: the ChromeOS check now runs only where
__linux__is defined, rather than on every non-Windows, non-Apple, non-FreeBSD system. ChromeOS containers are Linux.Ratchet: 112 findings, down from 123.