2024-11-07 13:38:42 +01:00
|
|
|
@echo off
|
2024-11-07 15:34:03 +01:00
|
|
|
for /f %%a in ('echo prompt $E^| cmd') do set "ESC=%%a"
|
2024-11-07 13:38:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
set TOOLCHAIN_DIR=C:\MinGW\msys\1.0\home\autobuild\tools
|
|
|
|
|
2024-11-07 17:04:55 +01:00
|
|
|
|
|
|
|
|
2024-11-07 16:19:35 +01:00
|
|
|
Call :print_msg Create the C:/MinGW/msys/1.0/home/autobuild folder...
|
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
mkdir %TOOLCHAIN_DIR%
|
2024-11-07 13:38:42 +01:00
|
|
|
|
2024-11-07 16:19:35 +01:00
|
|
|
Call :print_ok Successfully!
|
|
|
|
|
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
|
|
|
|
call :print_msg Download the kos32-gcc toolchain...
|
|
|
|
|
2024-11-07 17:04:55 +01:00
|
|
|
cd %TOOLCHAIN_DIR%
|
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/msys-kos32-5.4.0.7z -O %TOOLCHAIN_DIR%\kos32-toolchain.7z
|
2024-11-07 13:38:42 +01:00
|
|
|
|
2024-11-08 08:00:19 +01:00
|
|
|
7z x -y %TOOLCHAIN_DIR%\kos32-toolchain.7z -o%TOOLCHAIN_DIR%
|
2024-11-07 13:38:42 +01:00
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
Call :print_ok Successfully!
|
|
|
|
|
|
|
|
|
2024-11-07 16:19:35 +01:00
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
Call :print_msg Downloading libraries...
|
2024-11-07 13:38:42 +01:00
|
|
|
|
|
|
|
cd %TOOLCHAIN_DIR%\win32\mingw32
|
|
|
|
|
2024-11-07 17:09:03 +01:00
|
|
|
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/sdk-28-10-16.7z -O %TOOLCHAIN_DIR%\win32\mingw32\sdk-28-10-16.7z
|
2024-11-07 13:38:42 +01:00
|
|
|
|
2024-11-07 16:53:33 +01:00
|
|
|
7z x -y %TOOLCHAIN_DIR%\win32\mingw32\sdk-28-10-16.7z
|
2024-11-07 13:38:42 +01:00
|
|
|
|
2024-11-07 17:04:55 +01:00
|
|
|
Call :print_ok Successfully!
|
2024-11-07 15:34:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Call :print_msg Updating libraries
|
|
|
|
|
2024-11-07 17:04:55 +01:00
|
|
|
cd %TOOLCHAIN_DIR%\win32\mingw32\lib
|
2024-11-07 13:38:42 +01:00
|
|
|
|
2024-11-07 17:09:03 +01:00
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libdll.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libdll.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libfreetype.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libfreetype.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libc.dll.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libc.dll.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libSDLn.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libSDLn.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libcurses.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libcurses.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libz.dll.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libz.dll.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libogg.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libogg.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libvorbis.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libvorbis.a
|
|
|
|
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libopenjpeg.a -O %TOOLCHAIN_DIR%\win32\mingw32\lib\libopenjpeg.a
|
2024-11-07 13:38:42 +01:00
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
Call :print_ok Successfully!
|
|
|
|
|
2024-11-07 16:19:35 +01:00
|
|
|
|
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
Call :print_msg Adding C:/MinGW/msys/1.0/home/autobuild/tools/win32/bin to PATH
|
|
|
|
|
2024-11-07 13:38:42 +01:00
|
|
|
set PATH=%PATH%;%TOOLCHAIN_DIR%%\win32\bin
|
2024-11-07 15:34:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-07 16:19:35 +01:00
|
|
|
Call :print_ok Installation was successful!
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-07 15:34:03 +01:00
|
|
|
:print_msg
|
2024-11-07 17:04:55 +01:00
|
|
|
echo %ESC%[92m%*%ESC%[%m
|
2024-11-07 15:34:03 +01:00
|
|
|
exit /b
|
|
|
|
|
|
|
|
:print_ok
|
|
|
|
echo %ESC%[36m%*%ESC%[%m
|
2024-11-07 16:29:01 +01:00
|
|
|
exit /b
|