google-research

Форк
0
130 строк · 3.9 Кб
1
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
2
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3
load("//build_deps/py:python_configure.bzl", "python_configure")
4
load("//build_deps/tf_dependency:tf_configure.bzl", "tf_configure")
5

6
# Needed for highway's config_setting_group
7
http_archive(
8
    name = "bazel_skylib",
9
    urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz"],
10
)
11

12
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
13

14
bazel_skylib_workspace()
15

16
http_archive(
17
    name = "platforms",
18
    sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca",
19
    urls = [
20
        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
21
        "https://github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
22
    ],
23
)
24

25
tf_configure(
26
    name = "local_config_tf",
27
)
28

29
python_configure(name = "local_config_python")
30

31
git_repository(
32
    name = "pybind11_bazel",
33
    commit = "af7151f632550cd2f470fdefacf17770d5b94959",
34
    remote = "https://github.com/pybind/pybind11_bazel.git",
35
)
36

37
http_archive(
38
    name = "pybind11",
39
    build_file = "@pybind11_bazel//:pybind11.BUILD",
40
    strip_prefix = "pybind11-2.11.1",
41
    urls = [
42
        "https://github.com/pybind/pybind11/archive/v2.11.1.tar.gz",
43
    ],
44
)
45

46
http_archive(
47
    name = "com_google_absl",
48
    sha256 = "0320586856674d16b0b7a4d4afb22151bdc798490bb7f295eddd8f6a62b46fea",
49
    strip_prefix = "abseil-cpp-fb3621f4f897824c0dbe0615fa94543df6192f30",
50
    urls = [
51
        "https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/fb3621f4f897824c0dbe0615fa94543df6192f30.tar.gz",
52
        "https://github.com/abseil/abseil-cpp/archive/fb3621f4f897824c0dbe0615fa94543df6192f30.tar.gz",
53
    ],
54
)
55

56
git_repository(
57
    name = "com_google_protobuf",
58
    patch_args = ["-p1"],
59
    patches = ["//build_deps/patches:protobuf.patch"],
60
    remote = "https://github.com/protocolbuffers/protobuf.git",
61
    tag = "v3.21.9",
62
)
63

64
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
65

66
protobuf_deps()
67

68
# rules_proto defines abstract rules for building Protocol Buffers.
69
http_archive(
70
    name = "rules_proto",
71
    sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
72
    strip_prefix = "rules_proto-5.3.0-21.7",
73
    urls = [
74
        "https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
75
    ],
76
)
77

78
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
79

80
rules_proto_dependencies()
81

82
rules_proto_toolchains()
83

84
http_archive(
85
    name = "rules_python",
86
    sha256 = "a644da969b6824cc87f8fe7b18101a8a6c57da5db39caa6566ec6109f37d2141",
87
    strip_prefix = "rules_python-0.20.0",
88
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.20.0/rules_python-0.20.0.tar.gz",
89
)
90

91
load("@rules_python//python:repositories.bzl", "py_repositories")
92

93
py_repositories()
94

95
bind(
96
    name = "python_headers",
97
    actual = "@local_config_python//:python_headers",
98
)
99

100
git_repository(
101
    name = "com_google_googletest",
102
    remote = "https://github.com/google/googletest.git",
103
    tag = "release-1.10.0",
104
)
105

106
git_repository(
107
    name = "com_google_highway",
108
    remote = "https://github.com/google/highway.git",
109
    tag = "1.0.1",
110
)
111

112
git_repository(
113
    name = "cnpy",
114
    commit = "57184ee0db37cac383fc29175950747a46a8b512",
115
    remote = "https://github.com/sammymax/cnpy.git",
116
)
117

118
# rules_cc defines rules for generating C++ code from Protocol Buffers.
119
http_archive(
120
    name = "rules_cc",
121
    sha256 = "56ac9633c13d74cb71e0546f103ce1c58810e4a76aa8325da593ca4277908d72",
122
    strip_prefix = "rules_cc-40548a2974f1aea06215272d9c2b47a14a24e556",
123
    urls = [
124
        "https://github.com/bazelbuild/rules_cc/archive/40548a2974f1aea06215272d9c2b47a14a24e556.zip",
125
    ],
126
)
127

128
load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies")
129

130
rules_cc_dependencies()
131

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.