Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 033ae9a

Browse files
authored
Build fix. (#378)
Need rules_cc for abseil and build_bazel_rules_apple for grpc.
1 parent 0aa6ddd commit 033ae9a

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

WORKSPACE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ workspace(name = "io_opencensus_cpp")
1616

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

19+
# Build rules for C++ projects.
20+
http_archive(
21+
name = "rules_cc",
22+
strip_prefix = "rules_cc-master",
23+
urls = ["https://github.com/bazelbuild/rules_cc/archive/master.zip"],
24+
)
25+
1926
# We depend on Abseil.
2027
http_archive(
2128
name = "com_google_absl",
@@ -39,6 +46,20 @@ http_archive(
3946
urls = ["https://github.com/google/benchmark/archive/master.zip"],
4047
)
4148

49+
# Used by gRPC.
50+
http_archive(
51+
name = "build_bazel_rules_apple",
52+
strip_prefix = "rules_apple-master",
53+
urls = ["https://github.com/bazelbuild/rules_apple/archive/master.zip"],
54+
)
55+
56+
load(
57+
"@build_bazel_rules_apple//apple:repositories.bzl",
58+
"apple_rules_dependencies",
59+
)
60+
61+
apple_rules_dependencies()
62+
4263
# Used by gRPC.
4364
http_archive(
4465
name = "build_bazel_apple_support",

tools/pin_deps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ def workspace_rule(self):
5151

5252
# grep -A1 http_archive\( WORKSPACE
5353
PROJECTS = [
54+
GitHubProject('rules_cc', 'bazelbuild', 'rules_cc'),
5455
GitHubProject('com_google_absl', 'abseil', 'abseil-cpp'),
5556
GitHubProject('com_google_googletest', 'google', 'googletest'),
5657
GitHubProject('com_github_google_benchmark', 'google', 'benchmark'),
5758
GitHubProject('build_bazel_apple_support', 'bazelbuild', 'apple_support'),
59+
GitHubProject('build_bazel_rules_apple', 'bazelbuild', 'rules_apple'),
5860
GitHubProject('com_github_grpc_grpc', 'grpc', 'grpc'),
5961
GitHubProject('com_github_jupp0r_prometheus_cpp', 'jupp0r', 'prometheus-cpp'),
6062
GitHubProject('com_github_curl', 'curl', 'curl'),

0 commit comments

Comments
 (0)