mirror of
https://github.com/royshil/obs-localvocal.git
synced 2026-01-10 12:58:10 -05:00
Stop using deprecated API functions that were removed in OBS v32 (See: https://github.com/obsproject/obs-studio/pull/12488) * Use the return value from `obs_scene_add` instead of looking it up after creating it using the deprecated `obs_scene_sceneitem_from_source` function * Use v2 sceneitem transform API instead of deprecated v1 API * Change all uses of `circlebuf` to `deque` as it's been renamed in OBS Additional bug fixes: * Wait until scenes are loaded to create text source if it's missing. Previously the creation of the text source could fail due to there not being any scenes yet to create it in * Fix build on MacOS and some Linux distributions * Catch exceptions thrown by ONNX runtime and log an error instead of crashing Other changes: * Update OBS source dependencies * OBS: 30.1.2 -> 31.1.1 * OBS deps: 2024-03-19 -> 2025-07-11 * Qt6 deps: 2024-03-19 -> 2025-02-04 * Update build files to more closely match the current plugin template repository Fixes: #230 Fixes: #227
187 lines
5.2 KiB
JSON
187 lines
5.2 KiB
JSON
{
|
|
"version": 3,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 22,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "template",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"ENABLE_FRONTEND_API": true,
|
|
"ENABLE_QT": true
|
|
}
|
|
},
|
|
{
|
|
"name": "macos",
|
|
"displayName": "macOS Universal",
|
|
"description": "Build for macOS 12.0+ (Universal binary)",
|
|
"inherits": ["template"],
|
|
"binaryDir": "${sourceDir}/build_macos",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Darwin"
|
|
},
|
|
"generator": "Xcode",
|
|
"warnings": {"dev": true, "deprecated": true},
|
|
"cacheVariables": {
|
|
"CMAKE_OSX_DEPLOYMENT_TARGET": "12.0",
|
|
"CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
|
|
"CODESIGN_TEAM": "$penv{CODESIGN_TEAM}"
|
|
}
|
|
},
|
|
{
|
|
"name": "macos-ci",
|
|
"inherits": ["macos"],
|
|
"displayName": "macOS Universal CI build",
|
|
"description": "Build for macOS 12.0+ (Universal binary) for CI",
|
|
"generator": "Xcode",
|
|
"cacheVariables": {
|
|
"CMAKE_COMPILE_WARNING_AS_ERROR": true
|
|
}
|
|
},
|
|
{
|
|
"name": "windows-x64",
|
|
"displayName": "Windows x64",
|
|
"description": "Build for Windows x64",
|
|
"inherits": ["template"],
|
|
"binaryDir": "${sourceDir}/build_x64",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"generator": "Visual Studio 17 2022",
|
|
"architecture": "x64",
|
|
"warnings": {"dev": true, "deprecated": true},
|
|
"cacheVariables": {
|
|
"CMAKE_SYSTEM_VERSION": "10.0.18363.657"
|
|
}
|
|
},
|
|
{
|
|
"name": "windows-ci-x64",
|
|
"inherits": ["windows-x64"],
|
|
"displayName": "Windows x64 CI build",
|
|
"description": "Build for Windows x64 on CI",
|
|
"cacheVariables": {
|
|
"CMAKE_COMPILE_WARNING_AS_ERROR": true
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-x86_64",
|
|
"displayName": "Linux x86_64",
|
|
"description": "Build for Linux x86_64",
|
|
"inherits": ["template"],
|
|
"binaryDir": "${sourceDir}/build_x86_64",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"generator": "Ninja",
|
|
"warnings": {"dev": true, "deprecated": true},
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-ci-x86_64",
|
|
"inherits": ["linux-x86_64"],
|
|
"displayName": "Linux x86_64 CI build",
|
|
"description": "Build for Linux x86_64 on CI",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
"CMAKE_COMPILE_WARNING_AS_ERROR": true
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-aarch64",
|
|
"displayName": "Linux aarch64",
|
|
"description": "Build for Linux aarch64",
|
|
"inherits": ["template"],
|
|
"binaryDir": "${sourceDir}/build_aarch64",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"generator": "Ninja",
|
|
"warnings": {"dev": true, "deprecated": true},
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "linux-ci-aarch64",
|
|
"inherits": ["linux-aarch64"],
|
|
"displayName": "Linux aarch64 CI build",
|
|
"description": "Build for Linux aarch64 on CI",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
"CMAKE_COMPILE_WARNING_AS_ERROR": true
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "macos",
|
|
"configurePreset": "macos",
|
|
"displayName": "macOS Universal",
|
|
"description": "macOS build for Universal architectures",
|
|
"configuration": "Release"
|
|
},
|
|
{
|
|
"name": "macos-ci",
|
|
"configurePreset": "macos-ci",
|
|
"displayName": "macOS Universal CI",
|
|
"description": "macOS CI build for Universal architectures",
|
|
"configuration": "RelWithDebInfo"
|
|
},
|
|
{
|
|
"name": "windows-x64",
|
|
"configurePreset": "windows-x64",
|
|
"displayName": "Windows x64",
|
|
"description": "Windows build for x64",
|
|
"configuration": "RelWithDebInfo"
|
|
},
|
|
{
|
|
"name": "windows-ci-x64",
|
|
"configurePreset": "windows-ci-x64",
|
|
"displayName": "Windows x64 CI",
|
|
"description": "Windows CI build for x64 (RelWithDebInfo configuration)",
|
|
"configuration": "RelWithDebInfo"
|
|
},
|
|
{
|
|
"name": "linux-x86_64",
|
|
"configurePreset": "linux-x86_64",
|
|
"displayName": "Linux x86_64",
|
|
"description": "Linux build for x86_64",
|
|
"configuration": "RelWithDebInfo"
|
|
},
|
|
{
|
|
"name": "linux-ci-x86_64",
|
|
"configurePreset": "linux-ci-x86_64",
|
|
"displayName": "Linux x86_64 CI",
|
|
"description": "Linux CI build for x86_64",
|
|
"configuration": "RelWithDebInfo"
|
|
},
|
|
{
|
|
"name": "linux-aarch64",
|
|
"configurePreset": "linux-aarch64",
|
|
"displayName": "Linux aarch64",
|
|
"description": "Linux build for aarch64",
|
|
"configuration": "RelWithDebInfo"
|
|
},
|
|
{
|
|
"name": "linux-ci-aarch64",
|
|
"configurePreset": "linux-ci-aarch64",
|
|
"displayName": "Linux aarch64 CI",
|
|
"description": "Linux CI build for aarch64",
|
|
"configuration": "RelWithDebInfo"
|
|
}
|
|
]
|
|
}
|