Advertisement
Kitomas

_CMAKE.bat

Aug 4th, 2023
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.73 KB | None | 0 0
  1. rem _CMAKE.bat
  2. @echo off
  3.  
  4. set DEF=-DSDL_STATIC=ON -DSDL_SHARED=OFF
  5. set DEF=%DEF% -DSDL_3DNOW=OFF
  6. set DEF=%DEF% -DSDL_ALTIVEC=OFF
  7. set DEF=%DEF% -DSDL_CCACHE=OFF
  8. set DEF=%DEF% -DSDL_DISKAUDIO=OFF
  9. set DEF=%DEF% -DSDL_HIDAPI=OFF
  10. set DEF=%DEF% -DSDL_HIDAPI_JOYSTICK=OFF
  11. set DEF=%DEF% -DSDL_LIBUDEV=OFF
  12. set DEF=%DEF% -DSDL_MMX=OFF
  13. set DEF=%DEF% -DSDL_OPENGL=OFF
  14. set DEF=%DEF% -DSDL_OPENGLES=OFF
  15. set DEF=%DEF% -DSDL_SSE=OFF
  16. set DEF=%DEF% -DSDL_SSE2=OFF
  17. set DEF=%DEF% -DSDL_VIRTUAL_JOYSTICK=OFF
  18.  
  19. set DEF=%DEF% -DCMAKE_INSTALL_PREFIX="%~dp0install"
  20.  
  21. cd build
  22. rm -r -d ./*
  23. if not "%ERRORLEVEL%"=="0" goto skip
  24. @echo on
  25.  
  26. cmake ../SDL2-2.28.2 -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" %DEF%
  27.  
  28. :skip
  29. @echo off
  30. cd ..
  31. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement