Skip to content

Commit

Permalink
Update Abseil-cpp and protobuf
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 622831145
Change-Id: I2b278fec7c1851cfdf05beaaf9c85f939be3344b
  • Loading branch information
happyCoder92 authored and Copybara-Service committed Apr 8, 2024
1 parent 602b80d commit 59c2104
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Build in C++17 mode without a custom CROSSTOOL
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
common --noenable_bzlmod
28 changes: 22 additions & 6 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,38 @@

workspace(name = "com_google_sandboxed_api")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

# Bazel rules_python
maybe(
http_archive,
name = "rules_python",
sha256 = "5f5855c2a8af8fa9e09ed26720ed921f1a119f27cb041c5c137c8a5d3c8d9c55", # 2024-04-05
strip_prefix = "rules_python-4a615bec59b51d9d5f0675ec312c5b84e2eb792c",
urls = ["https://github.com/bazelbuild/rules_python/archive/4a615bec59b51d9d5f0675ec312c5b84e2eb792c.zip"],
)

load("@rules_python//python:repositories.bzl", "py_repositories")

py_repositories()

load("//sandboxed_api/bazel:sapi_deps.bzl", "sapi_deps")

# Load Sandboxed API dependencies
sapi_deps()

load("@bazel_skylib//lib:versions.bzl", "versions")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
versions.check(minimum_bazel_version = "5.1.0")

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

load(
"//sandboxed_api/bazel:llvm_config.bzl",
"llvm_disable_optional_support_deps",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

versions.check(minimum_bazel_version = "5.1.0")

protobuf_deps()

llvm_disable_optional_support_deps()

Expand Down
4 changes: 2 additions & 2 deletions cmake/abseil-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

FetchContent_Declare(absl
URL https://github.com/abseil/abseil-cpp/archive/8ebad34c3fa54a9ad2f46ca8cab98e75c4f750bf.zip # 2023-08-24
URL_HASH SHA256=1ca4c7431b0818a10507af8eac34a1873e4e786a18ecd3f04d8faf3a0874e8bb
URL https://github.com/abseil/abseil-cpp/archive/61e47a454c81eb07147b0315485f476513cc1230.zip # 2024-04-05
URL_HASH SHA256=9ba0e97acf7026f7479e24967866ba9560cf3256304b6c8932d2b1ab7d0dfcd2
)
set(ABSL_CXX_STANDARD ${SAPI_CXX_STANDARD} CACHE STRING "" FORCE)
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)
Expand Down
4 changes: 2 additions & 2 deletions cmake/protobuf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

FetchContent_Declare(protobuf
URL https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protobuf-23.4.tar.gz
URL_HASH SHA256=a700a49470d301f1190a487a923b5095bf60f08f4ae4cac9f5f7c36883d17971
URL https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protobuf-26.1.tar.gz # 2024-03-27
URL_HASH SHA256=4fc5ff1b2c339fb86cd3a25f0b5311478ab081e65ad258c6789359cd84d421f8
)

set(protobuf_ABSL_PROVIDER "package" CACHE STRING "" FORCE)
Expand Down
12 changes: 6 additions & 6 deletions sandboxed_api/bazel/sapi_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def sapi_deps():
maybe(
http_archive,
name = "com_google_absl",
sha256 = "1ca4c7431b0818a10507af8eac34a1873e4e786a18ecd3f04d8faf3a0874e8bb", # 2023-08-24
strip_prefix = "abseil-cpp-8ebad34c3fa54a9ad2f46ca8cab98e75c4f750bf",
urls = ["https://github.com/abseil/abseil-cpp/archive/8ebad34c3fa54a9ad2f46ca8cab98e75c4f750bf.zip"],
sha256 = "9ba0e97acf7026f7479e24967866ba9560cf3256304b6c8932d2b1ab7d0dfcd2", # 2024-04-05
strip_prefix = "abseil-cpp-61e47a454c81eb07147b0315485f476513cc1230",
urls = ["https://github.com/abseil/abseil-cpp/archive/61e47a454c81eb07147b0315485f476513cc1230.zip"],
)
maybe(
http_archive,
Expand All @@ -63,9 +63,9 @@ def sapi_deps():
maybe(
http_archive,
name = "com_google_protobuf",
sha256 = "a700a49470d301f1190a487a923b5095bf60f08f4ae4cac9f5f7c36883d17971", # 2023-07-06
strip_prefix = "protobuf-23.4",
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protobuf-23.4.tar.gz"],
sha256 = "4fc5ff1b2c339fb86cd3a25f0b5311478ab081e65ad258c6789359cd84d421f8", # 2024-03-27
strip_prefix = "protobuf-26.1",
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protobuf-26.1.tar.gz"],
)

# libcap
Expand Down

0 comments on commit 59c2104

Please sign in to comment.