Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
build --@com_google_protobuf//bazel/flags:allow_nonstandard_protoc=true

common:skip_android --deleted_packages=android,binder
8 changes: 7 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ bazel_dep(name = "bazel_jar_jar", version = "0.1.11.bcr.1")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "googleapis", version = "0.0.0-20260514-1dbb1a14", repo_name = "com_google_googleapis")
bazel_dep(name = "grpc-proto", version = "0.0.0-20240627-ec30f58.bcr.1", repo_name = "io_grpc_grpc_proto")
bazel_dep(name = "protobuf", version = "35.1", repo_name = "com_google_protobuf")
bazel_dep(name = "protobuf", version = "36.0-rc2", repo_name = "com_google_protobuf")
archive_override(
module_name = "protobuf",
integrity = "sha256-tWR/2Ank29ZSNjgof/Zn5N8BbUZCZ+LtTy4ZUb+wks8=",
strip_prefix = "protobuf-36.0-rc2",
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protobuf-36.0-rc2.tar.gz"],
)
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "rules_android", version = "0.7.3")
bazel_dep(name = "rules_cc", version = "0.0.9")
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/kokoro/windows32.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cd "%WORKSPACE%"

SET TARGET_ARCH=x86_32
SET FAIL_ON_WARNINGS=true
SET PROTOBUF_VER=35.1
SET PROTOBUF_VER=36.0-rc2
SET PKG_CONFIG_PATH=%ESCWORKSPACE%\\grpc-java-helper32\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib\\pkgconfig
SET VC_PROTOBUF_LIBS=/LIBPATH:%ESCWORKSPACE%\\grpc-java-helper32\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib
SET VC_PROTOBUF_INCLUDE=%ESCWORKSPACE%\\grpc-java-helper32\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\include
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/kokoro/windows64.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cd "%WORKSPACE%"

SET TARGET_ARCH=x86_64
SET FAIL_ON_WARNINGS=true
SET PROTOBUF_VER=35.1
SET PROTOBUF_VER=36.0-rc2
SET PKG_CONFIG_PATH=%ESCWORKSPACE%\\grpc-java-helper64\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib\\pkgconfig
SET VC_PROTOBUF_LIBS=/LIBPATH:%ESCWORKSPACE%\\grpc-java-helper64\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib
SET VC_PROTOBUF_INCLUDE=%ESCWORKSPACE%\\grpc-java-helper64\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\include
Expand Down
4 changes: 2 additions & 2 deletions buildscripts/make_dependencies.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
choco install -y pkgconfiglite --allow-empty-checksums
choco install -y openjdk --version=17.0
set PATH=%PATH%;"c:\Program Files\OpenJDK\jdk-17\bin"
set PROTOBUF_VER=35.1
set ABSL_VERSION=20250127.1
set PROTOBUF_VER=36.0-rc2
set ABSL_VERSION=20250512.1
set CMAKE_NAME=cmake-3.26.3-windows-x86_64

if not exist "protobuf-%PROTOBUF_VER%\build\Release\" (
Expand Down
6 changes: 3 additions & 3 deletions buildscripts/make_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Build protoc
set -evux -o pipefail

PROTOBUF_VERSION=35.1
ABSL_VERSION=20250127.1
PROTOBUF_VERSION=36.0-rc2
ABSL_VERSION=20250512.1

# ARCH is x86_64 bit unless otherwise specified.
ARCH="${ARCH:-x86_64}"
Expand Down Expand Up @@ -77,7 +77,7 @@ if [ -f ${INSTALL_DIR}/bin/protoc ]; then
echo "Not building protobuf. Already built"
# TODO(ejona): swap to `brew install --devel protobuf` once it is up-to-date
else
if [[ ! -d "protobuf-${PROTOBUF_VERSION}" ]]; then
if [[ ! -d "protobuf-${PROTOBUF_VERSION}" || ! -d "abseil-cpp-${ABSL_VERSION}" ]]; then
curl -Ls "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-${PROTOBUF_VERSION}.tar.gz" | tar xz
curl -Ls "https://github.com/abseil/abseil-cpp/archive/refs/tags/${ABSL_VERSION}.tar.gz" | tar xz
fi
Expand Down
1 change: 1 addition & 0 deletions examples/.bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
build --@com_google_protobuf//bazel/flags:allow_nonstandard_protoc=true
8 changes: 7 additions & 1 deletion examples/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
bazel_dep(name = "grpc-java", version = "1.84.0-SNAPSHOT", repo_name = "io_grpc_grpc_java") # CURRENT_GRPC_VERSION
bazel_dep(name = "rules_java", version = "9.3.0")
bazel_dep(name = "grpc-proto", version = "0.0.0-20240627-ec30f58", repo_name = "io_grpc_grpc_proto")
bazel_dep(name = "protobuf", version = "33.1", repo_name = "com_google_protobuf")
bazel_dep(name = "protobuf", version = "36.0-rc2", repo_name = "com_google_protobuf")
archive_override(
module_name = "protobuf",
integrity = "sha256-tWR/2Ank29ZSNjgof/Zn5N8BbUZCZ+LtTy4ZUb+wks8=",
strip_prefix = "protobuf-36.0-rc2",
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protobuf-36.0-rc2.tar.gz"],
)
bazel_dep(name = "rules_jvm_external", version = "6.0")

# Do not use this override in your own MODULE.bazel. It is unnecessary when
Expand Down
6 changes: 3 additions & 3 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def com_google_protobuf():
# This statement defines the @com_google_protobuf repo.
http_archive(
name = "com_google_protobuf",
sha256 = "f0b6838e7522a8da96126d487068c959bc624926368f3024ac8fd03abd0a1ac4",
strip_prefix = "protobuf-35.1",
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v35.1/protobuf-35.1.tar.gz"],
sha256 = "b5647fd809e4dbd6523638287ff667e4df016d464267e2ed4f2e1951bfb092cf",
strip_prefix = "protobuf-36.0-rc2",
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v36.0-rc2/protobuf-36.0-rc2.tar.gz"],
)

def io_grpc_grpc_proto():
Expand Down
Loading