ci: build the real OBS adapter on all three platforms
Build / macOS (macos-latest) (push) Failing after 12s
Build / Linux (ubuntu-latest) (push) Failing after 34s
Build / Windows (windows-latest) (push) Failing after 8m13s

Two things: unbreak the Windows compile, and give macOS/Windows a libobs.

MSVC fix. test_json.cpp failed to compile on the Windows runner with
"a universal-character-name specifies an invalid character" and "illegal
escape sequence" -- MSVC still forms escape sequences and
universal-character-names INSIDE raw string literals, which it must not.
Every JSON input containing a backslash is now built by string concatenation
from a single kBS constant, which also sidesteps the separate murky corner of
translation phase 1 where a doubled backslash immediately followed by 'u' has
historically been treated inconsistently. Same 158 checks, no behaviour
change.

OBS SDK bootstrap for macOS/Windows. Adopts obsproject/obs-plugintemplate's
buildspec machinery -- buildspec.json plus cmake/common/buildspec_common.cmake
and cmake/{macos,windows}/buildspec.cmake -- so those two platforms get a real
libobs and build the actual plugin module instead of only the core library.
Linux is untouched and still uses Ubuntu's libobs-dev
(-DSTPLUGIN_BOOTSTRAP_OBS=OFF); the bootstrap only runs where there is no
system package.

Trimmed against upstream, each change recorded in the file that makes it:

 - qt6 is dropped from dependencies_list on both platforms. The properties UI
   is plain obs_properties_* and nothing here links Qt.
 - The OBS sub-build builds and installs the `libobs` target, not
   `obs-frontend-api`. Building the frontend API is what would drag Qt back in,
   and this plugin never calls it.
 - The sub-build is configured with ENABLE_UI=OFF and ENABLE_SCRIPTING=OFF as
   well as upstream's ENABLE_FRONTEND=OFF: the pinned OBS predates
   ENABLE_FRONTEND and gates its Qt-dependent UI on ENABLE_UI, so without this
   it configures the whole OBS UI and demands Qt anyway.
 - Only the Release configuration is built and installed, not Debug as well.
   Nothing consumes a debug libobs and it doubles the slowest CI step.
 - Only the dependency-acquisition modules are vendored. The template's
   compilerconfig/defaults/helpers/xcode modules drive its own target and
   bundle layout, which this project does not use.

obs-studio is pinned to 30.0.2, deliberately low: OBS refuses to load a module
built against a NEWER libobs than the one running it and accepts older ones, so
this pin IS the minimum OBS version users need. 30.0.2 is also exactly what
Ubuntu 24.04's libobs-dev ships, which puts all three platforms on one floor,
and it supports the modern CMake layout the bootstrap drives via
-DOBS_CMAKE_VERSION=3.0.0. prebuilt is obs-deps 2023-11-03 with the hashes
obs-studio 30.0.2's own buildspec.json publishes; the obs-studio source
archive hashes were computed from the GitHub tag archives.

The workflow also prints what was actually produced on each platform (ldd /
otool / dir over build/package) and uploads it as an artifact, so "does this
even link against libobs" is answered by CI output rather than assumed.

Verified locally: the Linux path is unchanged by all of this -- a fresh
configure still finds libobs-dev, and ctest is 6/6. The macOS and Windows
bootstrap can only be verified by CI; that is what this push is for.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RL8abRmgFXkVASHkkqiJbE
This commit is contained in:
2026-09-06 22:02:17 -07:00
co-authored by Claude Sonnet 5
parent a484abec61
commit 8494485351
9 changed files with 500 additions and 37 deletions
+54
View File
@@ -0,0 +1,54 @@
{
"_comment": [
"Dependency manifest for the macOS/Windows OBS SDK bootstrap, in the shape",
"obsproject/obs-plugintemplate's cmake/common/buildspec_common.cmake reads.",
"Linux does NOT use this: it gets libobs from Ubuntu's libobs-dev package.",
"",
"obs-studio is pinned to 30.0.2 on purpose, and low rather than high:",
"OBS refuses to load a module built against a NEWER libobs than the one",
"running (libobs/obs-module.c's version check) and accepts older ones, so",
"this pin is the minimum OBS version users need. 30.0.2 is also exactly",
"what Ubuntu 24.04's libobs-dev ships, which keeps the three platforms on",
"one floor. 30.0.2 supports the modern CMake layout this bootstrap drives",
"via -DOBS_CMAKE_VERSION=3.0.0.",
"",
"prebuilt is obs-deps 2023-11-03, the version obs-studio 30.0.2's own",
"buildspec.json pins, with its own published hashes. qt6 is deliberately",
"absent: this plugin never links Qt.",
"",
"The obs-studio hashes are of the GitHub source archives for tag 30.0.2,",
"computed on 2026-09-06: .tar.gz (15861643 bytes) for macOS, .zip",
"(18168471 bytes) for Windows."
],
"dependencies": {
"obs-studio": {
"version": "30.0.2",
"baseUrl": "https://github.com/obsproject/obs-studio/archive/refs/tags",
"label": "OBS sources",
"hashes": {
"macos": "be12c3ad0a85713750d8325e4b1db75086223402d7080d0e3c2833d7c5e83c27",
"windows-x64": "970058c49322cfa9cd6d620abb393fed89743ba7e74bd9dbb6ebe0ea8141d9c7"
}
},
"prebuilt": {
"version": "2023-11-03",
"baseUrl": "https://github.com/obsproject/obs-deps/releases/download",
"label": "Pre-Built obs-deps",
"hashes": {
"macos": "90c2fc069847ec2768dcc867c1c63b112c615ed845a907dc44acab7a97181974",
"windows-x64": "d0825a6fb65822c993a3059edfba70d72d2e632ef74893588cf12b1f0d329ce6"
}
}
},
"platformConfig": {
"macos": {
"bundleId": "net.cybercove.streamer-tools-camera"
}
},
"name": "streamer-tools-camera",
"displayName": "streamer-tools Camera",
"version": "0.1.0",
"author": "CyberCoveLLC",
"website": "https://repo.anhonesthost.net/CyberCoveLLC/obs-streamer-tools-plugin",
"email": "jknapp85@gmail.com"
}