Repository navigation
Description
Problem
ci/ci_scope.py treats cmake/common/, cmake/finders/, libobs/cmake/ and the root CMake files as shared: touching any of them starts the macOS and Windows Rust/Tier 2 lanes (and blocks the merge queue on them). Because the build is described in a few central files, ordinary single-component or single-platform changes edit a shared file and pay for every platform.
Commits since 2026-08-01 touching shared build files (git log):
| file | commits |
|---|---|
| libobs/cmake/rust-hidden.txt / rust-exports.map / rust-unexports-macos.txt | ~130 each |
| libobs/cmake/os-linux.cmake, os-freebsd.cmake | 28 each |
| libobs/cmake/rust-exports.txt | 26 |
| cmake/common/groups.cmake, unity.cmake | 15, 14 |
| libobs/cmake/rust.cmake, sources.cmake | 13, 11 |
| CMakePresets.json, root CMakeLists.txt | 11, 8 |
Switching build systems (Meson was asked about) does not fix this: a shared meson.build/options edit reconfigures every platform the same way. The fix is layout: put each fact next to the thing it describes, so the path tells ci_scope who is affected.
Plan (decentralized build files)
Each item: RED test in ci/ pinning the new layout + ci_scope mapping, then GREEN.
- Per-unit symbol visibility. Replace the three central hidden-symbol lists with per-crate/per-unit fragments (or generate them from the Rust
#[no_mangle]shims at build time) so a port edits only its own file. Platform-specific entries go in<os>-named fragments. Biggest win (~130 shared edits). - Per-platform split of
cmake/common/. Move the OS branches ofcompiler_common.cmake,unity.cmake,groups.cmake,helpers_common.cmakeinto*-<os>.cmakefiles; teachci/platform_paths.pythat they start only their OS (asos-<os>.cmakealready does). - Per-component source fragments.
libobs/build/source-sets.json/sources.cmakeand the group registrations become one fragment per component (next to itsbuild/dir), globbed at configure time;ci_scopetreats a fragment as that component's path. - Per-test registration already exists (
test/cmocka/tests.d/); audit the remaining central lists (test/cmocka/CMakeLists.txt,CMakePresets.json) the same way. - Shared-file budget ratchet. A
./lintcheck that reports which commits on a PR touch a shared build path, so new central lists don't creep back.
Out of scope: replacing CMake (#1332 covers the Cargo direction).
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
test(ci): pin per-module hidden-symbol fragments and Linux-only scope (…
build(libobs): split hidden-symbol lists into per-module fragments, g…
build(libobs): per-module hidden-symbol fragments, generated linker l…
build(libobs): one source-set file per set in source-sets.d (obs-rust…
ci: ratchet the shared build files and scope OS-named libobs/cmake fi…
zackees commentedon Oct 31, 2026
All sub-issues landed: #3248 (#3233 symbol fragments), #3269 (#3234 cmake/common OS-neutral), #3280 (#3235 libobs source-set files), #3293 (#3236 per-unit port metadata), #3296 (#3237 shared-build-file ratchet). Follow-ups if they become hotspots: the single-file source sets of frontend, obs-nvenc, mac-capture, shared/qt/wrappers and cmake/graphics-source-sets.json.
build(libobs): per-unit compile options and headers in ported-source-…