Skip to content

build(libobs): lib-module manifest and its checker (#3258) - #3300

Merged
zackees merged 2 commits into
masterfrom
build/3258-module-manifest
Oct 31, 2026
Merged

zackees merged 2 commits into
masterfrom
build/3258-module-manifest

Conversation

@zackees

@zackees zackees commented Oct 31, 2026

Copy link
Copy Markdown
Member

What

The issue text names source-sets.json. #3235 (#3280) split that file into source-sets.d/ while this was queued, so the manifest follows the same one-file-per-unit layout.

RED → GREEN

  • RED (first commit): LibobsModulesTest fails on master, with no modules.d and every group in no module.
  • GREEN: the manifest covers all 167 groups (21 core and platform, 146 ported); the whole test_build_groups.py and ./lint pass.

Test cost: four Python tests, under 50 ms, no threads.

Fixes #3258. Refs #3256.

@zackees
zackees enabled auto-merge October 31, 2026 22:49

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: the checker covers what the manifest has to guarantee. Every group is in exactly one module, no pattern is stale, and the dependency graph is acyclic. Using fnmatch patterns means a new ported-foo group needs no manifest edit, which is the point of #3232/#3235. One question for BUILD.md before #3259 relies on this. depends reads as header/compile direction: platform-* and rust-shims depend on core. At link time it's the other way round, because core calls host code through obs-host/<capability>.h and calls the Rust shims. That's fine for whole-archive relinking into libobs (#3261), but the cache key (#3262) has to invalidate in the include direction only. Please state that depends means "includes headers of", not "links against", so #3262 doesn't use it for both. No blocking findings.

@zackees
zackees force-pushed the build/3258-module-manifest branch from 30f3436 to a75a232 Compare October 31, 2026 23:22
@zackees
zackees added this pull request to the merge queue Oct 31, 2026
Merged via the queue into master with commit 3211059 Oct 31, 2026
40 checks passed
@zackees
zackees deleted the build/3258-module-manifest branch October 31, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

build(libobs): module manifest in source-sets.json and its checker

1 participant