build.bat 1003 B

123456789101112131415161718192021222324252627282930313233
  1. git rev-parse HEAD>current_version.txt
  2. set /P CURRENT=<current_version.txt
  3. echo %CURRENT%
  4. mkdir build
  5. ::if %errorlevel% neq 0 exit /b %errorlevel%
  6. cd build
  7. if %errorlevel% neq 0 exit /b %errorlevel%
  8. set QTDIR=C:\qt-everywhere-opensource-src-4.8.6_32
  9. set OGRE_HOME=C:\Ogre\Build\sdk
  10. call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
  11. cmake .. -T v120_xp -DZLIB_INCLUDE_DIR=C:/zlib-1.2.8 -DBOOST_ROOT=C:\boost_1_55_0_32 -DBOOST_LIBRARYDIR=C:\boost_1_55_0_32\lib32-msvc-12.0 -DOGRE_DIR=C:\Ogre\Build\sdk -DOIS_HOME=C:\Ogre\Dependencies\Build\ogredeps -DZLIB_LIBRARY=C:/zlib-1.2.8/contrib/vstudio/vc11/x86/ZlibDllReleaseWithoutAsm/zlibwapi.lib
  12. if %errorlevel% neq 0 exit /b %errorlevel%
  13. msbuild /m QGears.sln /p:Configuration=Release
  14. if %errorlevel% neq 0 exit /b %errorlevel%
  15. cpack -C "Release"
  16. if %errorlevel% neq 0 exit /b %errorlevel%
  17. cd ..
  18. cd ..
  19. mkdir %CURRENT%
  20. cd %CURRENT%
  21. mkdir windows
  22. cd ..
  23. dir
  24. move q-gears\build\*.msi %CURRENT%\windows
  25. ctest --verbose