tools/build_windows.bat
changeset 6560 ca07e6be08d0
child 6562 e6b35a238d69
equal deleted inserted replaced
6559:4590dca73904 6560:ca07e6be08d0
       
     1 @echo off
       
     2 :edit these variables if you need
       
     3 SET PASCAL=c:\Development\FPC\2.4.4\bin\i386-win32\
       
     4 SET QTDIR=c:\Development\QtSDK\Desktop\Qt\4.7.4\mingw\bin
       
     5 SET PATH=%PATH%;%PASCAL%
       
     6 
       
     7 :SETUP
       
     8 cd ..
       
     9 if not exist bin mkdir bin
       
    10 cd bin
       
    11 
       
    12 echo Copying the DLLs...
       
    13 xcopy /d/y ..\misc\winutils\bin\* .
       
    14 xcopy /d/y %QTDIR%\QtCore4.dll .
       
    15 xcopy /d/y %QTDIR%\QtGui4.dll .
       
    16 xcopy /d/y %QTDIR%\QtNetwork4.dll .
       
    17 xcopy /d/y %QTDIR%\libgcc_s_dw2-1.dll .
       
    18 xcopy /d/y %QTDIR%\mingwm10.dll .
       
    19 
       
    20 call %QTDIR%\qtenv2.bat
       
    21 echo Running cmake...
       
    22 cmake -G "MinGW Makefiles" -DCMAKE_INCLUDE_PATH="%CD%\..\misc\winutils\include" -DCMAKE_LIBRARY_PATH="%CD%\..\misc\winutils\lib" ..
       
    23 
       
    24 echo Running make...
       
    25 mingw32-make -lSDL -lSDL_Mixer install
       
    26 
       
    27 echo Creating shortcut...
       
    28 if /i "%PROGRAMFILES(X86)%"=="" (
       
    29 	COPY /y ..\misc\winutils\Hedgewars_x86.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk 
       
    30 ) else (
       
    31 	COPY /y ..\misc\winutils\Hedgewars_x64.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk
       
    32 )
       
    33 
       
    34 echo ALL DONE, Hedgewars has been successfully compiled and installed
       
    35 pause