diff options
author | Adam Cozzette <acozzette@gmail.com> | 2018-06-14 16:48:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 16:48:53 -0700 |
commit | b0a8220e92ce7eaccb3042efa123e17b4d0719e9 (patch) | |
tree | fc7e5e63bd4ed845fba1824e236777f81ebe208b | |
parent | ce044817c7ba0aea27c3fd8e496635d94d20a755 (diff) | |
download | protobuf-b0a8220e92ce7eaccb3042efa123e17b4d0719e9.tar.gz protobuf-b0a8220e92ce7eaccb3042efa123e17b4d0719e9.tar.bz2 protobuf-b0a8220e92ce7eaccb3042efa123e17b4d0719e9.zip |
Added Kokoro Windows release build config for protoc (#4766)
This should make it easy to automatically build 32-bit and 64-bit
Windows protoc binaries.
-rw-r--r-- | kokoro/release/protoc/windows/build.bat | 27 | ||||
-rw-r--r-- | kokoro/release/protoc/windows/release.cfg | 8 |
2 files changed, 35 insertions, 0 deletions
diff --git a/kokoro/release/protoc/windows/build.bat b/kokoro/release/protoc/windows/build.bat new file mode 100644 index 00000000..ae0fa94a --- /dev/null +++ b/kokoro/release/protoc/windows/build.bat @@ -0,0 +1,27 @@ +set PATH=C:\Program Files (x86)\MSBuild\14.0\bin\;%PATH% +set generator32=Visual Studio 14 +set generator64=Visual Studio 14 Win64 +set vcplatform32=win32 +set vcplatform64=x64 +set configuration=Release + +echo Building protoc +cd github\protobuf + +mkdir build32 +cd build32 +cmake -G "%generator32%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ../cmake +msbuild protobuf.sln /p:Platform=%vcplatform32% || goto error +cd .. + +mkdir build64 +cd build64 +cmake -G "%generator64%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ../cmake +msbuild protobuf.sln /p:Platform=%vcplatform64% || goto error +cd .. + +goto :EOF + +:error +echo Failed! +exit /b %ERRORLEVEL% diff --git a/kokoro/release/protoc/windows/release.cfg b/kokoro/release/protoc/windows/release.cfg new file mode 100644 index 00000000..0d0da8f1 --- /dev/null +++ b/kokoro/release/protoc/windows/release.cfg @@ -0,0 +1,8 @@ +# Configuration for Windows protoc release builds +build_file: "protobuf/kokoro/release/protoc/windows/build.bat" + +action { + define_artifacts { + regex: "**/protoc.exe" + } +} |