Skip to content

build(libobs): append host public headers from os-<os>.cmake (#888) - #1955

Merged
zackees merged 2 commits into
masterfrom
infra/888-libobs-os-cmake
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/888-libobs-os-cmake

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Refs #888 (part 1 of 3: public headers; rust.cmake and the MSVC /wd4996 row follow).

Moves the Windows and Apple OBS_PUBLIC_HEADERS appends out of the shared libobs/CMakeLists.txt into libobs/cmake/os-windows.cmake and os-macos.cmake. They use set_property(TARGET libobs APPEND PROPERTY OBS_PUBLIC_HEADERS ...), because the per-OS files are included before public_headers is built. target_export reads the property later, so each platform installs the same header set. Linux is unaffected: it had no host headers before and has none now.

  • RED 99a9711: new ci/test_libobs_cmake_facade.py (picked up by the ci/test_*.py discovery). Run locally on master: FAILED (failures=4). The shared file still has the OS_WINDOWS/OS_MACOS header branch, and the os files don't append the headers.
  • GREEN 4232baa: the move. Test: OK. ./lint: ok.

Tiers 1-4 don't apply (build config only, no C or Rust behavior change). Not user-visible, so no features.md line.

…le (#888)

RED: fails on master; libobs/CMakeLists.txt still appends the Windows and
Apple public headers under OS_WINDOWS/OS_MACOS.
Move the Windows and Apple OBS_PUBLIC_HEADERS appends out of the shared
libobs/CMakeLists.txt into os-windows.cmake and os-macos.cmake. The
header set each platform installs is unchanged.
@zackees
zackees enabled auto-merge October 23, 2026 18:22
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 8faef9b Oct 23, 2026
33 checks passed
@zackees
zackees deleted the infra/888-libobs-os-cmake branch October 26, 2026 15:45
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.

1 participant