mirror of
https://github.com/Egor00f/kolibrios-gcc-toolchain.git
synced 2024-11-24 09:43:48 +01:00
update
This commit is contained in:
parent
3551edce2c
commit
a54d0f3f2c
19
README.md
19
README.md
@ -2,6 +2,21 @@
|
||||
|
||||
Просто устанавливает тулчейн
|
||||
|
||||
оригинальный скрипт взят из http://board.kolibrios.org/viewtopic.php?p=76227&hilit=%D1%82%D1%83%D0%BB%D1%87%D0%B5%D0%B9%D0%BD#p76227
|
||||
|
||||
оригинальный скрипт для linux взят из http://board.kolibrios.org/viewtopic.php?p=76227&hilit=%D1%82%D1%83%D0%BB%D1%87%D0%B5%D0%B9%D0%BD#p76227
|
||||
(скрипт подправлен)
|
||||
|
||||
## установка
|
||||
|
||||
Для установки требуются установленные 7z и wget
|
||||
|
||||
## Linux
|
||||
|
||||
Просто запустите install.sh.
|
||||
|
||||
Некоторые команды требуют sudo
|
||||
|
||||
## Windows
|
||||
|
||||
Просто запустите install.bat. Рекомендуется запускать с повышенными правами
|
||||
|
||||
wget для windows можно поискать в GnuWin32, 7z Нужно добавить в PATH.
|
||||
|
33
install.bat
33
install.bat
@ -1,17 +1,24 @@
|
||||
|
||||
@echo off
|
||||
for /f %%a in ('echo prompt $E^| cmd') do set "ESC=%%a"
|
||||
|
||||
7z -v
|
||||
|
||||
set TOOLCHAIN_DIR=C:\MinGW\msys\1.0\home\autobuild\tools
|
||||
|
||||
mkdir %TOOLCHAIN_DIR%
|
||||
|
||||
cd %TOOLCHAIN_DIR%
|
||||
|
||||
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/msys-kos32-5.4.0.7z -q -O %TOOLCHAIN_DIR%\kos32-toolchain.7z
|
||||
|
||||
call :print_msg Download the kos32-gcc toolchain...
|
||||
|
||||
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/msys-kos32-5.4.0.7z -O %TOOLCHAIN_DIR%\kos32-toolchain.7z
|
||||
|
||||
7z x -y kos32-toolchain.7z
|
||||
|
||||
Call :print_ok Successfully!
|
||||
|
||||
|
||||
Call :print_msg Downloading libraries...
|
||||
|
||||
cd %TOOLCHAIN_DIR%\win32\mingw32
|
||||
|
||||
@ -19,6 +26,12 @@ wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/sdk-28-10-16.7z -q -O %T
|
||||
|
||||
7z x -y sdk-28-10-16.7z
|
||||
|
||||
Call :print_ok "Successfully!"
|
||||
|
||||
|
||||
|
||||
Call :print_msg Updating libraries
|
||||
|
||||
cd lib
|
||||
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libdll.a -q -O libdll.a
|
||||
@ -31,4 +44,18 @@ wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libogg.a -q -O libog
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libvorbis.a -q -O libvorbis.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libopenjpeg.a -q -O libopenjpeg.a
|
||||
|
||||
Call :print_ok Successfully!
|
||||
|
||||
Call :print_msg Adding C:/MinGW/msys/1.0/home/autobuild/tools/win32/bin to PATH
|
||||
|
||||
set PATH=%PATH%;%TOOLCHAIN_DIR%%\win32\bin
|
||||
|
||||
|
||||
|
||||
:print_msg
|
||||
echo %ESC%[92m%* %ESC%[%m
|
||||
exit /b
|
||||
|
||||
:print_ok
|
||||
echo %ESC%[36m%*%ESC%[%m
|
||||
exit /b
|
25
update-libs
25
update-libs
@ -1,25 +0,0 @@
|
||||
print_msg(){
|
||||
echo -e "\e[34m$1\e[0m"
|
||||
}
|
||||
|
||||
print_ok(){
|
||||
echo -e "\e[32m$1\e[0m"
|
||||
}
|
||||
|
||||
print_msg "Updating libraries..."
|
||||
|
||||
|
||||
cd ~/autobuild/tools/win32/mingw32/lib
|
||||
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libdll.a -O libdll.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libfreetype.a -O libfreetype.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libc.dll.a -O libc.dll.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libSDLn.a -O libSDLn.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libcurses.a -O libcurses.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libz.dll.a -O libz.dll.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libogg.a -O libogg.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libvorbis.a -O libvorbis.a
|
||||
wget http://builds.kolibrios.org/en_US/data/contrib/sdk/lib/libopenjpeg.a -O libopenjpeg.a
|
||||
|
||||
|
||||
print_ok "Successfully!"
|
Loading…
Reference in New Issue
Block a user