Skip to content

build(libobs): move the Rust export and link setup into rust-os-<os>.cmake (#888) - #1957

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

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

Conversation

@zackees

@zackees zackees commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #888 (last part; the /wd4996 row stays shared, see the issue).

Moves the per-OS blocks of libobs/cmake/rust.cmake (the HEVC export-set trimming, then the version-script, /EXPORT and -unexported_symbols_list link setup) verbatim into rust-os-nix.cmake, rust-os-windows.cmake and rust-os-macos.cmake. rust.cmake now has one dispatch. include() keeps CMAKE_CURRENT_SOURCE_DIR and the variables the moved code uses, so the exported symbol set doesn't change. ci/platform_paths already maps each new file to its platform (linux/windows/macos), so a change to one selects only that platform's lane.

  • RED 50af3c6: adds test_rust_link_setup_dispatches_to_host_files to ci/test_libobs_cmake_facade.py. Run locally: FAILED (failures=1).
  • GREEN 21c8d8a: the move. Test: OK. ./lint: ok.

Tiers 1-4 don't apply (build config only). Not user-visible.

@zackees
zackees enabled auto-merge October 23, 2026 18:22
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 23, 2026
…>.cmake (#888)

RED: rust.cmake still holds the per-OS export and link branches inline.
…cmake (#888)

rust.cmake keeps one dispatch; each host file applies its export set
(dropping the HEVC shims when ENABLE_HEVC is off) and its link options.
Moved verbatim; behavior is unchanged.
@zackees
zackees enabled auto-merge October 23, 2026 18:52
@zackees
zackees force-pushed the infra/888-rust-os-cmake branch from 1f206b7 to 21c8d8a Compare October 23, 2026 18:52
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit efc0229 Oct 23, 2026
33 checks passed
@zackees
zackees deleted the infra/888-rust-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.

facade: libobs/CMakeLists.txt and cmake/rust.cmake: move platform conditionals into per-OS cmake files

1 participant