forked from jesec/rtorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
110 lines (91 loc) · 3.76 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
workspace(name = "rtorrent")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "libtorrent",
sha256 = "e67df3f7435319fa8ffa8c6e5acaa6c31748bbb2fb5ca4097132025517642906",
strip_prefix = "libtorrent-899c6cbc9e548f58149da2682879479d66337ff6",
url = "https://github.com/jesec/libtorrent/archive/899c6cbc9e548f58149da2682879479d66337ff6.zip",
)
load("@libtorrent//:libtorrent_repos.bzl", "libtorrent_repos")
libtorrent_repos()
load("@libtorrent//:libtorrent_deps.bzl", "libtorrent_deps")
libtorrent_deps()
http_archive(
name = "bazel_skylib",
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
http_archive(
name = "rules_pkg",
sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
],
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
http_archive(
name = "cares",
build_file = "@rtorrent//:third_party/cares.BUILD",
sha256 = "d73dd0f6de824afd407ce10750ea081af47eba52b8a6cb307d220131ad93fc40",
strip_prefix = "c-ares-1.17.1",
urls = [
"https://github.com/c-ares/c-ares/releases/download/cares-1_17_1/c-ares-1.17.1.tar.gz",
"https://c-ares.haxx.se/download/c-ares-1.17.1.tar.gz",
],
)
http_archive(
name = "curl",
build_file = "@rtorrent//:third_party/curl.BUILD",
sha256 = "b0a3428acb60fa59044c4d0baae4e4fc09ae9af1d8a3aa84b2e3fbcd99841f77",
strip_prefix = "curl-7.77.0",
urls = [
"https://github.com/curl/curl/releases/download/curl-7_77_0/curl-7.77.0.tar.gz",
"https://curl.haxx.se/download/curl-7.77.0.tar.gz",
],
)
http_archive(
name = "json",
build_file = "@rtorrent//:third_party/json.BUILD",
sha256 = "6bea5877b1541d353bd77bdfbdb2696333ae5ed8f9e8cc22df657192218cad91",
urls = [
"https://github.com/nlohmann/json/releases/download/v3.9.1/include.zip",
],
)
http_archive(
name = "ncurses",
build_file = "@rtorrent//:third_party/ncurses.BUILD",
sha256 = "30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d",
strip_prefix = "ncurses-6.2",
urls = [
"https://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz",
"https://invisible-mirror.net/archives/ncurses/ncurses-6.2.tar.gz",
],
)
http_archive(
name = "com_google_absl",
sha256 = "59b862f50e710277f8ede96f083a5bb8d7c9595376146838b9580be90374ee1f",
strip_prefix = "abseil-cpp-20210324.2",
urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20210324.2.tar.gz"],
)
http_archive(
name = "com_google_googletest",
sha256 = "b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5",
strip_prefix = "googletest-release-1.11.0",
urls = ["https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz"],
)
# Foreign CC dependencies
http_archive(
name = "xmlrpc",
build_file = "@rtorrent//:third_party/xmlrpc.BUILD",
patches = ["@rtorrent//:third_party/xmlrpc.patch"],
sha256 = "93d81a32f4ecfeb914c05f77476ba0af2e6b93ef6673fafdc12878f71d70a276",
strip_prefix = "xmlrpc-c-146e9bf7f8933c3baec871dfc2365e471171ddf4/advanced",
urls = ["https://github.com/mirror/xmlrpc-c/archive/146e9bf7f8933c3baec871dfc2365e471171ddf4.zip"],
)