Adam Cozzette | b0a8220 | 2018-06-14 16:48:53 -0700 | [diff] [blame] | 1 | set PATH=C:\Program Files (x86)\MSBuild\14.0\bin\;%PATH% |
| 2 | set generator32=Visual Studio 14 |
| 3 | set generator64=Visual Studio 14 Win64 |
| 4 | set vcplatform32=win32 |
| 5 | set vcplatform64=x64 |
| 6 | set configuration=Release |
| 7 | |
| 8 | echo Building protoc |
| 9 | cd github\protobuf |
| 10 | |
| 11 | mkdir build32 |
| 12 | cd build32 |
| 13 | cmake -G "%generator32%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ../cmake |
| 14 | msbuild protobuf.sln /p:Platform=%vcplatform32% || goto error |
| 15 | cd .. |
| 16 | |
| 17 | mkdir build64 |
| 18 | cd build64 |
| 19 | cmake -G "%generator64%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ../cmake |
| 20 | msbuild protobuf.sln /p:Platform=%vcplatform64% || goto error |
| 21 | cd .. |
| 22 | |
| 23 | goto :EOF |
| 24 | |
| 25 | :error |
| 26 | echo Failed! |
| 27 | exit /b %ERRORLEVEL% |