File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11@ rem set PROTOBUF_VER=21.7
22set PROTOBUF_VER = 22.5
3+ set ABSL_VERSION = 20230125.4
34set CMAKE_NAME = cmake-3.26.3-windows-x86_64
45
56if not exist " protobuf-%PROTOBUF_VER% \build\Release\" (
@@ -24,6 +25,11 @@ set PATH=%PATH%;%cd%\%CMAKE_NAME%\bin
2425powershell -command " $ErrorActionPreference = 'stop'; & { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; iwr https://github.com/google/protobuf/releases/download/v%PROTOBUF_VER% /protobuf-%PROTOBUF_VER% .zip -OutFile protobuf.zip }" || exit /b 1
2526powershell -command " $ErrorActionPreference = 'stop'; & { Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('protobuf.zip', '.') }" || exit /b 1
2627del protobuf.zip
28+ powershell -command " $ErrorActionPreference = 'stop'; & { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; iwr https://github.com/abseil/abseil-cpp/archive/refs/tags/%ABSL_VERSION% .zip -OutFile absl.zip }" || exit /b 1
29+ powershell -command " $ErrorActionPreference = 'stop'; & { Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('absl.zip', '.') }" || exit /b 1
30+ del absl.zip
31+ rmdir protobuf-%PROTOBUF_VER% \third_party\abseil-cpp
32+ rename abseil-cpp-%ABSL_VERSION% protobuf-%PROTOBUF_VER% \third_party\abseil-cpp
2733mkdir protobuf-%PROTOBUF_VER% \build
2834pushd protobuf-%PROTOBUF_VER% \build
2935
Original file line number Diff line number Diff line change 44set -evux -o pipefail
55
66PROTOBUF_VERSION=22.5
7+ ABSL_VERSION=20230125.4
78
89# ARCH is x86_64 bit unless otherwise specified.
910ARCH=" ${ARCH:- x86_64} "
@@ -30,6 +31,9 @@ if [ -f ${INSTALL_DIR}/bin/protoc ]; then
3031else
3132 if [[ ! -d " protobuf-${PROTOBUF_VERSION} " ]]; then
3233 curl -Ls " https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION} /protobuf-${PROTOBUF_VERSION} .tar.gz" | tar xz
34+ curl -Ls " https://github.com/abseil/abseil-cpp/archive/refs/tags/${ABSL_VERSION} .tar.gz" | tar xz
35+ rmdir " protobuf-$PROTOBUF_VERSION /third_party/abseil-cpp"
36+ mv " abseil-cpp-$ABSL_VERSION " " protobuf-$PROTOBUF_VERSION /third_party/abseil-cpp"
3337 fi
3438 # the same source dir is used for 32 and 64 bit builds, so we need to clean stale data first
3539 rm -rf " $DOWNLOAD_DIR /protobuf-${PROTOBUF_VERSION} /build"
You can’t perform that action at this time.
0 commit comments