Advertisement
Tkap1

Untitled

Sep 22nd, 2022
1,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.58 KB | None | 0 0
  1. @echo off
  2.  
  3. set files=..\src\client\client.cpp
  4. pushd build
  5. cl %variable% !defines! %other% !files! !warnings! /I "..\src\client" -LD -Fe:game_client.dll /DIS_CLIENT /link !linker! %libs% /PDB:"game_client_%crazy_date_thing%.pdb" > compiler_output.txt
  6. popd
  7. if NOT !ErrorLevel! == 0 (
  8.     start /MIN "" cmdmp3 build_fail.mp3
  9.     goto fail
  10. )
  11. type build\compiler_output.txt
  12.  
  13. goto success
  14.  
  15. :fail
  16. type build\compiler_output.txt
  17. echo COMPILATION FAILED
  18. goto end
  19.  
  20. :success
  21. echo COMPILATION SUCCEDED
  22. call stamp_timer.exe "end"
  23. start /MIN "" cmdmp3 build_success.mp3
  24. goto end
  25.  
  26. :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement