Repository navigation
build: Repo-root include paths in groups, precompiled headers and implementation files - #1208
Merged
Merged
Conversation
…lementation files
Every quoted include of a repo file in a unity group, a precompiled header,
an implementation file or a forwarding file is now a repo-root path
("plugins/obs-ffmpeg/build/obs-ffmpeg.pch.h") instead of one relative to
the file ("../obs-ffmpeg-formats.h", "build/obs-ffmpeg.pch.h").
cmake/common/groups.cmake makes the repo root an include directory of every
target and reads group files against it; ci/test_build_groups.py fails a
relative include; BUILD.md describes the rule. validate.sh, the platform
ratchet's no-op check and the C oracle's include directories follow.
This was referenced Oct 17, 2026
zackees
added a commit
that referenced
this pull request
Oct 17, 2026
…builds (#1214) The x64/x86 helper builds of an ARM64 or x64 Windows build configure only libobs and win-capture's/win-dshow's helpers and never load groups.cmake, so after #1208 graphics-hook couldn't open shared/ipc-util/build/ ipc-util-windows.pch.h (C1083). The top-level CMakeLists.txt now adds the repo root right after project(), before that branch.
zackees
added a commit
that referenced
this pull request
Oct 17, 2026
#1208 made unity-group includes repo-root paths ("libobs/util/foo.c.h"), but validate.sh still matched "../foo.c.h", derived 0 ported objects and failed every Tier 2 Linux run since. Match the new form (46 objects).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This switches every BUILD.md file to repo-root include paths. That covers groups, precompiled headers, implementation files and forwarding files: 486 files, includes only.
Before and after:
Other changes:
cmake/common/groups.cmakemakes the repo root an include directory of every target, and reads group files against it.ci/test_build_groups.pyhas a new check that fails any include written relative to its file. A planted relative include confirmed it catches one.validate.sh, the platform ratchet's no-op check and the C oracle's include directories use the new form.Verification:
./lintpasses.soldr cargo test -p obs-c-oracle -p obs-nvenc -p obs-utilpasses.cmake/cross/docker.sh mac-arm64 win-x64passes.