tools/build_windows.bat
changeset 8068 b35427506169
parent 7815 1a3a62b0ac11
child 8734 ecb0a97100cf
equal deleted inserted replaced
8067:34a679e5ca9d 8068:b35427506169
     1 @echo off
     1 @echo off
     2 ::edit these variables if you need
     2 ::edit these variables if you need
     3 set PASCAL=C:\FPC\2.4.4\bin\i386-win32\
     3 set PASCAL=C:\FPC\2.6.0\bin\i386-win32\
     4 set QTDIR=C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin
     4 set QTDIR=C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin
     5 set PATH=%PATH%;%PASCAL%
     5 set PATH=%PATH%;%PASCAL%
     6 set BUILD_TYPE="Debug"
     6 set BUILD_TYPE="Debug"
     7 
     7 
     8 :setup
     8 :setup
    37 ::setting up the environment...
    37 ::setting up the environment...
    38 call %QTDIR%\qtenv2.bat
    38 call %QTDIR%\qtenv2.bat
    39 
    39 
    40 echo Running cmake...
    40 echo Running cmake...
    41 set ERRORLEVEL=
    41 set ERRORLEVEL=
    42 cmake -G "MinGW Makefiles" -DCMAKE_INCLUDE_PATH="%CD%\misc\winutils\include" -DCMAKE_LIBRARY_PATH="%CD%\misc\winutils\lib" -DPNG_LIBRARY="%CD%\misc\winutils\bin\libpng13.dll" . -DCMAKE_BUILD_TYPE=%BUILD_TYPE%
    42 cmake -G "MinGW Makefiles" -DPNG_LIBRARY="%CD%\misc\winutils\bin\libpng13.dll" . -DCMAKE_BUILD_TYPE=%BUILD_TYPE%
    43 
    43 
    44 if %ERRORLEVEL% NEQ 0 goto exitpoint
    44 if %ERRORLEVEL% NEQ 0 goto exitpoint
    45 
    45 
    46 echo Running make...
    46 echo Running make...
    47 set ERRORLEVEL=
    47 set ERRORLEVEL=
    48 mingw32-make
    48 mingw32-make VERBOSE=1
    49 if %ERRORLEVEL% NEQ 0 goto exitpoint
    49 if %ERRORLEVEL% NEQ 0 goto exitpoint
    50 
    50 
    51 echo Installing...
    51 echo Installing...
    52 set ERRORLEVEL=
    52 set ERRORLEVEL=
    53 mingw32-make install > nul
    53 mingw32-make install > nul