build_sounds.cmd 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @ECHO OFF
  2. SETLOCAL
  3. CALL ..\..\..\msbuild.cmd
  4. if exist %msbuild% (
  5. for /F "tokens=*" %%A in (%cd%\..\..\..\build\sounds_upgradecode.txt) do (
  6. for /F "tokens=1 delims= " %%a in ("%%A") do (
  7. CALL :Build %%a
  8. )
  9. )
  10. ) ELSE (
  11. echo "echo ERROR: Cannot find msbuild. You need Microsoft Visual Studio to compile this solution."
  12. EXIT /B 1
  13. )
  14. REM CALL :Build music
  15. REM CALL :Build en-us-callie
  16. :: force execution to quit at the end of the "main" logic
  17. EXIT /B %ERRORLEVEL%
  18. :Build
  19. set SoundPrimaryName=%1
  20. set SoundQuality=8000
  21. cmd /C %msbuild% %solution% /p:SoundPrimaryName=%SoundPrimaryName% /p:SoundQuality=%SoundQuality% /p:Configuration=Release /p:Platform=x64 /t:Build /verbosity:normal /fl /flp:logfile=..\..\..\x64\sound_logs\sounds_%SoundPrimaryName%_%SoundQuality%.log;verbosity=normal
  22. set SoundQuality=16000
  23. cmd /C %msbuild% %solution% /p:SoundPrimaryName=%SoundPrimaryName% /p:SoundQuality=%SoundQuality% /p:Configuration=Release /p:Platform=x64 /t:Build /verbosity:normal /fl /flp:logfile=..\..\..\x64\sound_logs\sounds_%SoundPrimaryName%_%SoundQuality%.log;verbosity=normal
  24. set SoundQuality=32000
  25. cmd /C %msbuild% %solution% /p:SoundPrimaryName=%SoundPrimaryName% /p:SoundQuality=%SoundQuality% /p:Configuration=Release /p:Platform=x64 /t:Build /verbosity:normal /fl /flp:logfile=..\..\..\x64\sound_logs\sounds_%SoundPrimaryName%_%SoundQuality%.log;verbosity=normal
  26. set SoundQuality=48000
  27. cmd /C %msbuild% %solution% /p:SoundPrimaryName=%SoundPrimaryName% /p:SoundQuality=%SoundQuality% /p:Configuration=Release /p:Platform=x64 /t:Build /verbosity:normal /fl /flp:logfile=..\..\..\x64\sound_logs\sounds_%SoundPrimaryName%_%SoundQuality%.log;verbosity=normal
  28. EXIT /B 0