File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ mv "${ANDROID_HOME}/cmdline-tools/cmdline-tools" "${ANDROID_HOME}/cmdline-tools/
3333curl -Ls https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-linux-x86_64.tar.gz | \
3434 tar xz -C /tmp
3535export PATH=/tmp/cmake-3.26.3-linux-x86_64/bin:$PATH
36- sudo apt-get install pkg-config
36+ sudo apt-get update && sudo apt-get install pkg-config
3737
3838# Proto deps
3939buildscripts/make_dependencies.sh
Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ mkdir protobuf-%PROTOBUF_VER%\build
3939pushd protobuf-%PROTOBUF_VER% \build
4040
4141@ rem cmake does not detect x86_64 from the vcvars64.bat variables.
42- @ rem If vcvars64.bat has set PLATFORM to X64, then inform cmake to use the Win64 version of VS
42+ @ rem If vcvars64.bat has set PLATFORM to X64, then inform cmake to use the Win64 version of VS, likewise for x32
4343if " %PLATFORM% " == " x64" (
44- @ rem Note the space
4544 SET CMAKE_VSARCH = -A x64
45+ ) else if " %PLATFORM% " == " x32" (
46+ SET CMAKE_VSARCH = -A x32
4647) else (
4748 SET CMAKE_VSARCH =
4849)
@@ -53,7 +54,7 @@ for /f "tokens=1 delims=." %%a in ("%VisualStudioVersion%") do (
5354 SET visual_studio_major_version = %%a
5455)
5556cmake -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=%cd% \protobuf-%PROTOBUF_VER% -DCMAKE_PREFIX_PATH=%cd% \protobuf-%PROTOBUF_VER% -G " Visual Studio %visual_studio_major_version% %VC_YEAR% " %CMAKE_VSARCH% ..
56- cmake --build . --config Release --target install
57+ cmake --build . --config Release --target install
5758popd
5859goto :eof
5960
You can’t perform that action at this time.
0 commit comments