obs-plugintemplate を使いましょう。
- 以下をインストールしておく
- PowerShell、既定で入っていない新しい方
- CMake
- Visual Studio 2022
- Windows 10 SDK (minimum 10.0.19041.0) とあり、Installer を使って SDK を追加しないといけない可能性あり
- obs-plugintemplate を clone してくる
- obs-plugintemplate/.github/scripts/Build-Windows.ps1 の
CMakeGenerator
をVisual Studio 17 2022
に書き換える- コマンドレットパラメータなので、スクリプト実行時に
-CMakeGenerator
のように渡せるはずだけど試していない
- コマンドレットパラメータなので、スクリプト実行時に
- 上記のスクリプトを実行する
> Set-ExecutionPolicy RemoteSigned -scope Process # ps1スクリプトの実行を許可 > .\.github\scripts\Build-Windows.ps1
- ビルドされて、 obs-plugintemplate/release/obs-plugins/64bit/obs-plugintemplate.dll ができる
- この dll を、 OBS studio の近くにある obs-plugins/64bit に投げ込み、OBS studio を起動すると読み込まれる
- あとは Plugin のドキュメント に従って改造していく