Skip to content

Instantly share code, notes, and snippets.

@tsukumijima
Last active July 11, 2022 07:09
Show Gist options
  • Save tsukumijima/2d1d2b2ad9be5700c535752af1fd455a to your computer and use it in GitHub Desktop.
Save tsukumijima/2d1d2b2ad9be5700c535752af1fd455a to your computer and use it in GitHub Desktop.
TVTest を全自動でビルドするバッチ(自分用・たぶん他の環境では動きません)
@echo off
rem // 開発者コマンドプロンプトの起動
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"
cd /d %~dp0
rem // LibISDB のビルド
cd %~dp0\TVTest\src\LibISDB\Projects
MSBuild LibISDB.sln /t:Build /p:Configuration=Release;Platform=x64;PlatformToolset=v142
MSBuild LibISDB.sln /t:Build /p:Configuration=Release;Platform=x86;PlatformToolset=v142
rem // TVTest のビルド
cd %~dp0\TVTest\src
MSBuild TVTest_All.sln /t:Build /p:Configuration=Release;Platform=x64;PlatformToolset=v142
MSBuild TVTest_All.sln /t:Build /p:Configuration=Release;Platform=Win32;PlatformToolset=v142
rem // プラグインのビルド
cd %~dp0\TVTest\sdk\Samples
MSBuild Samples.sln /t:Build /p:Configuration=Release_static;Platform=x64;PlatformToolset=v142
MSBuild Samples.sln /t:Build /p:Configuration=Release_static;Platform=Win32;PlatformToolset=v142
rem // アーカイブを作成
cd %~dp0\TVTest
bash package.sh -a x64 -c static -l all -t release -o ../TVTest_Package/
bash package.sh -a x86 -c static -l all -t release -o ../TVTest_Package/
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment