blob: 5e86c4f2c5b1302454b70c6a5ac0a029f17d4bdf [file] [log] [blame]
Bram Moolenaar81275ca2016-02-24 21:02:20 +01001@echo off
2:: Batch file for building/testing Vim on AppVeyor
3
4setlocal ENABLEDELAYEDEXPANSION
5cd %APPVEYOR_BUILD_FOLDER%
6
7cd src
8echo "Building MinGW 32bit console version"
9set PATH=c:\msys64\mingw32\bin;%PATH%
Bram Moolenaar30276f22019-01-24 17:59:39 +010010mingw32-make.exe -f Make_ming.mak GUI=no OPTIMIZE=speed IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010011:: Save vim.exe before Make clean, moved back below.
12copy vim.exe testdir
13mingw32-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.
17echo "Building MinGW 32bit GUI version"
18if "%FEATURE%" == "HUGE" (
Bram Moolenaar30276f22019-01-24 17:59:39 +010019 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 Moolenaar81275ca2016-02-24 21:02:20 +010020) ELSE (
Bram Moolenaar30276f22019-01-24 17:59:39 +010021 mingw32-make.exe -f Make_ming.mak OPTIMIZE=speed GUI=yes IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010022)
23.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_ming.txt
24
25echo "Building MSVC 64bit console Version"
Bram Moolenaar5d684452019-07-15 22:03:40 +020026:: This doesn't work with @<<
27:: sed -e "s/\$(LINKARGS2)/\$(LINKARGS2) | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
28nmake -f Make_mvc.mak CPU=AMD64 OLE=no GUI=no IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
29nmake -f Make_mvc.mak clean
Bram Moolenaar81275ca2016-02-24 21:02:20 +010030
31:: build MSVC huge version with python and channel support
32:: GUI needs to be last, so that testing works
33echo "Building MSVC 64bit GUI Version"
34if "%FEATURE%" == "HUGE" (
Bram Moolenaar5d684452019-07-15 22:03:40 +020035 nmake -f Make_mvc.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 Moolenaar81275ca2016-02-24 21:02:20 +010036) ELSE (
Bram Moolenaar5d684452019-07-15 22:03:40 +020037 nmake -f Make_mvc.mak CPU=AMD64 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no FEATURES=%FEATURE% || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010038)
39.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt
40
41:: Restore vim.exe, tests will run with this.
42move /Y testdir\vim.exe .
43echo "version output MinGW"
44type ver_ming.txt
45echo "version output MVC"
46type ver_msvc.txt
47cd ..