tools/build_windows.bat
changeset 6560 ca07e6be08d0
child 6562 e6b35a238d69
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/build_windows.bat	Sat Jan 14 05:03:21 2012 +0100
@@ -0,0 +1,35 @@
+@echo off
+:edit these variables if you need
+SET PASCAL=c:\Development\FPC\2.4.4\bin\i386-win32\
+SET QTDIR=c:\Development\QtSDK\Desktop\Qt\4.7.4\mingw\bin
+SET PATH=%PATH%;%PASCAL%
+
+:SETUP
+cd ..
+if not exist bin mkdir bin
+cd bin
+
+echo Copying the DLLs...
+xcopy /d/y ..\misc\winutils\bin\* .
+xcopy /d/y %QTDIR%\QtCore4.dll .
+xcopy /d/y %QTDIR%\QtGui4.dll .
+xcopy /d/y %QTDIR%\QtNetwork4.dll .
+xcopy /d/y %QTDIR%\libgcc_s_dw2-1.dll .
+xcopy /d/y %QTDIR%\mingwm10.dll .
+
+call %QTDIR%\qtenv2.bat
+echo Running cmake...
+cmake -G "MinGW Makefiles" -DCMAKE_INCLUDE_PATH="%CD%\..\misc\winutils\include" -DCMAKE_LIBRARY_PATH="%CD%\..\misc\winutils\lib" ..
+
+echo Running make...
+mingw32-make -lSDL -lSDL_Mixer install
+
+echo Creating shortcut...
+if /i "%PROGRAMFILES(X86)%"=="" (
+	COPY /y ..\misc\winutils\Hedgewars_x86.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk 
+) else (
+	COPY /y ..\misc\winutils\Hedgewars_x64.lnk C:\%HOMEPATH%\Desktop\Hedgewars.lnk
+)
+
+echo ALL DONE, Hedgewars has been successfully compiled and installed
+pause