forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
if %compiler%==msvc goto msvc | ||
if %compiler%==mingw goto mingw | ||
exit 1 | ||
|
||
:msvc | ||
:: Using VC12 | ||
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 | ||
set "INCLUDE=%INCLUDE%;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include" | ||
:: Build libiconv (MSVC port) | ||
git clone -q --branch=master https://github.com/koron/libiconv.git C:\projects\libiconv | ||
cd C:\projects\libiconv\msvc10 | ||
nmake NODEBUG=1 NOMSVCRT=1 | ||
:: Setup libiconv | ||
cd C:\projects | ||
mkdir iconv\include | ||
mkdir iconv\lib | ||
copy libiconv\msvc10\iconv.h iconv\include | ||
copy libiconv\msvc10\iconv.lib iconv\lib | ||
copy libiconv\msvc10\iconv.dll ctags | ||
:: Build ctags with msbuild, iconv disabled | ||
cd C:\projects\ctags\win32 | ||
msbuild ctags_vs2013.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=Release | ||
:: Check if it works | ||
Release\ctags --version | ||
:: Build ctags with nmake, iconv enabled | ||
cd C:\projects\ctags | ||
nmake -f mk_mvc.mak WITH_ICONV=yes ICONV_DIR=C:\projects\iconv | ||
:: Check if it works | ||
ctags --version | ||
goto :eof | ||
|
||
:mingw | ||
dir C:\MinGW | ||
dir C:\MinGW\msys | ||
dir C:\MinGW\msys\1.0 | ||
|
||
path C:\MinGW\bin;C:\MinGW\msys\1.0\bin;%path% | ||
sh ./configure | ||
make | ||
ctags --version | ||
goto :eof |