aboutsummaryrefslogtreecommitdiff
path: root/appveyor.bat
diff options
context:
space:
mode:
authorIvan Shynkarenka <chronoxor@gmail.com>2018-05-03 01:47:17 +0300
committerIvan Shynkarenka <chronoxor@gmail.com>2018-05-03 03:17:19 +0300
commitfeb183d895a2ea04910641be7f9cb9fe1df7b69e (patch)
tree2a4d7825d65feecf4e7b6658b30e7bfedc07c989 /appveyor.bat
parent92898e9e9cb2f1c006fcc5099c9c96eafce63dc8 (diff)
downloadprotobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.tar.gz
protobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.tar.bz2
protobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.zip
Appveyor MinGW build
Diffstat (limited to 'appveyor.bat')
-rw-r--r--appveyor.bat14
1 files changed, 13 insertions, 1 deletions
diff --git a/appveyor.bat b/appveyor.bat
index e59ebccc..29ec4922 100644
--- a/appveyor.bat
+++ b/appveyor.bat
@@ -1,11 +1,23 @@
setlocal
+IF %platform%==MinGW GOTO build_mingw
IF %language%==cpp GOTO build_cpp
IF %language%==csharp GOTO build_csharp
-echo Unsupported language %language%. Exiting.
+echo Unsupported language %language% and platform %platform%. Exiting.
goto :error
+:build_mingw
+echo Building MinGW
+set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH:C:\Program Files\Git\usr\bin;=%
+mkdir build_mingw
+cd build_mingw
+cmake -G "%generator%" -Dprotobuf_BUILD_SHARED_LIBS=%BUILD_DLL% -Dprotobuf_UNICODE=%UNICODE% -Dprotobuf_BUILD_TESTS=0 ../cmake
+mingw32-make -j8 all || goto error
+rem cd %configuration%
+rem tests.exe || goto error
+goto :EOF
+
:build_cpp
echo Building C++
mkdir build_msvc