| 17 |
call :setup_tools_env |
call :setup_tools_env |
| 18 |
|
|
| 19 |
echo ======= |
echo ======= |
| 20 |
echo 1. download libs, rebuild libs and Tera Term, installer, archive |
echo 1. force download and rebuild libs / rebuild Tera Term, installer, archive |
| 21 |
echo 2. build libs |
echo 2. download and build libs / rebuild Tera Term, installer, archive |
| 22 |
echo 3. build libs and rebuild Tera Term, installer, archive (for Release build) |
echo 3. download and build libs |
| 23 |
echo 4. build libs and Tera Term (for Normal build, snapshot) |
echo 4. build libs and rebuild Tera Term, installer, archive (for Release build) |
| 24 |
|
echo 5. build libs and Tera Term (for Normal build, snapshot) |
| 25 |
echo 7. exec cmd.exe |
echo 7. exec cmd.exe |
| 26 |
echo 8. check tools |
echo 8. check tools |
| 27 |
echo 9. exit |
echo 9. exit |
| 34 |
echo %no% |
echo %no% |
| 35 |
|
|
| 36 |
if "%no%" == "1" ( |
if "%no%" == "1" ( |
| 37 |
call :update_libs |
call :download_libs force |
| 38 |
call :build_teraterm freeze_state |
call :build_teraterm freeze_state |
| 39 |
) |
) |
| 40 |
|
|
| 41 |
if "%no%" == "2" ( |
if "%no%" == "2" ( |
| 42 |
|
call :download_libs |
| 43 |
call :build_libs |
call :build_libs |
| 44 |
|
call :build_teraterm freeze_state |
| 45 |
) |
) |
| 46 |
|
|
| 47 |
if "%no%" == "3" ( |
if "%no%" == "3" ( |
| 48 |
call :build_teraterm freeze_state |
call :download_libs |
| 49 |
|
call :build_libs |
| 50 |
) |
) |
| 51 |
|
|
| 52 |
if "%no%" == "4" ( |
if "%no%" == "4" ( |
| 53 |
|
call :build_teraterm freeze_state |
| 54 |
|
) |
| 55 |
|
|
| 56 |
|
if "%no%" == "5" ( |
| 57 |
call :build_teraterm |
call :build_teraterm |
| 58 |
) |
) |
| 59 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
rem #################### |
rem #################### |
| 73 |
:update_libs |
:download_libs |
| 74 |
|
|
| 75 |
setlocal |
setlocal |
| 76 |
cd /d %CUR%..\libs |
cd /d %CUR%..\libs |
| 77 |
|
|
| 78 |
|
if "%1" == "force" goto download_libs_download |
| 79 |
|
|
| 80 |
|
cmake -P checklibs.cmake |
| 81 |
|
call checklibs_result.bat |
| 82 |
|
del checklibs_result.bat |
| 83 |
|
if "%RESULT%" == "1" ( |
| 84 |
|
echo already all library downloaded |
| 85 |
|
goto download_libs_finish |
| 86 |
|
) |
| 87 |
|
|
| 88 |
|
:download_libs_download |
| 89 |
|
|
| 90 |
:oniguruma |
:oniguruma |
| 91 |
%CURL% -L https://github.com/kkos/oniguruma/releases/download/v%ONIG_VERSION%/onig-%ONIG_VERSION%.tar.gz -o oniguruma.tar.gz |
%CURL% -L https://github.com/kkos/oniguruma/releases/download/v%ONIG_VERSION%/onig-%ONIG_VERSION%.tar.gz -o oniguruma.tar.gz |
| 92 |
%CMAKE% -E tar xf oniguruma.tar.gz |
%CMAKE% -E tar xf oniguruma.tar.gz |
| 130 |
%CMAKE% -E rm -rf libressl |
%CMAKE% -E rm -rf libressl |
| 131 |
%CMAKE% -E rename libressl-%LIBRESSL_VERSION% libressl |
%CMAKE% -E rename libressl-%LIBRESSL_VERSION% libressl |
| 132 |
|
|
| 133 |
|
:download_libs_finish |
| 134 |
endlocal |
endlocal |
| 135 |
exit /b 0 |
exit /b 0 |
| 136 |
|
|