Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 1 | @echo off |
| 2 | :: Batch file for building/testing Vim on AppVeyor |
| 3 | |
| 4 | setlocal ENABLEDELAYEDEXPANSION |
| 5 | cd %APPVEYOR_BUILD_FOLDER% |
| 6 | |
| 7 | cd src |
| 8 | echo "Building MinGW 32bit console version" |
| 9 | set PATH=c:\msys64\mingw32\bin;%PATH% |
Bram Moolenaar | 30276f2 | 2019-01-24 17:59:39 +0100 | [diff] [blame] | 10 | mingw32-make.exe -f Make_ming.mak GUI=no OPTIMIZE=speed IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1 |
Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 11 | :: Save vim.exe before Make clean, moved back below. |
| 12 | copy vim.exe testdir |
| 13 | mingw32-make.exe -f Make_ming.mak clean |
| 14 | |
| 15 | :: Build Mingw huge version with python and channel support, or |
| 16 | :: with specified features without python. |
| 17 | echo "Building MinGW 32bit GUI version" |
| 18 | if "%FEATURE%" == "HUGE" ( |
Bram Moolenaar | 30276f2 | 2019-01-24 17:59:39 +0100 | [diff] [blame] | 19 | mingw32-make.exe -f Make_ming.mak OPTIMIZE=speed CHANNEL=yes GUI=yes IME=yes ICONV=yes DEBUG=no PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27 PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35 FEATURES=%FEATURE% || exit 1 |
Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 20 | ) ELSE ( |
Bram Moolenaar | 30276f2 | 2019-01-24 17:59:39 +0100 | [diff] [blame] | 21 | mingw32-make.exe -f Make_ming.mak OPTIMIZE=speed GUI=yes IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1 |
Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 22 | ) |
| 23 | .\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_ming.txt |
| 24 | |
Bram Moolenaar | 7ce2aa0 | 2019-07-16 20:00:11 +0200 | [diff] [blame^] | 25 | :: Filter out the progress bar from the build log |
| 26 | sed -e "s/@<<$/@<< | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak |
| 27 | |
Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 28 | echo "Building MSVC 64bit console Version" |
Bram Moolenaar | 7ce2aa0 | 2019-07-16 20:00:11 +0200 | [diff] [blame^] | 29 | nmake -f Make_mvc2.mak CPU=AMD64 OLE=no GUI=no IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1 |
| 30 | nmake -f Make_mvc2.mak clean |
Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 31 | |
| 32 | :: build MSVC huge version with python and channel support |
| 33 | :: GUI needs to be last, so that testing works |
| 34 | echo "Building MSVC 64bit GUI Version" |
| 35 | if "%FEATURE%" == "HUGE" ( |
Bram Moolenaar | 7ce2aa0 | 2019-07-16 20:00:11 +0200 | [diff] [blame^] | 36 | nmake -f Make_mvc2.mak DIRECTX=yes CPU=AMD64 CHANNEL=yes OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35-x64 FEATURES=%FEATURE% || exit 1 |
Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 37 | ) ELSE ( |
Bram Moolenaar | 7ce2aa0 | 2019-07-16 20:00:11 +0200 | [diff] [blame^] | 38 | nmake -f Make_mvc2.mak CPU=AMD64 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1 |
Bram Moolenaar | 81275ca | 2016-02-24 21:02:20 +0100 | [diff] [blame] | 39 | ) |
| 40 | .\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt |
| 41 | |
| 42 | :: Restore vim.exe, tests will run with this. |
| 43 | move /Y testdir\vim.exe . |
| 44 | echo "version output MinGW" |
| 45 | type ver_ming.txt |
| 46 | echo "version output MVC" |
| 47 | type ver_msvc.txt |
| 48 | cd .. |