blob: a9b004427a953d28384aa0d1d2df9bcc8ce4ef9d [file] [log] [blame] [edit]
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
workspace(name = "fuzztest_codelab")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
################################################################################
# Transitive dependencies (not directly required by the codelab)
#
# TODO(b/245360431): Add a function for loading transitive dependencies.
################################################################################
# Required by com_google_absl.
http_archive(
name = "bazel_skylib",
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz"],
)
# Required by com_google_fuzztest.
http_archive(
name = "com_google_absl",
sha256 = "338420448b140f0dfd1a1ea3c3ce71b3bc172071f24f4d9a57d59b45037da440",
strip_prefix = "abseil-cpp-20240116.0",
url = "https://github.com/abseil/abseil-cpp/releases/download/20240116.0/abseil-cpp-20240116.0.tar.gz"
)
# Required by com_google_fuzztest.
http_archive(
name = "com_googlesource_code_re2",
sha256 = "cd191a311b84fcf37310e5cd876845b4bf5aee76fdd755008eef3b6478ce07bb",
strip_prefix = "re2-2024-02-01",
url = "https://github.com/google/re2/releases/download/2024-02-01/re2-2024-02-01.tar.gz",
)
################################################################################
# Direct dependencies
################################################################################
http_archive(
name = "com_google_googletest",
sha256 = "8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7",
strip_prefix = "googletest-1.14.0",
url = "https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz",
)
# TODO(fniksic): Replace this with an http_archive after we release FuzzTest.
local_repository(
name = "com_google_fuzztest",
path = "..",
)