2019-07-18 14:40:33 +00:00
|
|
|
workspace(name = "rules_cc")
|
|
|
|
|
2019-01-08 12:51:36 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2022-08-26 19:46:53 +00:00
|
|
|
http_archive(
|
|
|
|
name = "platforms",
|
2022-09-01 16:27:58 +00:00
|
|
|
sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca",
|
2022-08-26 19:46:53 +00:00
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_go",
|
2022-11-23 19:03:57 +00:00
|
|
|
sha256 = "ae013bf35bd23234d1dea46b079f1e05ba74ac0321423830119d3e787ec73483",
|
2022-08-26 19:46:53 +00:00
|
|
|
urls = [
|
2022-11-23 19:03:57 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.0.zip",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.0.zip",
|
2022-08-26 19:46:53 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
|
|
|
|
|
|
|
go_rules_dependencies()
|
|
|
|
|
2022-09-13 20:59:32 +00:00
|
|
|
go_register_toolchains(version = "1.19.1")
|
2022-08-26 19:46:53 +00:00
|
|
|
|
2019-01-08 12:51:36 +00:00
|
|
|
http_archive(
|
2019-08-09 13:41:00 +00:00
|
|
|
name = "bazel_federation",
|
2021-07-12 08:56:17 +00:00
|
|
|
sha256 = "0d6893f0d18f417a3324ce7f0ed2e6e5b825d6d5ab42f0f3d7877cb313f36453",
|
|
|
|
strip_prefix = "bazel-federation-6ad33bc586701e9836a2bf4432c7aff1235b04d2",
|
2019-08-09 13:41:00 +00:00
|
|
|
type = "zip",
|
2021-07-12 08:56:17 +00:00
|
|
|
url = "https://github.com/bazelbuild/bazel-federation/archive/6ad33bc586701e9836a2bf4432c7aff1235b04d2.zip", # 2019-09-30
|
2019-01-08 12:51:36 +00:00
|
|
|
)
|
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
load("@bazel_federation//:repositories.bzl", "rules_cc_deps")
|
2019-10-24 14:01:01 +00:00
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
rules_cc_deps()
|
2019-01-08 12:51:36 +00:00
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
load("@bazel_federation//setup:rules_cc.bzl", "rules_cc_setup")
|
2019-10-24 14:01:01 +00:00
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
rules_cc_setup()
|
2019-03-25 15:38:55 +00:00
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
#
|
|
|
|
# Dependencies for development of rules_cc itself.
|
|
|
|
#
|
|
|
|
load("//:internal_deps.bzl", "rules_cc_internal_deps")
|
2019-10-24 14:01:01 +00:00
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
rules_cc_internal_deps()
|
2019-03-28 07:52:04 +00:00
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
load("//:internal_setup.bzl", "rules_cc_internal_setup")
|
2019-10-24 14:01:01 +00:00
|
|
|
|
2019-08-09 13:41:00 +00:00
|
|
|
rules_cc_internal_setup()
|
2019-08-21 14:29:46 +00:00
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "com_google_googletest",
|
2022-09-20 01:13:38 +00:00
|
|
|
sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2",
|
|
|
|
strip_prefix = "googletest-release-1.12.1",
|
2019-08-21 14:29:46 +00:00
|
|
|
urls = [
|
2022-09-20 01:13:38 +00:00
|
|
|
"https://mirror.bazel.build/github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
|
|
|
|
"https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
|
2019-08-21 14:29:46 +00:00
|
|
|
],
|
|
|
|
)
|
2019-10-24 14:01:01 +00:00
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "rules_proto",
|
2022-11-15 20:09:50 +00:00
|
|
|
sha256 = "c4ebe86f6b8d13ca5a10fdff4008d24788b3c6dd17e141a6f8ac381ff40c4585",
|
|
|
|
strip_prefix = "rules_proto-b5e5fc85f70cf6bbef66c69b679c86168ad1bea6",
|
2019-10-24 14:01:01 +00:00
|
|
|
urls = [
|
2022-11-15 20:09:50 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/b5e5fc85f70cf6bbef66c69b679c86168ad1bea6.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/rules_proto/archive/b5e5fc85f70cf6bbef66c69b679c86168ad1bea6.tar.gz",
|
2019-10-24 14:01:01 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
|
|
|
|
|
|
|
|
rules_proto_dependencies()
|
|
|
|
|
|
|
|
rules_proto_toolchains()
|
2019-11-01 15:36:34 +00:00
|
|
|
|
|
|
|
load("//cc:repositories.bzl", "rules_cc_toolchains")
|
2020-02-12 16:01:29 +00:00
|
|
|
|
2019-11-01 15:39:47 +00:00
|
|
|
rules_cc_toolchains()
|
2020-02-12 16:01:29 +00:00
|
|
|
|
|
|
|
local_repository(
|
|
|
|
name = "test_repo",
|
|
|
|
path = "examples/test_cc_shared_library2",
|
|
|
|
)
|