author | koda |
Tue, 23 Oct 2012 12:12:28 +0100 | |
changeset 7799 | a88a02c19a5b |
parent 6569 | 64f9fbd48b9e |
child 7810 | da60e6b6baa3 |
permissions | -rw-r--r-- |
6560 | 1 |
@echo off |
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
2 |
::edit these variables if you need |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
3 |
set PASCAL=C:\FPC\2.4.4\bin\i386-win32\ |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
4 |
set QTDIR=C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
5 |
set PATH=%PATH%;%PASCAL% |
6560 | 6 |
|
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
7 |
:setup |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
8 |
set CURRDIR="%CD%" |
6560 | 9 |
cd .. |
10 |
||
11 |
echo Copying the DLLs... |
|
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
12 |
REM xcopy /d/y %CD%\misc\winutils\bin\* . |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
13 |
xcopy /d/y %QTDIR%\QtCore4.dll bin |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
14 |
xcopy /d/y %QTDIR%\QtGui4.dll bin |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
15 |
xcopy /d/y %QTDIR%\QtNetwork4.dll bin |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
16 |
xcopy /d/y %QTDIR%\libgcc_s_dw2-1.dll bin |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
17 |
xcopy /d/y %QTDIR%\mingwm10.dll bin |
6560 | 18 |
|
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
19 |
::setting up the environment... |
6560 | 20 |
call %QTDIR%\qtenv2.bat |
6569 | 21 |
|
6560 | 22 |
echo Running cmake... |
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
23 |
set ERRORLEVEL= |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
24 |
cmake -G "MinGW Makefiles" -DCMAKE_INCLUDE_PATH="%CD%\misc\winutils\include" -DCMAKE_LIBRARY_PATH="%CD%\misc\winutils\lib" . |
6560 | 25 |
|
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
26 |
if %ERRORLEVEL% NEQ 0 goto exitpoint |
6569 | 27 |
|
6560 | 28 |
echo Running make... |
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
29 |
set ERRORLEVEL= |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
30 |
mingw32-make |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
31 |
if %ERRORLEVEL% NEQ 0 goto exitpoint |
6569 | 32 |
|
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
33 |
echo Installing... |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
34 |
set ERRORLEVEL= |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
35 |
mingw32-make install > nul |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
36 |
if %ERRORLEVEL% NEQ 0 goto exitpoint |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
37 |
|
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
38 |
echo Creating commodity shortcut... |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
39 |
COPY /y %CD%\misc\winutils\Hedgewars.lnk C:%HOMEPATH%\Desktop\Hedgewars.lnk |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
40 |
|
6569 | 41 |
echo ALL DONE, Hedgewars has been successfully compiled and installed |
6560 | 42 |
|
7799
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
43 |
:exitpoint |
a88a02c19a5b
tweaks to win build script, hedgewars.pro now supports win32 target
koda
parents:
6569
diff
changeset
|
44 |
cd %CURRDIR% |
6560 | 45 |
pause |