blob: 164d7bcc2582c6fb05b0674a043a0ddcfe21351e [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
Bram Moolenaar7ce2aa02019-07-16 20:00:11 +02008:: Filter out the progress bar from the build log
9sed -e "s/@<<$/@<< | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
10
Bram Moolenaar81275ca2016-02-24 21:02:20 +010011echo "Building MSVC 64bit console Version"
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020012nmake -f Make_mvc2.mak CPU=AMD64 ^
13 OLE=no GUI=no IME=yes ICONV=yes DEBUG=no ^
14 FEATURES=%FEATURE% || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010015
16:: build MSVC huge version with python and channel support
17:: GUI needs to be last, so that testing works
18echo "Building MSVC 64bit GUI Version"
19if "%FEATURE%" == "HUGE" (
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020020 nmake -f Make_mvc2.mak CPU=AMD64 ^
21 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^
22 PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^
23 PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35-x64 ^
24 FEATURES=%FEATURE% || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010025) ELSE (
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020026 nmake -f Make_mvc2.mak CPU=AMD64 ^
27 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no ^
28 FEATURES=%FEATURE% || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010029)
30.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt
31
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020032echo "version output MSVC console"
33.\vim --version
34echo "version output MSVC GUI"
Bram Moolenaar81275ca2016-02-24 21:02:20 +010035type ver_msvc.txt
36cd ..