Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Install System Dependencies
run: |
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
curl -fsSL https://releases.bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
Expand Down
3 changes: 1 addition & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_cc//cc:cc_test.bzl", "cc_test")
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")

cc_library(
name = "spectator",
Expand Down
25 changes: 25 additions & 0 deletions dependencies.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def spectator_dependencies():
http_archive(
name = "fmt",
build_file = "@spectator//third_party:fmtlib.BUILD",
strip_prefix = "fmt-8.0.1",
sha256 = "a627a56eab9554fc1e5dd9a623d0768583b3a383ff70a4312ba68f94c9d415bf",
urls = ["https://github.com/fmtlib/fmt/releases/download/8.0.1/fmt-8.0.1.zip"],
)

http_archive(
name = "spdlog",
build_file = "@spectator//third_party:spdlog.BUILD",
strip_prefix = "spdlog-1.9.1",
sha256 = "9a452cfa24408baccc9b2bc2d421d68172a7630c99e9504a14754be840d31a62",
urls = ["https://github.com/gabime/spdlog/archive/v1.9.1.tar.gz"],
)

http_archive(
name = "abseil-cpp",
urls = ["https://github.com/abseil/abseil-cpp/archive/17c954d90d5661e27db8fc5f086085690a8372d9.zip"],
strip_prefix = "abseil-cpp-17c954d90d5661e27db8fc5f086085690a8372d9",
sha256 = "aee7688bb669402c1322d9512d7992a6f361a70444e54d98a8709a8ad4dd60c3",
patches = ["@//bazel:abseil.patch"],
patch_args = ["-p1"],
)

http_archive(
name = "com_google_googletest",
urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"],
Expand Down
2 changes: 1 addition & 1 deletion third_party/fmtlib.BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://github.com/envoyproxy/envoy/blob/master/bazel/external/fmtlib.BUILD.

cc_library(
name = "fmtlib",
name = "fmt",
srcs = glob([
"fmt/*.cc",
]),
Expand Down
2 changes: 1 addition & 1 deletion third_party/spdlog.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ cc_library(
defines = ["SPDLOG_FMT_EXTERNAL"],
includes = ["include"],
visibility = ["//visibility:public"],
deps = ["@com_github_fmtlib_fmt//:fmtlib"],
deps = ["@fmt//:fmt"],
)
Loading