Browse Source

update windows build scripts

pull/832/head
R4SAS 8 years ago
parent
commit
eb12d43800
  1. 31
      contrib/build_mingw.cmd
  2. 12
      contrib/build_mingw.sh

31
contrib/build_mingw.cmd

@ -1,22 +1,25 @@
@echo off @echo off
title ‘¡®àª  i2pd setlocal
set "WD=C:\msys64" title Building i2pd
set "WD=C:\msys64\usr\bin\"
set MSYS2_PATH_TYPE=inherit
set CHERE_INVOKING=enabled_from_arguments set CHERE_INVOKING=enabled_from_arguments
set MSYSCON=mintty.exe set MSYSCON=
echo ‘¡®àª  i2pd ¤«ï win32. <EFBFBD> ¦¬¨â¥ Enter ¯®á«¥ ®ª®­ç ­¨ï ª®¬¯¨«ï樨... echo Building i2pd for win32. Press Enter after the end of compilation...
set "MSYSTEM=MINGW32" set MSYSTEM=MINGW32
set "CONTITLE=MinGW x32" set CONTITLE=MinGW x32
start "%CONTITLE%" /WAIT C:\msys64\usr\bin\mintty.exe -i /msys2.ico /usr/bin/bash --login build_mingw.sh start "%CONTITLE%" /WAIT "%WD%bash" --login build_mingw.sh
pause pause > nul
echo ‘¡®àª  i2pd ¤«ï win64. <EFBFBD> ¦¬¨â¥ Enter ¯®á«¥ ®ª®­ç ­¨ï ª®¬¯¨«ï樨... echo Building i2pd for win64. Press Enter after the end of compilation...
set "MSYSTEM=MINGW64" set MSYSTEM=MINGW64
set "CONTITLE=MinGW x64" set CONTITLE=MinGW x64
start "%CONTITLE%" /WAIT C:\msys64\usr\bin\mintty.exe -i /msys2.ico /usr/bin/bash --login build_mingw.sh start "%CONTITLE%" /WAIT "%WD%bash" --login build_mingw.sh
pause pause > nul
echo ‘¡®àª  § ¢¥à襭 ... echo Build complete...
pause pause
exit /b 0 exit /b 0

12
contrib/build_mingw.sh

@ -48,7 +48,8 @@ fi;
echo "Собираем i2pd ${version} (коммит ${commit}) для ${arch}."; echo "Собираем i2pd ${version} (коммит ${commit}) для ${arch}.";
# Собираем приложение с разными параметрами, и архивируем в zip архивы. # Собираем приложение с разными параметрами, и архивируем в zip архивы.
make USE_UPNP=yes USE_AVX=1 USE_AESNI=1 -j ${threads} > ${contrib}/build_avx_aesni.log 2>&1 echo "Сборка AVX+AESNI";
make USE_UPNP=yes USE_AVX=1 USE_AESNI=1 -j ${threads} > ${contrib}/build_${arch}_avx_aesni.log 2>&1
if [ "$?" != 0 ]; then if [ "$?" != 0 ]; then
echo "Сборка не удалась. Смотрите в build_avx_aesni.log"; echo "Сборка не удалась. Смотрите в build_avx_aesni.log";
exit 1; exit 1;
@ -56,7 +57,8 @@ fi;
zip -9 ${contrib}/i2pd_${version}_${commit}_${arch}_mingw_avx_aesni.zip i2pd.exe >> /dev/null zip -9 ${contrib}/i2pd_${version}_${commit}_${arch}_mingw_avx_aesni.zip i2pd.exe >> /dev/null
make clean >> /dev/null make clean >> /dev/null
make USE_UPNP=yes USE_AVX=1 -j ${threads} > ${contrib}/build_avx.log 2>&1 echo "Сборка AVX";
make USE_UPNP=yes USE_AVX=1 -j ${threads} > ${contrib}/build_${arch}_avx.log 2>&1
if [ "$?" != 0 ]; then if [ "$?" != 0 ]; then
echo "Сборка не удалась. Смотрите в build_avx.log."; echo "Сборка не удалась. Смотрите в build_avx.log.";
exit 1; exit 1;
@ -64,7 +66,8 @@ fi;
zip -9 ${contrib}/i2pd_${version}_${commit}_${arch}_mingw_avx.zip i2pd.exe >> /dev/null zip -9 ${contrib}/i2pd_${version}_${commit}_${arch}_mingw_avx.zip i2pd.exe >> /dev/null
make clean >> /dev/null make clean >> /dev/null
make USE_UPNP=yes USE_AESNI=1 -j ${threads} > ${contrib}/build_aesni.log 2>&1 echo "Сборка AESNI";
make USE_UPNP=yes USE_AESNI=1 -j ${threads} > ${contrib}/build_${arch}_aesni.log 2>&1
if [ "$?" != 0 ]; then if [ "$?" != 0 ]; then
echo "Сборка не удалась. Смотрите в build_aesni.log"; echo "Сборка не удалась. Смотрите в build_aesni.log";
exit 1; exit 1;
@ -72,7 +75,8 @@ fi;
zip -9 ${contrib}/i2pd_${version}_${commit}_${arch}_mingw_aesni.zip i2pd.exe >> /dev/null zip -9 ${contrib}/i2pd_${version}_${commit}_${arch}_mingw_aesni.zip i2pd.exe >> /dev/null
make clean >> /dev/null make clean >> /dev/null
make USE_UPNP=yes -j ${threads} > ${contrib}/build.log 2>&1 echo "Сборка без дополнительных инструкций";
make USE_UPNP=yes -j ${threads} > ${contrib}/build_${arch}.log 2>&1
if [ "$?" != 0 ]; then if [ "$?" != 0 ]; then
echo "Сборка не удалась. Смотрите в build.log"; echo "Сборка не удалась. Смотрите в build.log";
exit 1; exit 1;

Loading…
Cancel
Save