Repository navigation
build(libobs): lib-module manifest and its checker (#3258) - #3300
Conversation
zackees
left a comment
There was a problem hiding this comment.
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.
30f3436 to
a75a232
Compare
What
libobs/build/modules.d/<module>.json: nine lib-modules that partition libobs's 167 unity groups. They are the unit build(libobs): tracker — decentralized lib-modules in a content-addressed artifact cache, relinked into libobs #3256 will compile, cache and relink:Groups are
fnmatchpatterns, not names. Since build: decentralize build files so component and platform changes stop starting every platform lane #3232/build: one source/group fragment per component instead of central source lists #3235 a new port should not edit a central list, and a newported-foogroup is already inported.ci/test_build_groups.pyLibobsModulesTest: every libobs group is in exactly one module, every pattern matches a group (no stale entries), and dependencies exist and form no cycle.BUILD.md documents it. The build does not read the manifest yet; build(libobs): split libobs-objects into per-module OBJECT libraries #3259 splits
libobs-objectsalong it.The issue text names
source-sets.json. #3235 (#3280) split that file intosource-sets.d/while this was queued, so the manifest follows the same one-file-per-unit layout.RED → GREEN
LibobsModulesTestfails on master, with nomodules.dand every group in no module.test_build_groups.pyand./lintpass.Test cost: four Python tests, under 50 ms, no threads.
Fixes #3258. Refs #3256.