tools/build_windows.bat
changeset 6569 64f9fbd48b9e
parent 6562 e6b35a238d69
child 7799 a88a02c19a5b
equal deleted inserted replaced
6568:ad83229a7d98 6569:64f9fbd48b9e
    15 xcopy /d/y %QTDIR%\QtGui4.dll .
    15 xcopy /d/y %QTDIR%\QtGui4.dll .
    16 xcopy /d/y %QTDIR%\QtNetwork4.dll .
    16 xcopy /d/y %QTDIR%\QtNetwork4.dll .
    17 xcopy /d/y %QTDIR%\libgcc_s_dw2-1.dll .
    17 xcopy /d/y %QTDIR%\libgcc_s_dw2-1.dll .
    18 xcopy /d/y %QTDIR%\mingwm10.dll .
    18 xcopy /d/y %QTDIR%\mingwm10.dll .
    19 
    19 
       
    20 echo Setting up the environment...
    20 call %QTDIR%\qtenv2.bat
    21 call %QTDIR%\qtenv2.bat
       
    22 
    21 echo Running cmake...
    23 echo Running cmake...
       
    24 set errorlevel=
    22 cmake -G "MinGW Makefiles" -DCMAKE_INCLUDE_PATH="%CD%\..\misc\winutils\include" -DCMAKE_LIBRARY_PATH="%CD%\..\misc\winutils\lib" ..
    25 cmake -G "MinGW Makefiles" -DCMAKE_INCLUDE_PATH="%CD%\..\misc\winutils\include" -DCMAKE_LIBRARY_PATH="%CD%\..\misc\winutils\lib" ..
    23 
    26 
       
    27 if %errorlevel% NEQ 0 goto exit
       
    28 
    24 echo Running make...
    29 echo Running make...
       
    30 set errorlevel=
    25 mingw32-make -lSDL -lSDL_Mixer install
    31 mingw32-make -lSDL -lSDL_Mixer install
       
    32 
       
    33 if %errorlevel% NEQ 0 goto exit
    26 
    34 
    27 echo Creating shortcut...
    35 echo Creating shortcut...
    28 if /i "%PROGRAMFILES(X86)%"=="" (
    36 if /i "%PROGRAMFILES(X86)%"=="" (
    29 	COPY /y ..\misc\winutils\Hedgewars_x86.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk 
    37 	COPY /y ..\misc\winutils\Hedgewars_x86.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk 
    30 ) else (
    38 ) else (
    31 	COPY /y ..\misc\winutils\Hedgewars_x64.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk
    39 	COPY /y ..\misc\winutils\Hedgewars_x64.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk
    32 )
    40 )
       
    41 echo ALL DONE, Hedgewars has been successfully compiled and installed
    33 
    42 
    34 echo ALL DONE, Hedgewars has been successfully compiled and installed
    43 :exit
       
    44 cd ../tools
    35 pause
    45 pause