Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bazel rules and dependencies. #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
21 changes: 9 additions & 12 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ load(
# This version contains a patch that fixes things on FreeBSD.
git_repository(
name = "rules_foreign_cc",
commit = "38358597f9380e9098eb5642169ad23c169df98e",
remote = "https://github.com/gbrail/rules_foreign_cc.git",
shallow_since = "1586453104 -0700"
commit = "c2e097455d2bbf92b2ae71611d1261ba79eb8aa8",
remote = "https://github.com/bazelbuild/rules_foreign_cc",
)
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")

rules_foreign_cc_dependencies([])
rules_foreign_cc_dependencies()

# Group the sources of the library so that make rule have access to it
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
Expand All @@ -40,14 +39,12 @@ http_archive(
# Take a commit from the "build-with-bazel" branch
git_repository(
name = "boringssl",
commit = "24193678fd35f7f4f8b9be216cc4e7a76f056081",
commit = "02802f26d75830f8e3041aa210c3a9cd27cc94d4",
remote = "https://boringssl.googlesource.com/boringssl",
shallow_since = "1586447192 +0000"
)

http_archive(
git_repository(
name = "absl",
sha256 = "0db0d26f43ba6806a8a3338da3e646bb581f0ca5359b3a201d8fb8e4752fd5f8",
strip_prefix = "abseil-cpp-20200225.1",
urls = ["https://github.com/abseil/abseil-cpp/archive/20200225.1.tar.gz"],
)
commit = "fb3621f4f897824c0dbe0615fa94543df6192f30",
remote = "https://github.com/abseil/abseil-cpp",
)
6 changes: 3 additions & 3 deletions third_party/libev/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])

load("@rules_foreign_cc//tools/build_defs:configure.bzl", "configure_make")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")

configure_make(
name = "libev",
Expand All @@ -12,9 +12,9 @@ configure_make(
],
# Without this for some reason Bazel tries to send
# ar commands to libtool!
configure_env_vars = {
env = {
"AR": "",
},
# Bazel likes to use the shared libraries for tests
static_libraries = ["libev.a"],
out_static_libs = ["libev.a"],
)