1workspace(name = "rules_cc")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5http_archive(
6    name = "rules_pkg",
7    urls = [
8        "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz",
9        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz",
10    ],
11    sha256 = "352c090cc3d3f9a6b4e676cf42a6047c16824959b438895a76c2989c6d7c246a",
12)
13load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
14rules_pkg_dependencies()
15
16http_archive(
17    name = "bazel_federation",
18    sha256 = "33222ab7bcc430f1ff1db8788c2e0118b749319dd572476c4fd02322d7d15792",
19    strip_prefix = "bazel-federation-f0e5eda7f0cbfe67f126ef4dacb18c89039b0506",
20    type = "zip",
21    url = "https://github.com/bazelbuild/bazel-federation/archive/f0e5eda7f0cbfe67f126ef4dacb18c89039b0506.zip",  # 2019-09-30
22)
23
24load("@bazel_federation//:repositories.bzl", "rules_cc_deps")
25
26rules_cc_deps()
27
28load("@bazel_federation//setup:rules_cc.bzl", "rules_cc_setup")
29
30rules_cc_setup()
31
32#
33# Dependencies for development of rules_cc itself.
34#
35load("//:internal_deps.bzl", "rules_cc_internal_deps")
36
37rules_cc_internal_deps()
38
39load("//:internal_setup.bzl", "rules_cc_internal_setup")
40
41rules_cc_internal_setup()
42
43http_archive(
44    name = "com_google_googletest",
45    sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
46    strip_prefix = "googletest-release-1.10.0",
47    urls = [
48        "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
49        "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
50    ],
51)
52
53http_archive(
54    name = "rules_proto",
55    sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
56    strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
57    urls = [
58        "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
59        "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
60    ],
61)
62
63load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
64
65rules_proto_dependencies()
66
67rules_proto_toolchains()
68
69load("//cc:repositories.bzl", "rules_cc_toolchains")
70
71rules_cc_toolchains()
72
73local_repository(
74    name = "test_repo",
75    path = "examples/test_cc_shared_library2",
76)
77