ADD: added new version of protobuf
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
set generator32=Visual Studio 15
|
||||
set generator64=Visual Studio 15 Win64
|
||||
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
|
||||
|
||||
:: VS2017 is installed, but will not be selected by default. This command sets
|
||||
:: up the environment so that CMake will find and use it:
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
|
||||
echo Building protoc
|
||||
cd github\protobuf
|
||||
|
||||
@@ -18,13 +15,13 @@ set ABSL_ROOT_DIR=%cd%\third_party\abseil-cpp
|
||||
|
||||
mkdir build32
|
||||
cd build32
|
||||
cmake -G "%generator32%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ..
|
||||
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 -G "%generator64%" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -Dprotobuf_UNICODE=ON ../cmake
|
||||
msbuild protobuf.sln /p:Platform=%vcplatform64% || goto error
|
||||
cd ..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user