blob: 5d5a9f182f1111fe819f3978e4cf8b38f9cad0f6 [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 ^
K.Takataf89be8d2021-05-29 12:42:47 +020014 FEATURES=%FEATURE%
15if not exist vim.exe (
16 echo Build failure.
17 exit 1
18)
Bram Moolenaar81275ca2016-02-24 21:02:20 +010019
20:: build MSVC huge version with python and channel support
21:: GUI needs to be last, so that testing works
22echo "Building MSVC 64bit GUI Version"
23if "%FEATURE%" == "HUGE" (
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020024 nmake -f Make_mvc2.mak CPU=AMD64 ^
25 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^
26 PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^
27 PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35-x64 ^
K.Takataf89be8d2021-05-29 12:42:47 +020028 FEATURES=%FEATURE%
Bram Moolenaar81275ca2016-02-24 21:02:20 +010029) ELSE (
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020030 nmake -f Make_mvc2.mak CPU=AMD64 ^
31 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no ^
K.Takataf89be8d2021-05-29 12:42:47 +020032 FEATURES=%FEATURE%
Bram Moolenaar81275ca2016-02-24 21:02:20 +010033)
K.Takataf89be8d2021-05-29 12:42:47 +020034if not exist gvim.exe (
35 echo Build failure.
36 exit 1
37)
38.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010039
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020040echo "version output MSVC console"
K.Takataf89be8d2021-05-29 12:42:47 +020041.\vim --version || exit 1
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020042echo "version output MSVC GUI"
K.Takataf89be8d2021-05-29 12:42:47 +020043type ver_msvc.txt || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010044cd ..