Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
665 B
33 lines
665 B
@rem enter repo root |
|
cd /d %~dp0\..\..\.. |
|
|
|
call kokoro\windows\prepare_build_win64.bat || goto :error |
|
|
|
@rem TODO(b/241475022) Use docker to guarantee better stability. |
|
@rem TODO(b/241484899) Run conformance tests in windows. |
|
|
|
md build -ea 0 |
|
md %KOKORO_ARTIFACTS_DIR%\logs -ea 0 |
|
|
|
cd build |
|
|
|
cmake .. ^ |
|
-G "Visual Studio 15 2017" -A x64 ^ |
|
-Dprotobuf_BUILD_SHARED_LIBS=ON ^ |
|
-Dprotobuf_BUILD_CONFORMANCE=OFF ^ |
|
-Dprotobuf_WITH_ZLIB=OFF ^ |
|
-Dprotobuf_TEST_XML_OUTDIR=%KOKORO_ARTIFACTS_DIR%\logs\ || goto :error |
|
|
|
cmake --build . || goto :error |
|
|
|
ctest --verbose -C Debug || goto :error |
|
|
|
goto :success |
|
|
|
:error |
|
cd /d %~dp0\..\..\.. |
|
echo Failed! |
|
exit /b 1 |
|
|
|
:success |
|
cd ..
|
|
|