xref: /aosp_15_r20/external/bazelbuild-rules_cc/WORKSPACE (revision eed53cd41c5909d05eedc7ad9720bb158fd93452)
1workspace(name = "rules_cc")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5http_archive(
6    name = "bazel_skylib",
7    sha256 = "b8a1527901774180afc798aeb28c4634bdccf19c4d98e7bdd1ce79d1fe9aaad7",
8    urls = [
9        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz",
10        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz",
11    ],
12)
13
14http_archive(
15    name = "com_google_googletest",
16    sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2",
17    strip_prefix = "googletest-release-1.12.1",
18    urls = [
19        "https://mirror.bazel.build/github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
20        "https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
21    ],
22)
23
24http_archive(
25    name = "io_abseil_py",
26    sha256 = "0fb3a4916a157eb48124ef309231cecdfdd96ff54adf1660b39c0d4a9790a2c0",
27    strip_prefix = "abseil-py-1.4.0",
28    urls = [
29        "https://github.com/abseil/abseil-py/archive/refs/tags/v1.4.0.tar.gz",
30    ],
31)
32
33http_archive(
34    name = "io_bazel_rules_go",
35    sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023",
36    urls = [
37        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
38        "https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
39    ],
40)
41
42http_archive(
43    name = "platforms",
44    sha256 = "3a561c99e7bdbe9173aa653fd579fe849f1d8d67395780ab4770b1f381431d51",
45    urls = [
46        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz",
47        "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz",
48    ],
49)
50
51http_archive(
52    name = "py_mock",
53    patch_cmds = [
54        "mkdir -p py/mock",
55        "mv mock.py py/mock/__init__.py",
56        """echo 'licenses(["notice"])' > BUILD""",
57        "touch py/BUILD",
58        """echo 'py_library(name = "mock", srcs = ["__init__.py"], visibility = ["//visibility:public"],)' > py/mock/BUILD""",
59    ],
60    sha256 = "b839dd2d9c117c701430c149956918a423a9863b48b09c90e30a6013e7d2f44f",
61    strip_prefix = "mock-1.0.1",
62    urls = [
63        "https://mirror.bazel.build/pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz",
64        "https://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz",
65    ],
66)
67
68http_archive(
69    name = "rules_proto",
70    sha256 = "9a0503631679e9ab4e27d891ea60fee3e86a85654ea2048cae25516171dd260e",
71    strip_prefix = "rules_proto-e51f588e5932966ab9e63e0b0f6de6f740cf04c4",
72    urls = [
73        "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/e51f588e5932966ab9e63e0b0f6de6f740cf04c4.tar.gz",
74        "https://github.com/bazelbuild/rules_proto/archive/e51f588e5932966ab9e63e0b0f6de6f740cf04c4.tar.gz",
75    ],
76)
77
78load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
79
80bazel_skylib_workspace()
81
82load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
83
84go_rules_dependencies()
85
86go_register_toolchains(version = "1.20.5")
87
88load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
89
90rules_proto_dependencies()
91
92rules_proto_toolchains()
93
94http_archive(
95    name = "rules_testing",
96    sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4",
97    strip_prefix = "rules_testing-0.6.0",
98    url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz",
99)
100