|
1 :: WARNNG WARNING WARNING :: |
|
2 :: This Batch script is BROKEN and EXTREMELY OUTDATED! |
|
3 :: It does not work with latest version and needs a complete redo or removal. |
|
4 :: Its functionality has been disabled. |
|
5 |
|
6 :: Print dummy text and return. |
|
7 echo Sorry, this script is outdated. You're on your own. |
|
8 exit |
|
9 |
|
10 |
|
11 :::::::::::::::::::::::::::::: |
|
12 :: Old script code follows ... |
|
13 :::::::::::::::::::::::::::::: |
1 @echo off |
14 @echo off |
2 ::edit these variables if you need |
15 ::edit these variables if you need |
3 set PASCAL=C:\FPC\2.6.0\bin\i386-win32\ |
16 set PASCAL=C:\FPC\2.6.0\bin\i386-win32\ |
|
17 :: FIXME: Go Qt 5 |
4 set QTDIR=C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin |
18 set QTDIR=C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin |
5 set PATH=%PATH%;%PASCAL% |
19 set PATH=%PATH%;%PASCAL% |
6 set BUILD_TYPE="Debug" |
20 set BUILD_TYPE="Debug" |
7 |
21 |
8 :setup |
22 :setup |
12 echo Fetching all DLLs... |
26 echo Fetching all DLLs... |
13 if %BUILD_TYPE%=="Debug" ( |
27 if %BUILD_TYPE%=="Debug" ( |
14 for %%G in (QtCored4 QtGuid4 QtNetworkd4) do xcopy /d/y %QTDIR%\%%G.dll %CD%\bin\ |
28 for %%G in (QtCored4 QtGuid4 QtNetworkd4) do xcopy /d/y %QTDIR%\%%G.dll %CD%\bin\ |
15 ) |
29 ) |
16 :: should you libgcc dynamically you should try adding libgcc_s_dw2-1 and mingwm10 |
30 :: should you libgcc dynamically you should try adding libgcc_s_dw2-1 and mingwm10 |
|
31 :: FIXME: Use Qt5 |
17 for %%G in (QtCore4 QtGui4 QtNetwork4) do ( |
32 for %%G in (QtCore4 QtGui4 QtNetwork4) do ( |
18 xcopy /d/y %QTDIR%\%%G.dll %CD%\bin\ |
33 xcopy /d/y %QTDIR%\%%G.dll %CD%\bin\ |
19 ) |
34 ) |
20 |
35 |
|
36 :: FIXME: Use SDL 2.0 |
21 if not exist %CD%\misc\winutils\bin\ mkdir %CD%\misc\winutils\bin\ |
37 if not exist %CD%\misc\winutils\bin\ mkdir %CD%\misc\winutils\bin\ |
22 if not exist %CD%\misc\winutils\bin\SDL.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/release/SDL-1.2.15-win32.zip %CD%\misc\winutils\bin |
38 if not exist %CD%\misc\winutils\bin\SDL.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/release/SDL-1.2.15-win32.zip %CD%\misc\winutils\bin |
23 if not exist %CD%\misc\winutils\bin\SDL_image.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12-win32.zip %CD%\misc\winutils\bin |
39 if not exist %CD%\misc\winutils\bin\SDL_image.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12-win32.zip %CD%\misc\winutils\bin |
24 if not exist %CD%\misc\winutils\bin\SDL_net.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8-win32.zip %CD%\misc\winutils\bin |
40 if not exist %CD%\misc\winutils\bin\SDL_net.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8-win32.zip %CD%\misc\winutils\bin |
25 if not exist %CD%\misc\winutils\bin\SDL_mixer.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12-win32.zip %CD%\misc\winutils\bin |
41 if not exist %CD%\misc\winutils\bin\SDL_mixer.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12-win32.zip %CD%\misc\winutils\bin |
26 if not exist %CD%\misc\winutils\bin\SDL_ttf.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11-win32.zip %CD%\misc\winutils\bin |
42 if not exist %CD%\misc\winutils\bin\SDL_ttf.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11-win32.zip %CD%\misc\winutils\bin |
27 |
43 |
28 ::for video recording |
44 ::for video recording |
|
45 :: FIXME: googlecode.com is defunct. |
29 if not exist %CD%\misc\winutils\bin\avformat-54.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://hedgewars.googlecode.com/files/libav-win32-20121022-dll.zip %CD%\misc\winutils\bin |
46 if not exist %CD%\misc\winutils\bin\avformat-54.dll cscript %CD%\tools\w32DownloadUnzip.vbs http://hedgewars.googlecode.com/files/libav-win32-20121022-dll.zip %CD%\misc\winutils\bin |
30 |
47 |
31 ::this is needed because fpc png unit hardcodes libpng-1.2.12 |
48 ::this is needed because fpc png unit hardcodes libpng-1.2.12 |
32 if not exist %CD%\misc\winutils\bin\libpng13.dll copy /y %CD%\misc\winutils\bin\libpng15-15.dll %CD%\misc\winutils\bin\libpng13.dll |
49 if not exist %CD%\misc\winutils\bin\libpng13.dll copy /y %CD%\misc\winutils\bin\libpng15-15.dll %CD%\misc\winutils\bin\libpng13.dll |
33 |
50 |