blob: 92ec936f98eceb642ee28190ed461bd9287ddde7 [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
Bram Moolenaar81275ca2016-02-24 21:02:20 +01009echo "Building MSVC 64bit console Version"
K.Takata47d16662022-01-26 16:20:21 +000010nmake -f Make_mvc.mak CPU=AMD64 ^
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020011 OLE=no GUI=no IME=yes ICONV=yes DEBUG=no ^
K.Takataf89be8d2021-05-29 12:42:47 +020012 FEATURES=%FEATURE%
13if not exist vim.exe (
14 echo Build failure.
15 exit 1
16)
Bram Moolenaar81275ca2016-02-24 21:02:20 +010017
18:: build MSVC huge version with python and channel support
19:: GUI needs to be last, so that testing works
20echo "Building MSVC 64bit GUI Version"
21if "%FEATURE%" == "HUGE" (
K.Takata47d16662022-01-26 16:20:21 +000022 nmake -f Make_mvc.mak CPU=AMD64 ^
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020023 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no POSTSCRIPT=yes ^
24 PYTHON_VER=27 DYNAMIC_PYTHON=yes PYTHON=C:\Python27-x64 ^
25 PYTHON3_VER=35 DYNAMIC_PYTHON3=yes PYTHON3=C:\Python35-x64 ^
K.Takataf89be8d2021-05-29 12:42:47 +020026 FEATURES=%FEATURE%
Bram Moolenaar81275ca2016-02-24 21:02:20 +010027) ELSE (
K.Takata47d16662022-01-26 16:20:21 +000028 nmake -f Make_mvc.mak CPU=AMD64 ^
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020029 OLE=no GUI=yes IME=yes ICONV=yes DEBUG=no ^
K.Takataf89be8d2021-05-29 12:42:47 +020030 FEATURES=%FEATURE%
Bram Moolenaar81275ca2016-02-24 21:02:20 +010031)
K.Takataf89be8d2021-05-29 12:42:47 +020032if not exist gvim.exe (
33 echo Build failure.
34 exit 1
35)
36.\gvim -u NONE -c "redir @a | ver |0put a | wq" ver_msvc.txt || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010037
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020038echo "version output MSVC console"
K.Takataf89be8d2021-05-29 12:42:47 +020039.\vim --version || exit 1
Bram Moolenaarf9a343f2020-07-29 16:32:21 +020040echo "version output MSVC GUI"
K.Takataf89be8d2021-05-29 12:42:47 +020041type ver_msvc.txt || exit 1
Bram Moolenaar81275ca2016-02-24 21:02:20 +010042cd ..